Actualizar MSI_Toloache_Paper_English.md
Changes in 2.1 Phase I: High-Performance Data Ingestion and Preprocessing (Julia)
This commit is contained in:
@@ -20,12 +20,12 @@ Traditionally, MSI data analysis has relied on linear methods and standard imagi
|
|||||||
|
|
||||||
## 2. Methodology
|
## 2. Methodology
|
||||||
|
|
||||||
### 2.1 Phase I: High-Performance Processing (Julia)
|
### 2.1 Phase I: High-Performance Processing and Data Normalization (Julia)
|
||||||
Preprocessing was conducted using the **JuliaMSI** platform (Sierra-Álvarez et al., 2025). The objective was to transform raw data into a series of standardized images ready for the neural network.
|
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:** The `Leaf.imzML` file was processed to extract mass slices in the ***m/z* 50.0 to 700.0** range. Peaks were selected based on an intensity threshold of 2% relative to the average spectrum.
|
1. **Ion Extraction and Filtering:** Mass slices were extracted from the `Leaf.imzML` dataset within the ***m/z* 50.0 to 700.0** range. 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).
|
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:** Using bilinear interpolation, each ion map was resampled to a resolution of **224x224 pixels**, ensuring compatibility with computer vision architectures (Hu et al., 2022).
|
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.2 Phase II: Self-Supervised Representation Learning (Python)
|
||||||
We implemented a **Contrastive Learning (SimCLR)** scheme in PyTorch, following the methodology proposed by Hu et al. (2022).
|
We implemented a **Contrastive Learning (SimCLR)** scheme in PyTorch, following the methodology proposed by Hu et al. (2022).
|
||||||
|
|||||||
Reference in New Issue
Block a user