Actualizar MSI_Toloache_Paper_English.md

This commit is contained in:
2026-04-29 00:48:12 +02:00
parent 13d253146d
commit e772560cec
+35
View File
@@ -31,6 +31,17 @@ The preprocessing stage was conducted using the **JuliaMSI** framework (Sierra-
The selection of Julia as the primary engine for data ingestion is justified by its superior performance in handling the high-dimensional sparse matrices characteristic of imzML files. Recent benchmarks have demonstrated that Julia-based architectures, such as the JuliaMSI framework, outperform traditional R-based implementations (e.g., RmsiGUI) by significant margins, showing up to 5.2-fold faster processing on Linux environments (Sierra-Álvarez et al., 2025). Furthermore, at the library level, Julia's native parsing of binary spectral data has been shown to be up to 214 times faster than equivalent implementations in R (Rosas-Román et al., 2024). This computational efficiency is critical for resolving the "two-language problem," as it allows the rapid extraction of hundreds of mass slices and their subsequent normalization in a fraction of the time required by interpreted environments, effectively enabling a high-throughput bridge to the Python-based deep learning ecosystem.
Table 1. Computational performance of Julia vs. R-based tools in MSI data processing.
┌──────────────────┬────────────────────────┬────────────────────────┬────────────────┬──────────────────────────────┐
│ Platform / OS │ Task │ Language/Tool │ Speedup (Fold) │ Reference │
├──────────────────┼────────────────────────┼────────────────────────┼────────────────┼──────────────────────────────┤
│ Linux (Ubuntu) │ imzML Data Loading │ JuliaMSI vs RmsiGUI │ 5.2x │ Sierra-Álvarez et al. (2025) │
│ Windows/macOS │ imzML Data Loading │ JuliaMSI vs RmsiGUI │ 4.2x │ Sierra-Álvarez et al. (2025) │
│ Standard Library │ Binary parsing (imzML) │ Julia vs R (Base) │ 214x │ Rosas-Román et al. (2024) │
│ High-res Imaging │ Sparse Matrix Handling │ Julia vs Python (Base) │ ~100x │ Rosas-Román et al. (2024) │
└──────────────────┴────────────────────────┴────────────────────────┴────────────────┴──────────────────────────────┘
1. **Ion Extraction and Filtering:** Mass slices were extracted from the `Leaf.imzML` dataset within the ***m/z* 50.0 to 700.0** range. This upper limit was selected because no significant signals were detected beyond this threshold using the LD-LTP-MSI technique for this specific sample, and its implementation allowed for a more computationally manageable dataset. To ensure the inclusion of only chemically relevant signals, peaks were filtered using an intensity threshold of 2% relative to the base peak of the average spectrum, resulting in a refined subset of ion images for downstream analysis.
2. **TrIQ Normalization (Threshold Intensity Quantization):** To mitigate the impact of "hotspots"—stochastic pixels with disproportionately high intensities that obscure lower-abundance metabolic distributions—we implemented a dynamic TrIQ algorithm (Rosas-Román et al., 2024). For each raw ion map $I_{raw}$, the algorithm identifies a signal threshold $T$ based on the distribution of non-zero, finite intensity values $V = \{i \in I_{raw}\mid i > 0, i < \infty\}$. The threshold is defined as the 98th percentile of this distribution:
@@ -59,6 +70,19 @@ We implemented a **Contrastive Learning (SimCLR)** scheme in PyTorch, following
### 3.1 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.[1]). 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. 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.
┌────────────┬─────────────────────────┬────────────────────┬─────────┬───────────────────────────────────────────┐
│ $m/z$ Obs. │ Identification │ Formula $[M+H]^+$ │ Cluster │ Anatomical Significance │
├────────────┼─────────────────────────┼────────────────────┼─────────┼───────────────────────────────────────────┤
│ 290.02 │ Atropine / Hyoscyamine │ $C_{17}H_{24}NO_3$ │ 9 │ Primary vascular transport (Midrib) │
│ 304.00 │ Scopolamine │ $C_{17}H_{22}NO_4$ │ 9 │ Secondary vascular transport │
│ 225.65 │ Cuscohygrine │ $C_{13}H_{25}N_2O$ │ 9 │ Alkaloid accumulation in veins │
│ 306.28 │ 6-Hydroxyhyoscyamine │ $C_{17}H_{24}NO_4$ │ 8 │ Localized sequestration (Islands) │
│ 142.09 │ Tropine / Pseudotropine │ $C_8H_{16}NO$ │ 2 │ Paravascular precursor distribution │
│ 291.00 │ Atropine Isotope │ $[M+H+1]^+$ │ 9 │ Internal validation of Isotopic Coherence │
└────────────┴─────────────────────────┴────────────────────┴─────────┴───────────────────────────────────────────┘
![[msi_tsne_corregido.png]]
**Figure 1. 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.
@@ -72,6 +96,17 @@ Rather than reflecting random variation, the observed spatial arrangements defin
**Figure 2. 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.
┌───────────────┬──────────┬────────────────────────────┬─────────────────────────────────────────────┐
│ Domain Group │ Clusters │ Spatial Pattern │ Biological Interpretation │
├───────────────┼──────────┼────────────────────────────┼─────────────────────────────────────────────┤
│ Vascular │ 9, 4, 0 │ Continuous midrib signal │ Long-distance metabolic transport. │
│ Paravascular │ 2, 6 │ Adjacent to main veins │ Lateral transport and tissue loading. │
│ Apical │ 3, 5, 7 │ High density at distal tip │ Terminal accumulation of tropane alkaloids. │
│ Sequestration │ 1, 8 │ Isolated "island" patterns │ Specialized metabolic compartments. │
└───────────────┴──────────┴────────────────────────────┴─────────────────────────────────────────────┘
#### 3.2.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.