# 28abhiram2007/ai-study-analyser architecture

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

- Interactive diagram: https://gitdiagram.com/28abhiram2007/ai-study-analyser
- Repository: https://github.com/28abhiram2007/ai-study-analyser

## Overview

AI Study Analyser is a small Streamlit app: students enter study metrics, request an analysis, and receive a predicted score, performance category, strengths, improvement suggestions, and a study plan. The sample training data fits a Random Forest model at startup; the app uses that model when the student submits inputs. These responsibilities are all implemented in app.py, so the graph separates them by role, not by module. Evidence is limited to the sampled app.py.

Main entry points: [`app.py`](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py) (Performance Analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_student(("Student"))
node_study_inputs["Study Inputs<br/>[app.py]"]
node_training_data["Training Data<br/>[app.py]"]
node_model["Random Forest<br/>[app.py]"]
node_analysis["Performance Analysis<br/>[app.py]"]
node_guidance["Study Guidance<br/>[app.py]"]
node_results["Results Display<br/>[app.py]"]

node_student -->|"enters metrics"| node_study_inputs
node_training_data -->|"fits model"| node_model
node_study_inputs -->|"submits inputs"| node_analysis
node_analysis -->|"predicts score"| node_model
node_analysis -->|"derives advice"| node_guidance
node_analysis -->|"renders analysis"| node_results
node_guidance -->|"renders guidance"| node_results

click node_study_inputs "https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py"
click node_training_data "https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py"
click node_model "https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py"
click node_analysis "https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py"
click node_guidance "https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py"
click node_results "https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py"

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_student toneIndigo
class node_study_inputs,node_training_data,node_model,node_analysis,node_guidance,node_results toneTeal
```

## Components

### Other components

- **Student**
- [Study Inputs](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py): `app.py`
- [Training Data](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py): `app.py`
- [Random Forest](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py): `app.py`
- [Performance Analysis](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py): `app.py`
- [Study Guidance](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py): `app.py`
- [Results Display](https://github.com/28abhiram2007/ai-study-analyser/blob/main/app.py): `app.py`

## Connections

- Student → Study Inputs: enters metrics (evidence: `app.py`)
- Training Data → Random Forest: fits model (evidence: `app.py`)
- Study Inputs → Performance Analysis: submits inputs (evidence: `app.py`)
- Performance Analysis → Random Forest: predicts score (evidence: `app.py`)
- Performance Analysis → Study Guidance: derives advice (evidence: `app.py`)
- Performance Analysis → Results Display: renders analysis (evidence: `app.py`)
- Study Guidance → Results Display: renders guidance (evidence: `app.py`)
