# harsh854-22/aicdss architecture

> Architecture diagram of the GitHub repository harsh854-22/aicdss, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harsh854-22/aicdss
- Repository: https://github.com/harsh854-22/aicdss

## Overview

##### Project type and purpose
- From the file tree and README, we see a web-based AI Clinical Decision Support System (AICDSS).
- It combines static front-end pages (HTML/CSS/JS under the “Tabs” folder and root HTML files) with a Python back-end (App.py, model.py, nltk_utils.py, preprocess_data.py) that hosts or drives the AI model (pretrained_symtom_to_disease_model.pth).
- It uses natural language processing (NLTK) and a symptom-to-disease model for inference, exposed via a web interface for basic medical needs.

##### File structure
- Top level:
- App.py – likely the Flask (or similar) server entry point
- model.py, nltk_utils.py, preprocess_data.py – data-processing and ML model code
- pretrained_symtom_to_disease_model.pth & Symptom2Disease.csv – model weights and reference dataset
- new_symp2disease.ipynb – exploratory notebook
- README.md, LICENSE – documentation
- package.json / package-lock.json – front-end JS dependencies (maybe for Chat Bot or other widgets)
- Various .html, .css, .js under “Tabs” – static UI pages (AI Health Assistant, Chat Bot, Yoga, etc.)
- Notice MVC-style separation: “Tabs” holds views, App.py holds controllers/route handlers, model.py etc. holds the model layer.

##### README for additional insights
- The README describes “AI-Powered Clinical Decision Support System” and lists features in a demo video link.

## Diagram (Mermaid)

```mermaid
graph TB
    client["Client Browser"]:::external

    subgraph "Presentation Layer"
        rootPg["Ai Doctor.html"]:::presentation
        indexPg["Index.html"]:::presentation
        booking["Tabs/Booking.html"]:::presentation
        recordPg["Tabs/Record.html"]:::presentation
        remainder["Tabs/remainder.html"]:::presentation

        subgraph "Tabs Modules"
            subgraph "AI Health Assistant"
                bmi["BMI.html"]:::presentation
                healthAssist["Health Assistant.html"]:::presentation
                calorie["calorie intake.html"]:::presentation
                mental["mental health.html"]:::presentation
                sleep["sleep quality.html"]:::presentation
                water["water intake.html"]:::presentation
            end
            chatbot["Tabs/Chat Bot/index.html"]:::presentation
            binaural["Tabs/Binural Beats/binaural.html"]:::presentation
            exercise["Tabs/Exercise/exercise.html"]:::presentation
            yoga["Tabs/Yoga/yoga.html"]:::presentation
            subgraph "Navbar & Authentication"
                forget["Forget password.html"]:::presentation
                login["Loginpage.html"]:::presentation
                signup["signup.html"]:::presentation
                feedback["feedback.html"]:::presentation
                common["common.html"]:::presentation
                medicine["medicine.html"]:::presentation
                nearby["nearby.html"]:::presentation
                team["team.html"]:::presentation
            end
        end

        subgraph "UI Assets"
            styles["Tabs/styles.css"]:::presentation
            script["Tabs/script.js"]:::presentation
            chatStyles["Tabs/Chat Bot/styles.css"]:::presentation
            chatScript["Tabs/Chat Bot/script.js"]:::presentation
        end
    end

    subgraph "Backend Layer"
        staticSrv["Static File Server"]:::backend
        apiServer["App.py"]:::backend
        tests["test.py"]:::backend
    end

    subgraph "AI Inference Module"
        modelCode["model.py"]:::ai
        nltk["nltk_utils.py"]:::ai
        preprocess["preprocess_data.py"]:::ai
        pretrained["pretrained_symtom_to_disease_model.pth"]:::ai
    end

    dataStore["Symptom2Disease.csv"]:::data

    subgraph "Documentation & Dev Tools"
        notebook["new_symp2disease.ipynb"]:::doc
        pkg["package.json"]:::doc
        pkglock["package-lock.json"]:::doc
        readme["README.md"]:::doc
        license["LICENSE"]:::doc
    end

    client --> staticSrv
    client --> apiServer
    staticSrv --> rootPg
    apiServer --> modelCode
    apiServer --> tests
    modelCode --> nltk
    modelCode --> preprocess
    modelCode --> pretrained
    modelCode --> dataStore
    modelCode --> apiServer
    apiServer --> client

    click rootPg "https://github.com/harsh854-22/aicdss/blob/main/Ai Doctor.html"
    click indexPg "https://github.com/harsh854-22/aicdss/blob/main/Index.html"
    click booking "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Booking.html"
    click recordPg "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Record.html"
    click remainder "https://github.com/harsh854-22/aicdss/blob/main/Tabs/remainder.html"
    click styles "https://github.com/harsh854-22/aicdss/blob/main/Tabs/styles.css"
    click script "https://github.com/harsh854-22/aicdss/blob/main/Tabs/script.js"
    click chatStyles "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Chat Bot/styles.css"
    click chatScript "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Chat Bot/script.js"
    click bmi "https://github.com/harsh854-22/aicdss/blob/main/Tabs/AI Health Assistant/BMI.html"
    click healthAssist "https://github.com/harsh854-22/aicdss/blob/main/Tabs/AI Health Assistant/Health Assistant.html"
    click calorie "https://github.com/harsh854-22/aicdss/blob/main/Tabs/AI Health Assistant/calorie intake.html"
    click mental "https://github.com/harsh854-22/aicdss/blob/main/Tabs/AI Health Assistant/mental health.html"
    click sleep "https://github.com/harsh854-22/aicdss/blob/main/Tabs/AI Health Assistant/sleep quality.html"
    click water "https://github.com/harsh854-22/aicdss/blob/main/Tabs/AI Health Assistant/water intake.html"
    click chatbot "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Chat Bot/index.html"
    click binaural "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Binural Beats/binaural.html"
    click exercise "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Exercise/exercise.html"
    click yoga "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Yoga/yoga.html"
    click forget "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/Forget password.html"
    click login "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/Loginpage.html"
    click signup "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/signup.html"
    click feedback "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/feedback.html"
    click common "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/common.html"
    click medicine "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/medicine.html"
    click nearby "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/nearby.html"
    click team "https://github.com/harsh854-22/aicdss/blob/main/Tabs/Navbar/team.html"
    click apiServer "https://github.com/harsh854-22/aicdss/blob/main/App.py"
    click tests "https://github.com/harsh854-22/aicdss/blob/main/test.py"
    click modelCode "https://github.com/harsh854-22/aicdss/blob/main/model.py"
    click nltk "https://github.com/harsh854-22/aicdss/blob/main/nltk_utils.py"
    click preprocess "https://github.com/harsh854-22/aicdss/blob/main/preprocess_data.py"
    click pretrained "https://github.com/harsh854-22/aicdss/blob/main/pretrained_symtom_to_disease_model.pth"
    click dataStore "https://github.com/harsh854-22/aicdss/blob/main/Symptom2Disease.csv"
    click notebook "https://github.com/harsh854-22/aicdss/blob/main/new_symp2disease.ipynb"
    click pkg "https://github.com/harsh854-22/aicdss/blob/main/package.json"
    click pkglock "https://github.com/harsh854-22/aicdss/blob/main/package-lock.json"
    click readme "https://github.com/harsh854-22/aicdss/blob/main/README.md"
    click license "https://github.com/harsh854-22/aicdss/tree/main/LICENSE"

    classDef presentation fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef backend fill:#90EE90,stroke:#333,stroke-width:1px
    classDef ai fill:#FFA500,stroke:#333,stroke-width:1px
    classDef data fill:#FFD700,stroke:#333,stroke-width:1px
    classDef doc fill:#D3D3D3,stroke:#333,stroke-width:1px
    classDef external fill:#B0E0E6,stroke:#333,stroke-width:1px
```
