SymptIQ — AI Disease Prediction Using Symptoms | Django Final Year Project
Back to ProjectFollow the steps below to set up SymptIQ on your local machine. The application requires Python 3.10 or newer and pip installed on your system.
After downloading or cloning the project, open your terminal and navigate to the project root directory.
cd "AI diease Prediction using Sympotm"
It is recommended to use a virtual environment to keep dependencies isolated.
Create the environment:
python -m venv venv
Activate on macOS / Linux:
source venv/bin/activate
Activate on Windows:
venv\Scripts\activate
Install all required Python packages listed in the requirements file.
pip install -r requirements.txt
Run Django migrations to initialise the SQLite database and create the required tables.
python manage.py migrate
To access the Django admin panel and manage prediction logs and contact messages, create an admin account.
python manage.py createsuperuser
The ML models must be trained before the prediction feature becomes available. Model files are saved to the ml_models/ directory.
cd training
jupyter notebook model_training.ipynb
Open the notebook and run all cells from top to bottom. The notebook will train Naive Bayes, Logistic Regression, and Random Forest classifiers, evaluate them, and export the following files to ml_models/:
python train.py
Once training is complete, start the Django development server.
python manage.py runserver
Visit the application in your browser at:
http://127.0.0.1:8000
Access the Django admin interface to manage prediction logs and contact messages.
http://127.0.0.1:8000/admin/
Log in with the superuser credentials you created in Step 5.
SymptIQ exposes three JSON API endpoints for programmatic access. No authentication is required.
To deploy SymptIQ on a production server, follow these additional steps.
python manage.py collectstatic
export SECRET_KEY="your-secure-secret-key"
export DEBUG=False
export ALLOWED_HOSTS="yourdomain.com"
pip install gunicorn
gunicorn symptiq.wsgi:application --bind 0.0.0.0:8000
Note: If the ML model files are missing from the ml_models/ directory, the Predict page will display a warning and the Analyse button will be disabled. Always complete Step 6 before running the server.
Our team is here to assist you with installation and setup.