Published on 08-09-2025
This project is a medical diagnosis prediction system that predicts possible diseases based on patient-reported symptoms. The web interface is built with Flask and the backend logic leverages Python, Pandas, and machine learning models.
/ → main page with symptom input form/predict → processes user symptoms and predicts disease/about, /Contact, /Blog, /Developer
Symptom Input Page
Prediction Results Page
Detailed Disease Info Page
@app.route('/predict', methods=['POST'])
def predict():
symptoms = request.form.get('symptoms')
user_symptoms = [s.strip() for s in symptoms.split(',')]
predicted_disease = get_predicted_value(user_symptoms)
desc, pre, med, die, wrkout = helper(predicted_disease)
return render_template('index.html',
predicted_disease=predicted_disease,
dis_des=desc,
dis_pre=pre,
dis_med=med,
dis_diet=die,
dis_wrkout=wrkout)
This route takes user input symptoms, predicts the disease, and displays all related information.
This Medical Diagnosis System demonstrates how machine learning can assist in predicting diseases based on symptoms. Future improvements could include more advanced ML models, natural language symptom input, and integration with patient medical records.