How racemboujelben12345-alt/smartbio_pro works
SmartBio PRO is a research platform for quality-gated smartphone optical estimation of hemoglobin and bilirubin. Its principal workflow runs from metadata discovery and explicit canonicalization through integrity checks, patient/device-safe splits, ROI-based optical feature extraction, quantitative safeguards, model evaluation, and robustness reporting. The graph includes the experiment and benchmark gates as an internal control layer. Some documented capabilities have unsampled implementations; those relationships are attributed to the README, and uncertain links are omitted.
Main entry points: cli.py Command interface · quantitative_runner.py Quantitative runner · benchmark_gate.py Benchmark gate · optical_pipeline.py Optical preprocessing
Components 20
Data intake
- Command interface
src/smartbio/cli.py - Schema discovery
src/smartbio/schema_discovery.py - Explicit mapping
src/smartbio/schema.py - Canonical dataset
src/smartbio/canonical.py - Dataset adapters
src/smartbio/dataset_adapters.py
Optical measurement
- ROI contracts
src/smartbio/roi.py - Image features
src/smartbio/features.py - Optical preprocessing
src/smartbio/optical_pipeline.py - Biophysical models
src/smartbio/biophysics.py - Calibration
src/smartbio/calibration.py
Research experiments
- Safe splits
src/smartbio/splits.py - Quantitative runner
src/smartbio/quantitative_runner.py - Regression evaluation
src/smartbio/regression.py - Uncertainty analysis
src/smartbio/uncertainty.py - Robustness analysis
src/smartbio/robustness.py
Validation safeguards
- Integrity audit
src/smartbio/audit.py - Acquisition controls
src/smartbio/acquisition.py - Target provenance
src/smartbio/target_provenance.py - Benchmark gate
src/smartbio/benchmark_gate.py
Other components
- Researcher
Connections 25
- Researcher → Command interface: runs commands
- Command interface → Schema discovery: discovers schema
src/smartbio/cli.py - Command interface → Explicit mapping: canonicalizes with
src/smartbio/cli.py - Command interface → Canonical dataset: creates dataset
src/smartbio/cli.py - Command interface → Integrity audit: runs audit
src/smartbio/cli.py - Command interface → Safe splits: creates splits
src/smartbio/cli.py - Command interface → Image features: runs features
src/smartbio/cli.py - Command interface → Acquisition controls: audits physics
src/smartbio/cli.py - Dataset adapters → Canonical dataset: normalizes to
src/smartbio/dataset_adapters.py - Image features → Biophysical models: uses models
src/smartbio/features.py - Optical preprocessing → Biophysical models: linearizes RGB
src/smartbio/optical_pipeline.py - Optical preprocessing → ROI contracts: masks ROI pixels
- Command interface → ROI contracts: validates ROI
src/smartbio/cli.py - Command interface → Optical preprocessing: preprocesses ROI
src/smartbio/cli.py - Acquisition controls → Biophysical models: guards capture physics
- Command interface → Calibration: calibrates measurements
- Command interface → Target provenance: checks targets
- Quantitative runner → Benchmark gate: requests gate
src/smartbio/quantitative_runner.py - Benchmark gate → Acquisition controls: checks capture
src/smartbio/benchmark_gate.py - Benchmark gate → Target provenance: validates provenance
src/smartbio/benchmark_gate.py - Quantitative runner → Regression evaluation: evaluates predictions
- Quantitative runner → Uncertainty analysis: assesses uncertainty
- Command interface → Quantitative runner: runs experiment
- Command interface → Robustness analysis: reports robustness
- Command interface → Dataset adapters: ingests datasets
src/smartbio/cli.py