ashaddams commited on
Commit
75f7c0a
·
verified ·
1 Parent(s): 493b566

Upload 5 files

Browse files
Files changed (1) hide show
  1. README.md +43 -38
README.md CHANGED
@@ -4,58 +4,63 @@ emoji: 🌱
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 6.13.0
8
  app_file: app.py
9
  pinned: false
10
  license: cc-by-nc-nd-4.0
 
11
  ---
12
 
13
- # 🌱 Algae Yield Predictor
14
 
15
- This Space provides an interactive interface to **predict algal biomass, lipid, protein, and carbohydrate yields** under different culture conditions.
16
- It uses augmented datasets (200k synthetic rows per target) combined with ensemble ML models (CatBoost, XGBoost, LightGBM, ExtraTrees) and a meta-stacking approach.
17
 
18
- [Full description continues here...]
19
- # 🌱 Algae Yield Predictor
20
 
21
- This Space provides an interactive interface to **predict algal biomass, lipid, protein, and carbohydrate yields** under different culture conditions.
22
- It uses augmented datasets (200k synthetic rows per target) combined with ensemble ML models (CatBoost, XGBoost, LightGBM, ExtraTrees) and a meta-stacking approach.
23
 
24
- ---
 
 
 
 
 
 
 
25
 
26
- ## Features
27
- - **Targets:** biomass, lipid, protein, carbohydrate
28
- - **Species–Media aware:** dropdowns restrict valid species–medium combinations
29
- - **Curated suggestions:** shows recommended conditions for each species/target
30
- - **Uncertainty estimates:** KNN-based local intervals (10–90%) from augmented data
31
- - **Response plots:** sweep one variable (light, days, pH, etc.) and visualize prediction curve + uncertainty band
32
- - **DOI references:** retrieves closest experimental setups from `doi.csv` (if provided)
33
 
34
- ---
35
 
36
- ## 🚀 How to Use
37
- 1. Select a **target** (biomass, lipid, protein, carb).
38
- 2. Choose **species** and valid **growth medium**.
39
- 3. Adjust culture conditions:
40
- - Light intensity
41
- - Day/Night exposure
42
- - Temperature
43
- - pH
44
- - Days of culture
45
- 4. Click **Predict + Plot** to:
46
- - Get yield prediction with uncertainty band
47
- - See response curve for chosen variable
48
- 5. Optionally click **Find Closest DOI Matches** to explore related literature.
 
 
 
 
 
49
 
50
- ---
51
 
52
- ## 🧩 Models & Data
53
- - **Training data:** real experimental CSV (`ai_al.csv`) + augmented synthetic sets (20k/200k).
54
- - **Models:** CatBoost, XGBoost, LightGBM, ExtraTrees → stacked with RidgeCV.
55
- - **Uncertainty:** derived from nearest neighbors in augmented dataset.
56
 
57
- If `doi.csv` is provided with experimental metadata + DOI links, the app will display closest literature matches.
58
 
59
- ---
 
 
 
 
60
 
61
- ## 📂 File Structure
 
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 5.46.1
8
  app_file: app.py
9
  pinned: false
10
  license: cc-by-nc-nd-4.0
11
+ python_version: "3.11"
12
  ---
13
 
14
+ # Algae Yield Predictor
15
 
16
+ This Space provides an interactive interface to predict algal biomass, lipid, protein, and carbohydrate yields under different culture conditions.
 
17
 
18
+ The app uses real experimental data, augmented target-specific datasets, and saved ensemble models to provide model predictions, local uncertainty intervals, response plots, species-medium constraints, and optional DOI-based literature matches.
 
19
 
20
+ ## Main features
 
21
 
22
+ - Targets: biomass, lipid, protein, carbohydrate
23
+ - Species-medium aware dropdowns
24
+ - Curated suggested conditions by species and target
25
+ - Selectable model: STACK, XGB, LGBM, CAT, MLP
26
+ - Local uncertainty intervals from augmented-data nearest neighbors
27
+ - Response plots for light, days, pH, temperature, day exposure, and night exposure
28
+ - Optional DOI matching from `doi.csv`
29
+ - Literature-range clamping for biologically plausible outputs
30
 
31
+ ## Required repository files
 
 
 
 
 
 
32
 
33
+ The following files/folders must be present in the Space repository root:
34
 
35
+ ```text
36
+ app.py
37
+ README.md
38
+ requirements.txt
39
+ pre-requirements.txt
40
+ runtime.txt
41
+ ai_al.csv
42
+ doi.csv # optional
43
+ augmented_biomass_200k.csv # or augmented_biomass_20k.csv
44
+ augmented_lipid_200k.csv # or augmented_lipid_20k.csv
45
+ augmented_protein_200k.csv # or augmented_protein_20k.csv
46
+ augmented_carb_200k.csv # or augmented_carb_20k.csv
47
+ models/
48
+ biomass/
49
+ lipid/
50
+ protein/
51
+ carb/
52
+ ```
53
 
54
+ Each target model folder should contain the saved model artifacts expected by `app.py`, including encoders, imputer, config, base learners, MLP model, and meta model.
55
 
56
+ ## Deployment notes
 
 
 
57
 
58
+ This Space is pinned to Python 3.11 because the scientific stack used here is much more reliable on Python 3.11 than Python 3.13. Python 3.13 may force source builds for packages such as pandas or create compatibility issues with TensorFlow and compiled ML libraries.
59
 
60
+ After uploading these fixed files, use **Factory reboot** in Hugging Face Spaces to clear the old build cache.
61
+
62
+ ## Citation
63
+
64
+ If you use this predictor or dataset, please cite:
65
 
66
+ Tiwari, A., Dubey, S., Sumathi, Y., Patel, A. K., & Kuo, T.-R. (2025). *Augmented and Real Microalgae Datasets for Biomass and Biochemical Composition Prediction* [Data set]. Zenodo. https://doi.org/10.5281/zenodo.17177597