HantaTrack AI — Hantavirus Outbreak Prediction System using Machine Learning, Time-Series Forecasting and Environmental Risk Analysis
Back to ProjectFollow these steps to install and run the Hantavirus Outbreak Prediction System on your local machine. The setup works on Windows, macOS, and Linux.
Unzip the downloaded project folder to a location of your choice. Open a terminal or command prompt and navigate into the extracted folder.
cd "hanta virus"
Create an isolated Python environment so that project dependencies do not conflict with your global packages.
python -m venv venv
Activate it on Windows:
venv\Scripts\activate
Activate it on macOS or Linux:
source venv/bin/activate
Install all the libraries needed to run the Jupyter notebook for EDA and model training.
pip install jupyter pandas numpy scikit-learn xgboost statsmodels prophet tensorflow plotly joblib seaborn matplotlib
If Prophet fails to install on Windows, use conda instead:
conda install -c conda-forge prophet
TensorFlow is optional. If it does not install, the notebook will skip the LSTM model and continue with Prophet and SARIMA.
Move into the Flask web application folder and install its requirements.
cd hantavirus-app
pip install -r requirements.txt
Make sure the dataset folder contains all six required CSV files before training. The notebook will fail if any of these are missing.
From the project root, launch the Jupyter notebook.
jupyter notebook hantavirus_analysis.ipynb
Once it opens in your browser, click Kernel then Restart and Run All. The notebook will run all 57 cells, perform EDA, train all six models, and save the best artifacts. Typical runtime is three to eight minutes depending on whether TensorFlow is available.
Move the trained model artifacts into the location where Flask expects them.
On Windows:
copy models\*.pkl hantavirus-app\models\
On macOS or Linux:
cp models/*.pkl hantavirus-app/models/
Move into the web app folder if you are not already there and start the application.
cd hantavirus-app
python app.py
The server will start on http://localhost:5000. Open that URL in your browser to access the home page.
Open the following URL in your browser to confirm that all four model artifacts are loaded correctly.
http://localhost:5000/health
You should see a JSON response showing case_forecast_model, affected_people_model, encoder, and scaler all marked as ready.
You can now explore both prediction tools.
If you get stuck at any step, our team offers complete project setup assistance over Google Meet, including a line-by-line code walkthrough. You can also request custom modifications, a tailored project report, a research paper, or a PPT for your final year submission directly from the CodeAj Marketplace.
Our team is here to assist you with installation and setup.