1. Introduction
Multi-line analysis are a powerful tool to probe the physical and chemical conditions of the interstellar medium in galaxies (e.g., Takano et al. 2014; Harada et al. 2019). Linear feature extractions have been used for multi-line analysis (e.g., Meier & Turner 2005; Kishikawa et al. 2025). But these methods cannot fully capture the non-linear variations arising from radiative transfer, chemistry, and excitation (Okubo et al. 2025). To overcome this limitation, we propose a new framework that combines kernel PCA with kernel SHAP. We explain the potential of this method by presenting the data and methodology in Section 2, the application of our approach in Section 3, and the discussion of the results in Section 4.
2. Data and Methods
We use archival ALMA Band 3 integrated intensity maps of NGC 1068 with a spatial resolution of about 150 pc. In total, we use 13 molecular line data: C
$^1$
H (N=1–0), HCN (J=1–0), HCO
$^9$
(J=1–0), HNC (J=1–0), HC
$^1$
N (J=10–9), N
$^2$
(J=1–0), CH
$^3$
OH (J=2
$^4$
–1
$^5$
), CS (J=2–1), C
$^6$
O (J=1–0),
$^7$
CO (J=1–0), CN (N=1
$^8$
–0
$^9$
), CN (N=1
$_2$
–0
$^+$
), and CO (J=1–0). These maps are produced using standard calibration and imaging with the PHANGS_ALMA pipeline (Leroy et al. 2021) and then standardized.
Kernel PCA extends conventional PCA by mapping the data into a higher-dimensional space, allowing it to capture non-linear relationships. We adopt the radial basis function (RBF) kernel with a kernel width of 0.01, selected after testing values of 0.1, 0.01, 0.001, … geometrically, as it yielded results most consistent with astronomical interpretations.
Kernel SHAP approximates the SHAP method, assigning each molecular line an importance value for its contribution to a given principal component. As a model-agnostic approach, it can be applied directly to kernel PCA results, providing quantitative interpretation of each line’s role. By doing so, Kernel SHAP can overcome previous difficulties in applying kernel PCA to multi-line analyses, making such applications feasible.
3. Results
The first three kernel principal components (KPCs) account for over 90% of the total variance, with KPC1, KPC2, and KPC3 contributing 68%, 20%, and 5%, respectively. Figure 1 shows the spatial distributions of KPC1–3, while Figure 2 presents the corresponding kernel SHAP values for each molecular line.
Spatial distributions of the first three kernel principal components (KPC1–3). The AGN position is indicated by Saito et al. (2022). Color bars represent the KPC scores.

Kernel SHAP value distributions for each molecular line corresponding to KPC1–3. Boxplots show the distribution of SHAP values, with color representing the standardized integrated intensity.

The KPC1 and KPC2 maps are consistent with the PCA results reported by Okubo et al. (2025), and their associated kernel SHAP distributions exhibit trends similar to the PCA coefficients. Although kernel PCA can, in principle, lose some of the original data’s information, these results demonstrate that the method preserves physically meaningful structures. Detailed interpretations of the physical implications are provided in Okubo et al. (2025).
For KPC3, high positive scores appear to be concentrated around the AGN, while low positive scores are found near the spiral arms. Negative scores look like to be elongated in the central region. The kernel SHAP analysis shows that CO isotopologues generally contribute positively, while HC
$_3$
N and N
$_2\textit{H}^+$
exhibit strong positive contributions localized to the AGN grid. Conversely, CN and C
$_3$
H have strong negative contributions, followed by HCN and HNC with moderately negative contributions.
4. Discussion
We focus here on the newly extracted KPC3 map. The low positive scores are distributed along the spiral arms, with kernel SHAP indicating a dominant contribution from CO isotopologues. This suggests that these scores trace low-density gas in the arms. In contrast, the high positive scores are concentrated in the AGN region, with strong contributions from HC
$_{\it K}$
N, HCN, N
$_{\it K}$
, CS, and HCO
$_{3/2}$
. These molecules are known tracers of dense gas, and their distribution implies that KPC3 reflects both the dense environments in the galactic center and the chemically rich conditions influenced by the AGN (e.g., Harada et al. 2010; 2013; Kauffmann et al. 2017; Nakajima et al. 2018; Butterworth et al. 2022).
We next consider the negative scores. These regions are dominated by contributions from CN and C
$_{1/2}$
H, followed by HNC, HCN, CS and HCO
$_{1/2}$
. This distribution suggests that the negative scores may trace outflows or active star-forming regions (e.g., Aalto et al. 2012; García-Burillo et al. 2017; Saito et al. 2022). Notably, molecules such as HC
$_{1/2}$
N and N
$_3$
, which trace dense gas, are absent in these regions. Furthermore, a two-sample t-test at the 5% significance level indicates that the negative-score regions align with the known outflow axis, supporting the interpretation that KPC3 negative scores capture outflow-related structures.
To further investigate the meaning of KPC3, we performed an LTE analysis to estimate molecular column densities within the central 1 kpc, and correlated them with negative KPC3 scores (
$_2\textit{H}^+$
) (Goldsmith & Langer 1999). Only lines with S/N
$_2$
4 and at least 10 valid spatial grids were used. The results, summarized in Table 1, show the correlations between KPC3 and molecular column densities together with their uncertainties, which were estimated via Monte Carlo sampling. Molecules identified by kernel SHAP as contributing to the negative scores (CN, C
$_3$
H, HCN, HNC, HCO
$_2\textit{H}^+$
, CS) exhibit strong negative correlations with the KPC3 scores, whereas
$^+$
CO, not identified as contributing to the negative scores, shows no significant correlation. This consistency demonstrates that the kernel SHAP results indeed extract physically meaningful information from the molecular line data.
Correlation coefficients between molecular column densities and KPC3 scores (
$_2$
) in the central 1 kpc.

5. Summary
Kernel PCA extracted features not captured by conventional PCA. We demonstrate, based on previous studies and additional analyses, that the features interpreted by kernel SHAP correspond to physically meaningful structures. These results highlight the effectiveness of our proposed framework.
Acknowledgements
We thank the organizers of IAU Symposium 397 “UniversAI” for the opportunity to present this work. This paper makes use of the following ALMA data: ADS/JAO.ALMA#2011.0.00061.S, ADS/JAO.ALMA#2012.1.00657.S, ADS/JAO.ALMA#2013.1.00060.S, ADS/JAO.ALMA#2013.1.00279.S, ADS/JAO.ALMA#2015.1.00960.S, ADS/JAO.ALMA#2017.1.00586.S, ADS/JAO.ALMA#2018.1.01506.S, ADS/JAO.ALMA#2018.1.01684.S, and ADS/JAO.ALMA#2019.1.00130.S. ALMA is a partnership of ESO (representing its member states), NSF (USA), and NINS (Japan), together with NRC (Canada), MOST and ASIAA (Taiwan), and KASI (Republic of Korea), in cooperation with the Republic of Chile. The Joint ALMA Observatory is operated by ESO, AUI/NRAO, and NAOJ. This research was supported by a grant from the Hayakawa Satio Fund awarded by the Astronomical Society of Japan. This work was supported by JST SPRING, Grant Number JPMJSP2124. We acknowledge the use of ChatGPT (OpenAI, San Francisco, CA, USA) for language polishing assistance during manuscript preparation. All responsibility for the content remains with the authors.

2