How psanyalaich/oral-cancer-histopathology-ml works
This is a research pipeline for classifying normal versus OSCC histopathology images using handcrafted features and classical ML. Its main workflow generates experiment configurations, prepares reproducible folds, loads and processes images into feature datasets, then trains and evaluates models across folds and records results for analysis. The graph also includes quality control, explainability, visual evaluation, learning curves, and statistical comparisons. Several connections are based on the README or source-index references; unsampled implementation details are not asserted beyond those documented links.
Main entry points: train_model.py Experiment orchestration · experiment_runner.py Cross-validation runner · dataset.py Image dataset · experiments.py Experiment generation
Components 20
Experiment design
- Experiment settings
configs/experiment_config.py - Preprocessing settings
configs/preprocessing_config.py - Experiment generation
experiments.py - CV split generation
generate_splits.py
Image data
- Image dataset
src/dataset.py - Image preprocessing
src/preprocessing.py - Image quality checks
src/data_quality.py - Handcrafted features
src/features.py - Feature cache
src/cache_utils.py
Model training
- Experiment orchestration
train_model.py - Cross-validation runner
src/experiment_runner.py - Model selection
src/model_utils.py
Evaluation
- Fold metrics
src/metrics_utils.py - Evaluation plots
src/visualize_results.py - Model explainability
src/explainability.py - Experiment results
src/results_utils.py
Result analysis
- Learning curves
src/learning_curve_analysis.py - Statistical comparisons
stats_analysis.py - Statistical utilities
src/statistics_utils.py
Other components
- Researcher
Connections 21
- Researcher → Experiment generation: defines experiments
README.md - Experiment settings → Experiment generation: configures
experiments.py - Preprocessing settings → Experiment settings: sets normalization options
configs/experiment_config.py - Experiment generation → CV split generation: supplies settings
README.md - CV split generation → Image dataset: defines CV folds
README.md - Experiment generation → Experiment orchestration: supplies configurations
train_model.py - Experiment orchestration → CV split generation: selects split files
README.md - Experiment orchestration → Feature cache: loads cached dataset
train_model.py - Feature cache → Image dataset: caches dataset build
src/cache_utils.py - Image dataset → Image preprocessing: loads and processes images
src/dataset.py - Image dataset → Image quality checks: checks image quality
src/dataset.py - Image dataset → Handcrafted features: extracts descriptors
src/dataset.py - Experiment orchestration → Cross-validation runner: runs folds
train_model.py - Cross-validation runner → Model selection: builds and tunes model
src/experiment_runner.py - Cross-validation runner → Fold metrics: computes metrics
src/experiment_runner.py - Cross-validation runner → Evaluation plots: plots fold results
src/experiment_runner.py - Cross-validation runner → Model explainability: measures importance
src/experiment_runner.py - Experiment orchestration → Experiment results: saves experiment outputs
train_model.py - Experiment orchestration → Learning curves: plots learning curves
train_model.py - Experiment results → Statistical comparisons: provides experiment results
README.md - Statistical comparisons → Statistical utilities: verifies matching splits
stats_analysis.py