Model validation and performance evaluation
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill model-validation-and-performance-evaluationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when after training a MEISTER deep learning reconstruction model on mass spectrometry data, you must validate performance on independent test sets before applying the model to new experimental or clinical samples.
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
7.9 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
model-validation-and-performance-evaluation
Summary
Evaluate trained deep learning reconstruction models on held-out test data and simulated or experimental mass spectrometry datasets using reconstruction accuracy, loss metrics, and comparative benchmarks. This skill ensures the MEISTER model generalizes beyond training data and produces biochemically meaningful reconstructions for multiscale tissue and single-cell mass spectrometry analysis.
When to use
After training a MEISTER deep learning reconstruction model on mass spectrometry data, you must validate performance on independent test sets before applying the model to new experimental or clinical samples. Validation is critical when transitioning from training on one acquisition protocol (e.g., high-resolution MSI) to deployment on different sample types (e.g., low mass resolution serial sections or single-cell MS data) or when assessing whether reconstruction artifacts or loss thresholds are acceptable for downstream biological interpretation.
When NOT to use
- Input data has already been validated against an independent reference—reapplying evaluation may introduce circular reasoning or overfit metrics.
- Model has not been trained on a representative training partition; evaluation on the same data used for training will yield inflated performance estimates.
- You lack access to ground truth or reference mass spectrometry data (e.g., high-resolution reference spectra) needed to compute accuracy metrics; in such cases, only qualitative biological coherence checks are possible.
Inputs
- raw mass spectrometry transient files (.d folder with Bruker format)
- preprocessed feature matrices or peak data (imzML or h5 format)
- test set partition of mass spectrometry data
- trained model weights (decoder and regressor checkpoints)
Outputs
- reconstruction loss or accuracy metrics (scalar or per-pixel/per-sample)
- reconstructed peak data (imzML format) or decoded feature matrices (h5 format)
- validation performance report or plots
- model evaluation artifacts (e.g., residual images, confusion matrices)
How to apply
Partition mass spectrometry data into training and held-out test sets prior to model initialization. Train the MEISTER reconstruction model (decoder and regressor) on the training partition using the provided training pipeline. Evaluate the trained model on test data by computing reconstruction loss (e.g., mean squared error) and accuracy metrics; the README references MEISTER_eval.ipynb for experimental datasets and MEISTER_simulation.ipynb for controlled benchmarks on synthetic MSI data. Compare reconstructed peak data (imzML format) or decoded feature matrices (h5 format) against ground truth or reference measurements to quantify fidelity. Document model weights, validation metrics, and any failure modes (e.g., artifacts in low-abundance regions) before proceeding to multiscale integrative analysis or single-cell mapping tasks.
Related tools
- MEISTER (deep learning reconstruction framework whose trained model is evaluated on test data using reconstruction loss and accuracy metrics) — https://github.com/richardxie1119/MEISTER
- multiscale_analysis (repository containing MEISTER_eval.ipynb and MEISTER_simulation.ipynb notebooks for systematic model validation on experimental and simulated MSI datasets) — https://github.com/richardxie1119/multiscale_analysis
Examples
# From the multiscale_analysis repository:
# Evaluate trained model on experimental MSI data
jupyter notebook MEISTER_eval.ipynb
# Or on simulated data for controlled benchmarking:
jupyter notebook MEISTER_simulation.ipynb
Evaluation signals
- Reconstruction loss (e.g., MSE) on test set is lower than on training set or within an acceptable threshold; significant divergence suggests overfitting.
- Reconstructed peak data in imzML or h5 format matches the spatial and intensity structure of ground truth reference data, confirmed by visual inspection or spectral correlation metrics.
- Model evaluation notebooks (MEISTER_eval.ipynb on experimental data, MEISTER_simulation.ipynb on synthetic data) run without errors and produce coherent performance plots or heatmaps.
- Validation metrics are reproducible across independent random seeds and test set partitions; high variance suggests unstable model generalization.
- Downstream multiscale analysis tasks (e.g., tissue-cell mapping, brain regional registration) produce biologically coherent results when fed the reconstructed data, indicating acceptable reconstruction fidelity for interpretation.
Limitations
- The README notes 'We are expanding our code documentations to make it friendly', suggesting that evaluation workflows and hyperparameter tuning guidance may be incomplete or subject to change.
- Validation performance is data-dependent; models trained on high-resolution MSI may not generalize to low mass resolution serial sections without retraining or domain adaptation.
- Reconstruction accuracy metrics (loss, R² etc.) do not directly measure biological validity; a model with low loss may still produce artifacts that mislead downstream biochemical interpretation.
Evidence
- [other] Evaluate the trained model on held-out test data, computing reconstruction accuracy or loss metrics.: "Evaluate the trained model on held-out test data, computing reconstruction accuracy or loss metrics."
- [readme] The Notebooks for the multifaceted data analysis can be found [here], including MEISTER_eval.ipynb for evaluation of MEISTER models on experimental MSI data sets and MEISTER_simulation.ipynb for evaluation on simulated MSI data sets.: "MEISTER_eval.ipynb | Evaluation of MEISTER models on experimental MSI data sets. | MEISTER_simulation.ipynb | Evaluation of MEISTER models on simulated MSI data sets."
- [readme] The complete computational protocol for reconstruction and downstream multiscale data analysis can be found in the online Supplementary Information.: "The complete computational protocol for reconstruction and downstream multiscale data analysis can be found in the online Supplementary Information"
- [readme] saved_model.zip: trained model weights (decoder and regressor) on high-resolution MSI data used in the manuscript.: "saved_model.zip: trained model weights (decoder and regressor) on high-resolution MSI data used in the manuscript."
- [other] MEISTER implements deep learning reconstruction as a component that processes mass spectrometry data to enable multiscale and integrative analysis of both tissue and single-cell samples.: "MEISTER implements deep learning reconstruction as a component that processes mass spectrometry data to enable multiscale and integrative analysis of both tissue and single-cell samples."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.