Actualizar MSI_Toloache_Paper_English.md

This commit is contained in:
2026-05-05 01:09:18 +02:00
parent 75103ab1bd
commit 9bb85816d8
+17 -11
View File
@@ -65,7 +65,7 @@ We implemented a **Contrastive Learning (SimCLR)** scheme in PyTorch, following
| **Data Augmentations** | Random Rotation (10°), Gaussian Blur, Color Jitter, and Additive Gaussian Noise ($\sigma=0.01$) | | **Data Augmentations** | Random Rotation (10°), Gaussian Blur, Color Jitter, and Additive Gaussian Noise ($\sigma=0.01$) |
2. **MSI-Specific Data Augmentations:** Stochastic transformations were applied to simulate experimental variability, including slight rotations, Gaussian blur, and the addition of additive Gaussian noise to bolster the model against detector background noise. 2. **MSI-Specific Data Augmentations:** Stochastic transformations were applied to simulate experimental variability, including slight rotations, Gaussian blur, and the addition of additive Gaussian noise to bolster the model against detector background noise.
3. **Clustering and Optimization:** To determine the optimal number of clusters ($k$), we performed a multi-metric systematic sweep from $k=2$ to $k=20$ (Fig. 1(A)). While global mathematical optima were observed at $k=2$ and $k=3$ —corresponding to a coarse differentiation between the leaf tissue and the background— these configurations failed to resolve the specialized anatomical compartments of the leaf. We identified $k=10$ as the functional optimum, supported by a Silhouette Score of 0.3526 (Fig. 1(B)), a Davies-Bouldin Index of 0.9632 (Fig. 1(C)), and a Calinski-Harabasz Index of 709.17 (Fig. 1(D)). This value represents a stable convergence point where the latent space successfully deconvolutes the hierarchical vascular architecture (midrib and secondary veins) and localized metabolic sequestration sites without incurring over-segmentation. Consequently, this choice prioritizes anatomical fidelity over mathematical parsimony, ensuring that the resulting metabolic map accurately reflects the complex tissue compartmentalization of *D. innoxia*. 3. **Clustering and Optimization:** To determine the optimal number of clusters ($k$), we performed a multi-metric systematic sweep from $k=2$ to $k=20$ (Fig. [1(A)]). While global mathematical optima were observed at $k=2$ and $k=3$ —corresponding to a coarse differentiation between the leaf tissue and the background— these configurations failed to resolve the specialized anatomical compartments of the leaf. We identified $k=10$ as the functional optimum, supported by a Silhouette Score of 0.3526 (Fig. [1(B)]), a Davies-Bouldin Index of 0.9632 (Fig. [1(C)]), and a Calinski-Harabasz Index of 709.17 (Fig. [1(D)]). This value represents a stable convergence point where the latent space successfully deconvolutes the hierarchical vascular architecture (midrib and secondary veins) and localized metabolic sequestration sites without incurring over-segmentation. Consequently, this choice prioritizes anatomical fidelity over mathematical parsimony, ensuring that the resulting metabolic map accurately reflects the complex tissue compartmentalization of *D. innoxia*.
![[cluster_validation_detailed_plot.png]] ![[cluster_validation_detailed_plot.png]]
@@ -75,8 +75,14 @@ We implemented a **Contrastive Learning (SimCLR)** scheme in PyTorch, following
## 3. Results and Discussion ## 3. Results and Discussion
### 3.1 Latent Space Geometry and Chemical Validation ### 3.1 Structural Identification of Tropane Alkaloids via LD-LTP-MS/MS
The high-dimensional embeddings generated by the EfficientNet-B0 backbone were projected into a 2-D manifold using t-SNE (Fig.[2]). The resulting latent space exhibits a highly structured geometry, where ions are grouped not by their absolute intensity, but by their shared spatial topographies. A cornerstone of the validation for this self-supervised approach is the emergence of **Isotopic Coherence** within the latent manifold (Table. [2]). In MSI, a molecular species and its naturally occurring isotopes (e.g., $[M+H]^+$ and $[M+H+1]^+$) are fundamentally tied by an identical spatial distribution, providing a form of natural "ground truth" that requires no manual annotation. Although the SimCLR framework is entirely agnostic to the mass-to-charge (*m/z*) values or the chemical identity of the inputs, the encoder consistently projected isotopic pairs into adjacent coordinates within the same latent clusters. This clustering behavior demonstrates that the network successfully prioritized the underlying morphological fingerprints over stochastic instrumental noise or absolute intensity variations. Such coherence serves as a robust internal control, confirming that the learned representations are anchored in biological reality rather than technical artifacts. Furthermore, this **Chemical Coherence** extends beyond isotopes to include adducts and related fragments, suggesting that the model effectively deconvolutes the chemical complexity of the tissue into meaningful metabolic domains. Direct surface analysis of Datura innoxia leaves was conducted using a Laser Desorption-Low Temperature Plasma Mass Spectrometry (LD-LTP-MS) setup in positive ionization mode. To confirm the identity of the tropane alkaloids in situ, the precursor ion at m/z 304.17 was subjected to tandem mass spectrometry (MS/MS) at a collision energy of 20 eV. Although raw data were acquired in profile mode, the spectra were subsequently processed for baseline correction and centroid refinement to facilitate comparison. The resulting fragmentation pattern from the leaf surface showed an excellent spectral match with the commercial scopolamine reference standard. The presence of diagnostic product ions across the m/z 80–320 range confirms the unambiguous structural identification of scopolamine directly from the plant surface without the need for extensive sample preparation (Fig. [2]).
![[Mirror_Plot_Scopolamine_304_Academic.png]]
**Figure 2. Mirrored MS/MS spectra for the confirmation of scopolamine (m/z 304.17) acquired via LD-LTP-MS in positive ion mode.** The upper panel (blue) represents the fragmentation profile obtained directly from the leaf surface of Datura innoxia, while the lower panel (red) shows the commercial reference standard. Data were acquired in profile mode and are presented as refined centroids after baseline subtraction. Both spectra were generated using collision-induced dissociation (CID) at 20 eV. The axes denote relative abundance (%) and the mass-to-charge ratio (*m/z*), respectively.
### 3.2 Latent Space Geometry and Chemical Validation
The high-dimensional embeddings generated by the EfficientNet-B0 backbone were projected into a 2-D manifold using t-SNE (Fig.[3]). The resulting latent space exhibits a highly structured geometry, where ions are grouped not by their absolute intensity, but by their shared spatial topographies. A cornerstone of the validation for this self-supervised approach is the emergence of **Isotopic Coherence** within the latent manifold (Table. [2]). In MSI, a molecular species and its naturally occurring isotopes (e.g., $[M+H]^+$ and $[M+H+1]^+$) are fundamentally tied by an identical spatial distribution, providing a form of natural "ground truth" that requires no manual annotation. Although the SimCLR framework is entirely agnostic to the mass-to-charge (*m/z*) values or the chemical identity of the inputs, the encoder consistently projected isotopic pairs into adjacent coordinates within the same latent clusters. This clustering behavior demonstrates that the network successfully prioritized the underlying morphological fingerprints over stochastic instrumental noise or absolute intensity variations. Such coherence serves as a robust internal control, confirming that the learned representations are anchored in biological reality rather than technical artifacts. Furthermore, this **Chemical Coherence** extends beyond isotopes to include adducts and related fragments, suggesting that the model effectively deconvolutes the chemical complexity of the tissue into meaningful metabolic domains.
**Table 2. Representative metabolites identified in *D. innoxia* and their latent space assignment.** **Table 2. Representative metabolites identified in *D. innoxia* and their latent space assignment.**
@@ -91,16 +97,16 @@ The high-dimensional embeddings generated by the EfficientNet-B0 backbone were p
![[msi_tsne_corregido.png]] ![[msi_tsne_corregido.png]]
**Figure 2. Visualizing metabolic specialization across anatomical zones of a _D. innoxia_ leaf using t-SNE.** This scatter plot displays the t-SNE dimensionality reduction of MSI data acquired from a leaf section at a spatial resolution of 150 µm. The original dataset of 588 *m/z* feature intensities was projected into a 2D space to visualize metabolic similarity. Ten distinct clusters are identified via automated segmentation of the co-localized ion images and are represented here by a qualitative color bar (right). Points of the same color indicate pixels with closely related metabolic signatures, corresponding to different anatomical regions within the leaf. The strong segregation between groups highlights a sharp molecular differentiation of metabolic functions across the tissue. **Figure 3. Visualizing metabolic specialization across anatomical zones of a _D. innoxia_ leaf using t-SNE.** This scatter plot displays the t-SNE dimensionality reduction of MSI data acquired from a leaf section at a spatial resolution of 150 µm. The original dataset of 588 *m/z* feature intensities was projected into a 2D space to visualize metabolic similarity. Ten distinct clusters are identified via automated segmentation of the co-localized ion images and are represented here by a qualitative color bar (right). Points of the same color indicate pixels with closely related metabolic signatures, corresponding to different anatomical regions within the leaf. The strong segregation between groups highlights a sharp molecular differentiation of metabolic functions across the tissue.
### 3.2 Chemical-Anatomical Segmentation in *D. innoxia* ### 3.3 Chemical-Anatomical Segmentation in *D. innoxia*
The unsupervised decomposition of the latent space yielded ten distinct molecular domains (Clusters 0–9), each representing a reproducible and spatially resolved chemical pattern across the *D. innoxia* leaf. These clusters capture the heterogeneity of ion distributions and reveal a structured organization of metabolites at the tissue level. The unsupervised decomposition of the latent space yielded ten distinct molecular domains (Clusters 0–9), each representing a reproducible and spatially resolved chemical pattern across the *D. innoxia* leaf. These clusters capture the heterogeneity of ion distributions and reveal a structured organization of metabolites at the tissue level.
Rather than reflecting random variation, the observed spatial arrangements define consistent chemical domains characterized by differences in ion intensity, co-localization, and spatial continuity. In particular, the distribution of key ions such as atropine ($m/z \approx 290.02$) and scopolamine ($m/z \approx 304.0$) highlights the presence of chemically distinct regions associated with specific anatomical features, including the midrib, lamina, and apical tip (Fig. [3], Table. [3]). Rather than reflecting random variation, the observed spatial arrangements define consistent chemical domains characterized by differences in ion intensity, co-localization, and spatial continuity. In particular, the distribution of key ions such as atropine ($m/z \approx 290.02$) and scopolamine ($m/z \approx 304.0$) highlights the presence of chemically distinct regions associated with specific anatomical features, including the midrib, lamina, and apical tip (Fig. [4], Table. [3]).
![[TSNE_figure.png]] ![[TSNE_figure.png]]
**Figure 3. t-SNE-based clustering reveals spatially resolved chemical domains in *D. innoxia* leaves (k = 10).** The t-distributed stochastic neighbor embedding (t-SNE) projection of MSI data separates the dataset into ten distinct clusters (Clusters 0–9), each corresponding to a reproducible spatial ion distribution pattern. Representative ion images (one per cluster) illustrate the characteristic spatial topology associated with each molecular domain. Clusters 9, 4, 2, 0, and 6 are primarily associated with the midrib and vascular architecture, showing varying degrees of continuity and intensity along the main vein and adjacent regions. Notably, Clusters 8 and 9 exhibit overlapping ion distributions along the midrib, with Cluster 9 displaying a continuous vascular signal and Cluster 8 presenting a more discontinuous, island-like pattern in the same region. Clusters 3, 5, and 7 are enriched toward the apical region, showing increased ion density at the distal tip combined with heterogeneous island-like distributions across the lamina. In contrast, Clusters 1 and 8 are characterized by discrete, spatially isolated ion islands distributed across the leaf surface, reflecting highly localized regions of signal intensity. A representative photograph of a *D. innoxia* leaf is included to provide anatomical reference for the spatial patterns observed in the MSI-derived clusters. **Figure 4. t-SNE-based clustering reveals spatially resolved chemical domains in *D. innoxia* leaves (k = 10).** The t-distributed stochastic neighbor embedding (t-SNE) projection of MSI data separates the dataset into ten distinct clusters (Clusters 0–9), each corresponding to a reproducible spatial ion distribution pattern. Representative ion images (one per cluster) illustrate the characteristic spatial topology associated with each molecular domain. Clusters 9, 4, 2, 0, and 6 are primarily associated with the midrib and vascular architecture, showing varying degrees of continuity and intensity along the main vein and adjacent regions. Notably, Clusters 8 and 9 exhibit overlapping ion distributions along the midrib, with Cluster 9 displaying a continuous vascular signal and Cluster 8 presenting a more discontinuous, island-like pattern in the same region. Clusters 3, 5, and 7 are enriched toward the apical region, showing increased ion density at the distal tip combined with heterogeneous island-like distributions across the lamina. In contrast, Clusters 1 and 8 are characterized by discrete, spatially isolated ion islands distributed across the leaf surface, reflecting highly localized regions of signal intensity. A representative photograph of a *D. innoxia* leaf is included to provide anatomical reference for the spatial patterns observed in the MSI-derived clusters.
**Table 3. Summary of unsupervised segmentation domains in *D. innoxia* leaf.** **Table 3. Summary of unsupervised segmentation domains in *D. innoxia* leaf.**
@@ -111,18 +117,18 @@ Rather than reflecting random variation, the observed spatial arrangements defin
| **Apical** | 3, 5, 7 | High density at distal tip | Terminal accumulation of tropane alkaloids. | | **Apical** | 3, 5, 7 | High density at distal tip | Terminal accumulation of tropane alkaloids. |
| **Sequestration** | 1, 8 | Isolated "island" patterns | Specialized metabolic compartments. | | **Sequestration** | 1, 8 | Isolated "island" patterns | Specialized metabolic compartments. |
#### 3.2.1 Vascular and Midrib-Associated Domains (Clusters 9, 0, 2, 4, 6) #### 3.3.1 Vascular and Midrib-Associated Domains (Clusters 9, 0, 2, 4, 6)
The clustering analysis reveals a group of domains strongly associated with the midrib and vascular architecture of the leaf. **Cluster 9** represents the most clearly defined vascular pattern, exhibiting a continuous and high-intensity signal along the midrib. Within this cluster, ions corresponding to atropine and scopolamine are readily distinguishable, indicating a strong co-localization of these compounds within this anatomical region. In addition to the midrib signal, Cluster 9 also includes smaller islands distributed throughout the lamina, suggesting a secondary spatial component characterized by localized ion enrichment outside the primary vein. **Cluster 4** maintains a clear midrib-associated signal but introduces larger and more defined metabolic islands across the leaf surface. This pattern indicates a broader spatial dispersion of ions while preserving a strong vascular signature. **Cluster 2** similarly combines vascular localization with medium-to-large islands, although with a more diffuse distribution compared to Cluster 4. The continuity of the midrib signal in this cluster is less pronounced, suggesting variability in ion intensity along the vascular axis. **Cluster 0** exhibits a weaker and more fragmented midrib presence, integrated with medium-sized islands distributed across the lamina. This pattern reflects a reduced dominance of vascular-associated signals relative to surrounding tissue. Finally, **Cluster 6** defines a distinct spatial configuration characterized by signals adjacent to the midrib (paravascular regions) as well as a broader distribution across the leaf surface. The lack of a strictly continuous midrib signal differentiates this cluster from the others in this group. The clustering analysis reveals a group of domains strongly associated with the midrib and vascular architecture of the leaf. **Cluster 9** represents the most clearly defined vascular pattern, exhibiting a continuous and high-intensity signal along the midrib. Within this cluster, ions corresponding to atropine and scopolamine are readily distinguishable, indicating a strong co-localization of these compounds within this anatomical region. In addition to the midrib signal, Cluster 9 also includes smaller islands distributed throughout the lamina, suggesting a secondary spatial component characterized by localized ion enrichment outside the primary vein. **Cluster 4** maintains a clear midrib-associated signal but introduces larger and more defined metabolic islands across the leaf surface. This pattern indicates a broader spatial dispersion of ions while preserving a strong vascular signature. **Cluster 2** similarly combines vascular localization with medium-to-large islands, although with a more diffuse distribution compared to Cluster 4. The continuity of the midrib signal in this cluster is less pronounced, suggesting variability in ion intensity along the vascular axis. **Cluster 0** exhibits a weaker and more fragmented midrib presence, integrated with medium-sized islands distributed across the lamina. This pattern reflects a reduced dominance of vascular-associated signals relative to surrounding tissue. Finally, **Cluster 6** defines a distinct spatial configuration characterized by signals adjacent to the midrib (paravascular regions) as well as a broader distribution across the leaf surface. The lack of a strictly continuous midrib signal differentiates this cluster from the others in this group.
The molecular architecture revealed by Cluster 9 provides a high-resolution spatial confirmation of the systemic metabolic trafficking in D. innoxia. The concentrated localization of atropine ($m/z$ 290.02) and scopolamine ($m/z$ 304.0) within the midrib and primary vascular bundles reflects the physiological reality of tropane alkaloid biosynthesis. Given that these secondary metabolites are primarily synthesized in the root system and subsequently translocated to the aerial tissues via acropetal transport (Schlesinger et al., 2021), their high-density visualization within the xilematic tissue serves as a robust physiological anchor for our unsupervised model. This spatial distribution suggests that the vascular network does not merely act as a structural element but as a specialized high-speed conduit for the delivery of chemical defenses to the lamina. By capturing this transport-specific signature, the SimCLR-based segmentation moves beyond static mapping, effectively resolving the spatial footprints of the plant's long-distance transport mechanisms. The molecular architecture revealed by Cluster 9 provides a high-resolution spatial confirmation of the systemic metabolic trafficking in D. innoxia. The concentrated localization of atropine ($m/z$ 290.02) and scopolamine ($m/z$ 304.0) within the midrib and primary vascular bundles reflects the physiological reality of tropane alkaloid biosynthesis. Given that these secondary metabolites are primarily synthesized in the root system and subsequently translocated to the aerial tissues via acropetal transport (Schlesinger et al., 2021), their high-density visualization within the xilematic tissue serves as a robust physiological anchor for our unsupervised model. This spatial distribution suggests that the vascular network does not merely act as a structural element but as a specialized high-speed conduit for the delivery of chemical defenses to the lamina. By capturing this transport-specific signature, the SimCLR-based segmentation moves beyond static mapping, effectively resolving the spatial footprints of the plant's long-distance transport mechanisms.
#### 3.2.2 Apical Accumulation and Terminal Regions (Clusters 3, 5, 7) #### 3.3.2 Apical Accumulation and Terminal Regions (Clusters 3, 5, 7)
A second group of clusters is defined by a clear spatial association with the apical region of the leaf, characterized by increased ion intensity toward the distal tip. **Cluster 3** displays a distribution of small, discrete islands across the lamina, with a marked increase in density and intensity near the apex. This pattern suggests a spatial gradient in ion distribution, with enrichment toward the terminal region. **Cluster 5** presents a more heterogeneous distribution, combining both small and large islands with a pronounced concentration at the leaf tip. The coexistence of multiple island sizes indicates variability in local ion intensity and spatial aggregation. **Cluster 7** exhibits a multimodal distribution, integrating apical localization with small-to-medium islands distributed throughout the leaf and a minor presence along the midrib. This combination of features distinguishes it from clusters that are exclusively apical or vascular. A second group of clusters is defined by a clear spatial association with the apical region of the leaf, characterized by increased ion intensity toward the distal tip. **Cluster 3** displays a distribution of small, discrete islands across the lamina, with a marked increase in density and intensity near the apex. This pattern suggests a spatial gradient in ion distribution, with enrichment toward the terminal region. **Cluster 5** presents a more heterogeneous distribution, combining both small and large islands with a pronounced concentration at the leaf tip. The coexistence of multiple island sizes indicates variability in local ion intensity and spatial aggregation. **Cluster 7** exhibits a multimodal distribution, integrating apical localization with small-to-medium islands distributed throughout the leaf and a minor presence along the midrib. This combination of features distinguishes it from clusters that are exclusively apical or vascular.
#### 3.2.3 Isolated Sequestration and Island-like Topographies (Clusters 1, 8) #### 3.3.3 Isolated Sequestration and Island-like Topographies (Clusters 1, 8)
Clusters 1 and 8 are characterized by highly discrete, island-like spatial patterns, representing localized regions of elevated ion intensity separated by areas of low signal. **Cluster 1** shows a relatively uniform distribution of small and medium-sized islands across the entire leaf surface. The regularity of this pattern suggests a widespread but compartmentalized presence of ions, without a clear association to major anatomical structures such as the midrib or apex. In contrast, **Cluster 8** exhibits highly defined and isolated islands with sharp spatial boundaries. These regions are surrounded by areas with minimal signal, resulting in a high-contrast spatial pattern. Additionally, this cluster shows detectable signals along the midrib and a slight presence at the apical tip, indicating overlap with other spatial domains. Additionally, **Clusters 8 and 9** share notable similarities in their spatial ion distribution along the midrib. While Cluster 9 exhibits a continuous and well-defined vascular signal, Cluster 8 also shows a detectable presence in the same anatomical region, albeit in a more discontinuous and island-like manner. This partial overlap suggests that both clusters capture ion populations associated with the midrib, differing primarily in spatial continuity and intensity rather than anatomical localization. Clusters 1 and 8 are characterized by highly discrete, island-like spatial patterns, representing localized regions of elevated ion intensity separated by areas of low signal. **Cluster 1** shows a relatively uniform distribution of small and medium-sized islands across the entire leaf surface. The regularity of this pattern suggests a widespread but compartmentalized presence of ions, without a clear association to major anatomical structures such as the midrib or apex. In contrast, **Cluster 8** exhibits highly defined and isolated islands with sharp spatial boundaries. These regions are surrounded by areas with minimal signal, resulting in a high-contrast spatial pattern. Additionally, this cluster shows detectable signals along the midrib and a slight presence at the apical tip, indicating overlap with other spatial domains. Additionally, **Clusters 8 and 9** share notable similarities in their spatial ion distribution along the midrib. While Cluster 9 exhibits a continuous and well-defined vascular signal, Cluster 8 also shows a detectable presence in the same anatomical region, albeit in a more discontinuous and island-like manner. This partial overlap suggests that both clusters capture ion populations associated with the midrib, differing primarily in spatial continuity and intensity rather than anatomical localization.
#### 3.3 Advantages of Contrastive Learning over Linear Decomposition #### 3.4 Advantages of Contrastive Learning over Linear Decomposition
Furthermore, the superiority of the self-supervised contrastive learning approach over traditional linear methods, such as Principal Component Analysis (PCA), lies in its fundamental shift from intensity-driven variance to morphological feature extraction. While PCA relies on magnitude-dependent variance—essentially grouping ions based on their absolute 'brightness' and pixel-to-pixel correlation—it is highly sensitive to the dynamic range of the detector and often fails to resolve low-abundance metabolites that do not contribute significantly to the total variance. In contrast, the SimCLR-EfficientNet architecture prioritizes the underlying spatial topographies (morphological fingerprints) of the ion images. This allows the model to project ions with vastly different absolute intensities but identical anatomical 'silhouettes'—such as a primary alkaloid and its trace-level isotopes or precursors—into adjacent coordinates within the latent space. By decoupling chemical distribution from absolute abundance, this workflow captures the structural integrity of the tissue, offering a more robust and biologically grounded segmentation that traditional linear or intensity-based algorithms cannot easily achieve. Furthermore, the superiority of the self-supervised contrastive learning approach over traditional linear methods, such as Principal Component Analysis (PCA), lies in its fundamental shift from intensity-driven variance to morphological feature extraction. While PCA relies on magnitude-dependent variance—essentially grouping ions based on their absolute 'brightness' and pixel-to-pixel correlation—it is highly sensitive to the dynamic range of the detector and often fails to resolve low-abundance metabolites that do not contribute significantly to the total variance. In contrast, the SimCLR-EfficientNet architecture prioritizes the underlying spatial topographies (morphological fingerprints) of the ion images. This allows the model to project ions with vastly different absolute intensities but identical anatomical 'silhouettes'—such as a primary alkaloid and its trace-level isotopes or precursors—into adjacent coordinates within the latent space. By decoupling chemical distribution from absolute abundance, this workflow captures the structural integrity of the tissue, offering a more robust and biologically grounded segmentation that traditional linear or intensity-based algorithms cannot easily achieve.
--- ---