Launch Google Colab training runs, inspect the reusable case-study modules, and sync weights back to the Raspberry Pi control stack.
Recommended steps before launching any SmartPlants notebook run.
/content/data)..pt or JSON thresholds) back to Firebase or local storage for deployment.Install the same dependencies used by the Raspberry Pi controller.
Inside Colab, run the command above in a shell cell (!pip install -r requirements.txt). For GPU experiments add torch or torchvision wheels pinned to Colab's runtime.
Notebook orchestrating data upload, preprocessing, and fine-tuning for the case-study models directly inside Google Colab.
ai model/smartplant_colab_training.ipynb
Tree-based baseline that maps engineered sensor features to four irrigation stress labels using scikit-learn's RandomForestClassifier.
ai model/case_study_classification.py
Sequence model that forecasts upcoming stress states from SmartPlant telemetry windows with a PyTorch LSTM core.
ai model/case_study_forecasting.py
CLIP-inspired architecture that fuses RGB+NIR crop snapshots with SmartPlant telemetry embeddings to classify stress levels.
ai model/case_study_multimodal.py
After training, drop your artifacts into the Raspberry Pi workspace (static/models/ or Firebase storage) and refresh the dashboard. The scheduler picks up new thresholds on the next sync cycle.
Need automation later? Expose a new endpoint in app.py that ingests model metadata and restarts the inference workers without downtime.