# diyaghorpade/major-project architecture

> Architecture diagram of the GitHub repository diyaghorpade/major-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/diyaghorpade/major-project
- Repository: https://github.com/diyaghorpade/major-project

## Overview

This repository combines a plant-health monitoring project with a research-paper collection. The executable workflow in `plant_stress` turns sensor readings into stress classifications: preprocessing creates time-separated, scaled features; training fits and saves three model types; evaluation compares them and produces reports, plots, and SHAP explanations. The tree also contains a dashboard and Jetson deployment guide, but their contents were not sampled, so their runtime connections are left unspecified. Relationships below are limited to calls and data handling shown in excerpts or the source index.

Main entry points: [`plant_stress/src/evaluate.py`](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/evaluate.py) (Model evaluation), [`plant_stress/src/preprocess.py`](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/preprocess.py) (Feature preparation), [`plant_stress/src/train.py`](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/train.py) (Model training), [`plant_stress/src/config.py`](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/config.py) (Pipeline configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_sensor_data[("Plant sensor data")]
  node_settings["Pipeline configuration<br/>[config.py]"]
  node_seeding["Reproducibility utilities<br/>[utils.py]"]
  node_preprocess["Feature preparation<br/>[preprocess.py]"]
end

subgraph group_modeling["Model training"]
  node_training["Model training<br/>[train.py]"]
  node_model_store[("Saved models and scaler")]
end

subgraph group_evaluation["Evaluation and outputs"]
  node_evaluation["Model evaluation<br/>[evaluate.py]"]
  node_reports["Evaluation reports"]
  node_plots["Plots and explanations"]
end

subgraph group_deployment["Project interfaces"]
  node_dashboard["Monitoring dashboard<br/>[dashboard.html]"]
  node_jetson_guide["Jetson deployment guide"]
end

node_operator(("Project user"))

node_operator -->|"runs pipeline"| node_preprocess
node_preprocess -->|"reads readings"| node_sensor_data
node_preprocess -->|"uses settings"| node_settings
node_preprocess -->|"seeds pipeline"| node_seeding
node_preprocess -->|"saves scaler"| node_model_store
node_operator -->|"runs training"| node_training
node_training -->|"imports pipeline"| node_preprocess
node_training -->|"uses settings"| node_settings
node_training -->|"seeds training"| node_seeding
node_training -->|"saves models"| node_model_store
node_operator -->|"runs evaluation"| node_evaluation
node_evaluation -->|"loads test data"| node_preprocess
node_evaluation -->|"loads model helpers"| node_training
node_evaluation -->|"uses settings"| node_settings
node_evaluation -->|"seeds evaluation"| node_seeding
node_evaluation -->|"loads models"| node_model_store
node_evaluation -->|"writes metrics"| node_reports
node_evaluation -->|"writes plots"| node_plots

click node_sensor_data "https://github.com/diyaghorpade/major-project/blob/main/plant_stress/data/plant_health_data.csv"
click node_settings "https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/config.py"
click node_seeding "https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/utils.py"
click node_preprocess "https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/preprocess.py"
click node_training "https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/train.py"
click node_evaluation "https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/evaluate.py"
click node_reports "https://github.com/diyaghorpade/major-project/tree/main/plant_stress/outputs/reports"
click node_plots "https://github.com/diyaghorpade/major-project/tree/main/plant_stress/outputs/plots"
click node_dashboard "https://github.com/diyaghorpade/major-project/blob/main/dashboard.html"
click node_jetson_guide "https://github.com/diyaghorpade/major-project/blob/main/jetson_deployment_guide.docx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sensor_data,node_settings,node_seeding,node_preprocess,node_operator toneBlue
class node_training,node_model_store toneAmber
class node_evaluation,node_reports,node_plots toneMint
class node_dashboard,node_jetson_guide toneRose
```

## Components

### Data preparation

- [Plant sensor data](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/data/plant_health_data.csv): `plant_stress/data/plant_health_data.csv`
- [Pipeline configuration](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/config.py): `plant_stress/src/config.py`
- [Reproducibility utilities](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/utils.py): `plant_stress/src/utils.py`
- [Feature preparation](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/preprocess.py): `plant_stress/src/preprocess.py`

### Model training

- [Model training](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/train.py): `plant_stress/src/train.py`
- **Saved models and scaler**

### Evaluation and outputs

- [Model evaluation](https://github.com/diyaghorpade/major-project/blob/main/plant_stress/src/evaluate.py): `plant_stress/src/evaluate.py`
- [Evaluation reports](https://github.com/diyaghorpade/major-project/tree/main/plant_stress/outputs/reports): `plant_stress/outputs/reports`
- [Plots and explanations](https://github.com/diyaghorpade/major-project/tree/main/plant_stress/outputs/plots): `plant_stress/outputs/plots`

### Project interfaces

- [Monitoring dashboard](https://github.com/diyaghorpade/major-project/blob/main/dashboard.html): `dashboard.html`
- [Jetson deployment guide](https://github.com/diyaghorpade/major-project/blob/main/jetson_deployment_guide.docx): `jetson_deployment_guide.docx`

### Other components

- **Project user**

## Connections

- Project user → Feature preparation: runs pipeline (evidence: `plant_stress/src/preprocess.py`)
- Feature preparation → Plant sensor data: reads readings (evidence: `plant_stress/src/preprocess.py`)
- Feature preparation → Pipeline configuration: uses settings (evidence: `plant_stress/src/preprocess.py`)
- Feature preparation → Reproducibility utilities: seeds pipeline (evidence: `plant_stress/src/preprocess.py`)
- Feature preparation → Saved models and scaler: saves scaler (evidence: `plant_stress/src/preprocess.py`)
- Project user → Model training: runs training (evidence: `plant_stress/src/train.py`)
- Model training → Feature preparation: imports pipeline (evidence: `plant_stress/src/train.py`)
- Model training → Pipeline configuration: uses settings (evidence: `plant_stress/src/train.py`)
- Model training → Reproducibility utilities: seeds training (evidence: `plant_stress/src/train.py`)
- Model training → Saved models and scaler: saves models (evidence: `plant_stress/src/train.py`)
- Project user → Model evaluation: runs evaluation (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Feature preparation: loads test data (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Model training: loads model helpers (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Pipeline configuration: uses settings (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Reproducibility utilities: seeds evaluation (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Saved models and scaler: loads models (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Evaluation reports: writes metrics (evidence: `plant_stress/src/evaluate.py`)
- Model evaluation → Plots and explanations: writes plots (evidence: `plant_stress/src/evaluate.py`)
