Actualizar MSI_Toloache_Paper_English.md
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
---
|
||||
|
||||
## Abstract
|
||||
Mass Spectrometry Imaging (MSI) has emerged as a fundamental tool in spatial metabolomics (García-Rojas et al., 2024), enabling the *in situ* visualization of molecular distributions. However, the nature of these data—characterized by massive volumes of multivariate information and high levels of instrumental noise—poses critical challenges for traditional analysis methods. In this work, we present an innovative computational architecture that addresses the "two-language problem" by integrating **Julia** for high-performance data processing and **Python** for representation learning via deep neural networks. We implemented a self-supervised learning workflow based on the **SimCLR** architecture with an **EfficientNet-B0** encoder, designed to extract robust morphological features from ion images without the need for prior labeling. This system was applied to the study of *Datura innoxia* (toloache) leaves at a spatial resolution of 100 µm, achieving automated anatomical segmentation that accurately distinguishes vascular and parenchymal tissues. Our results demonstrate that the latent space generated by the neural network captures fundamental chemical relationships, such as the co-localization of isotopic patterns, offering a scalable and objective pathway for the interpretation of complex biological systems.
|
||||
Mass Spectrometry Imaging (MSI) has emerged as a fundamental tool in spatial metabolomics, enabling the *in situ* visualization of molecular distributions. However, the nature of these data—characterized by massive volumes of multivariate information and high levels of instrumental noise—poses critical challenges for traditional analysis methods. In this work, we present an innovative computational architecture that addresses the "two-language problem" by integrating **Julia** for high-performance data processing and **Python** for representation learning via deep neural networks. We implemented a self-supervised learning workflow based on the **SimCLR** architecture with an **EfficientNet-B0** encoder, designed to extract robust morphological features from ion images without prior labeling. This system was applied to the study of *Datura innoxia* (toloache) leaves at a spatial resolution of 150 µm, achieved via Laser Desorption Low-Temperature Plasma (LD-LTP) ionization. By prioritizing anatomical fidelity over mathematical parsimony, we identified an optimal clustering of $k=10$ that accurately distinguishes vascular, paravascular, and parenchymal tissues. Our results demonstrate that the latent space generated by the neural network captures fundamental chemical relationships, such as the co-localization of isotopic patterns, offering a scalable and objective pathway for the interpretation of complex biological systems.
|
||||
|
||||
---
|
||||
|
||||
@@ -20,14 +20,17 @@ Traditionally, MSI data analysis has relied on linear methods and standard imagi
|
||||
|
||||
## 2. Methodology
|
||||
|
||||
### 2.1 Phase I: High-Performance Processing and Data Normalization (Julia)
|
||||
### 2.1 MSI Data Acquisition (LD-LTP-MSI)
|
||||
Imaging was performed using an **LD-LTP-MSI** system coupled to an **LCQ Fleet Ion Trap** mass spectrometer (Thermo Scientific). The custom ionization source consisted of a Low-Temperature Plasma (LTP) probe and a continuous-wave violet laser (400-450 nm, 1.0 W). The LTP probe was operated with helium (0.1 L/min) at 3.3 kV and ~13 kHz, positioned at a 45° angle and 4 mm from the ion transfer capillary. The laser was oriented at 90° to the sample surface at a focal distance of 9 cm, producing a spot size of ~22 µm. Data were acquired in positive ion mode (*m/z* 50–700) with a spatial resolution of **150 µm** for the leaf samples.
|
||||
|
||||
### 2.2 High-Performance Processing and Data Normalization (Julia)
|
||||
The preprocessing stage was conducted using the **JuliaMSI** framework (Sierra-Álvarez et al., 2025), a platform specifically engineered to address the computational bottlenecks of the "two-language problem." By leveraging Julia’s just-in-time (JIT) compilation and efficient memory-mapping capabilities, we facilitated the rapid ingestion and manipulation of massive **imzML** binary files. As demonstrated in previous benchmarks (Sierra-Álvarez et al., 2025), this architecture provides a significant performance advantage over interpreted environments such as Python or R, enabling the high-throughput extraction of mass slices without compromising spectral precision.
|
||||
|
||||
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):** A dynamic TrIQ algorithm was implemented, calculating the 98th percentile to mitigate hotspots and preserve contrast in low-intensity regions (Rosas-Román et al., 2024). For each ion map, the **98th percentile** of the intensity distribution was calculated; all pixels exceeding this value were capped at this threshold. This percentile-based approach prevents outliers from skewing the global contrast, thereby preserving the spatial details of low-abundance metabolites that would otherwise be suppressed in a standard linear scaling. By compressing the dynamic range, TrIQ ensures that the morphological features of the chemical distributions are standardized, which is essential for the stability of the subsequent contrastive learning phase.
|
||||
3. **Spatial Standardization:** To ensure compatibility with the deep learning backbone, each normalized ion map was spatially resampled to a resolution of **224x224 pixels** using bilinear interpolation. This step standardizes the input geometry while maintaining the structural integrity of the leaf’s anatomical features, such as the vascular midrib and parenchymal regions(Hu et al., 2022).
|
||||
|
||||
### 2.2 Phase II: Self-Supervised Representation Learning (Python)
|
||||
### 2.3 Self-Supervised Representation Learning (Python)
|
||||
We implemented a **Contrastive Learning (SimCLR)** scheme in PyTorch, following the methodology proposed by Hu et al. (2022).
|
||||
|
||||
1. **Model Architecture:** **EfficientNet-B0** was used as the backbone encoder. The final classification layer was removed and replaced with a two-layer MLP projection head to project the data into a 128-dimensional space.
|
||||
|
||||
Reference in New Issue
Block a user