# manikeshwari54/florasense_ai architecture

> Architecture diagram of the GitHub repository manikeshwari54/florasense_ai, 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/manikeshwari54/florasense_ai
- Repository: https://github.com/manikeshwari54/florasense_ai

## Overview

FloraSense AI is an indoor-plant identification and care-guidance application, with a documented Streamlit interface and FastAPI backend. The main user-facing workflow is plant-image identification, uncertainty/suitability rejection, and botanical care guidance. The README also documents dataset preparation, transfer-learning training, and model evaluation as supporting capabilities. No source excerpts were provided, so component relationships below rely on README descriptions and documented commands rather than inspected implementation calls.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Plant experience"]
  node_streamlit["Streamlit app"]
  node_api["REST backend"]
end

subgraph group_inference["Identification and safety"]
  node_engine["Inference engine"]
  node_ood["OOD detector"]
end

subgraph group_knowledge["Care knowledge"]
  node_care[("Care database")]
end

subgraph group_ml["Model development"]
  node_dataset["Dataset pipeline"]
  node_downloader["Dataset downloader"]
  node_training["Transfer learning"]
  node_checkpoint[("Model checkpoints")]
  node_evaluation["Model evaluation"]
end

node_user(("Plant owner"))
node_hf[("Hugging Face dataset")]

node_user -->|"submits plant"| node_streamlit
node_streamlit -->|"identifies image"| node_engine
node_streamlit -->|"flags uncertain"| node_ood
node_streamlit -->|"provides guidance"| node_care
node_user -.->|"requests service"| node_api
node_hf -->|"supplies dataset"| node_downloader
node_downloader -->|"prepares splits"| node_dataset
node_dataset -->|"supplies training data"| node_training
node_training -->|"saves models"| node_checkpoint
node_checkpoint -.->|"loads model"| node_engine
node_checkpoint -->|"evaluates models"| node_evaluation

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_streamlit,node_api toneBlue
class node_engine,node_ood,node_hf toneAmber
class node_care toneMint
class node_dataset,node_downloader,node_training,node_checkpoint,node_evaluation toneRose
class node_user toneIndigo
```

## Components

### Plant experience

- **Streamlit app**
- **REST backend**

### Identification and safety

- **Inference engine**
- **OOD detector**

### Care knowledge

- **Care database**

### Model development

- **Dataset pipeline**
- **Dataset downloader**
- **Transfer learning**
- **Model checkpoints**
- **Model evaluation**

### Other components

- **Plant owner**
- **Hugging Face dataset**

## Connections

- Plant owner → Streamlit app: submits plant (evidence: `README.md`)
- Streamlit app → Inference engine: identifies image (evidence: `README.md`)
- Streamlit app → OOD detector: flags uncertain (evidence: `README.md`)
- Streamlit app → Care database: provides guidance (evidence: `README.md`)
- Plant owner → REST backend: requests service
- Hugging Face dataset → Dataset downloader: supplies dataset (evidence: `README.md`)
- Dataset downloader → Dataset pipeline: prepares splits (evidence: `README.md`)
- Dataset pipeline → Transfer learning: supplies training data (evidence: `README.md`)
- Transfer learning → Model checkpoints: saves models (evidence: `README.md`)
- Model checkpoints → Inference engine: loads model
- Model checkpoints → Model evaluation: evaluates models (evidence: `README.md`)
