Medi-Match is an advanced healthcare management platform that integrates a modern WPF (.NET) frontend with a powerful Python-based AI intelligence layer.
The system addresses the complex problem of hospital resource allocation and emergency patient prioritization using Evolutionary Computing, Fuzzy Logic, and Rule-Based Expert Systems.
- Afia Aziz — ID: 231561
- Zumer Dhillun — ID: 231597
- Zoya Azad — ID: 231579
In modern healthcare environments, manual scheduling of patients to doctors is inefficient and prone to human error.
Medi-Match automates the patient-to-doctor assignment process by intelligently analyzing urgency, specialty requirements, and doctor workload.
-
AI Scheduler
Matches patients to doctors based on specialty, workload, and urgency. -
Emergency Triage System
Evaluates patient symptoms to calculate an urgency score (1–10) and recommends an appropriate specialist
(e.g., Cardiologist for chest pain). -
Optimization Engines
- Fast Heuristic Scheduler
- Globally optimal Genetic Algorithm Scheduler
-
Data Visualization
Real-time convergence graphs showing AI performance. -
Professional Reporting
Automated HTML and Text-based clinical triage reports.
Implementation:
The calculate_fuzzy_score function converts discrete urgency levels (1–10) into a continuous fuzzy range ([0, 1]).
Justification:
Medical urgency is not binary. Fuzzy logic handles uncertainty and allows smoother prioritization of patients.
Implementation:
Implemented in scheduler_ga.py using:
- Tournament Selection
- Two-Point Crossover
- Mutation
- 120 Generations
Justification:
Hospital scheduling is an NP-Hard problem. Genetic Algorithms efficiently explore large search spaces to find globally optimal schedules.
Implementation:
Uses a clinical knowledge base (SPECIALTY_CONDITIONS) to map symptoms and diseases to medical specialties.
Justification:
In healthcare, transparency is critical. Rule-based systems provide explainable and auditable decision-making.
Implementation:
A scoring-based heuristic algorithm that selects locally optimal assignments.
Justification:
Provides fast, real-time scheduling when deep optimization is not required.
Represents relationships between:
- Symptoms
- Medical Departments
- AI Scheduling Logic
Defines medical entities using slots and fillers:
- Patient
- Doctor
- Triage
- Visual Studio 2022 (with .NET Framework 4.7.2)
- Python 3.8+ (added to System PATH)
pip install numpy matplotlibgit clone https://github.com/YourUsername/Medi-Match.gitOpen the .sln file in Visual Studio.
Clean and rebuild the solution.
Press F5 to launch the WPF application.
-
Triage Module: Assess emergency patients and generate clinical reports.
-
Scheduler Module: Enter hospital resources and run AI-based optimization.
-
Graphs Page: View convergence graphs showing AI performance.
HospitalSchedulerUI/
│
├── WPF Frontend (C# / XAML)
│
├── Backend/
│ └── PythonScripts/
│ ├── scheduler.py # Heuristic Scheduler
│ ├── scheduler_ga.py # Genetic Algorithm
│ └── triage_calculator.py # Emergency Triage Logic
│
├── Results/
│ ├── output.json
│ ├── metrics.csv
│ └── convergence.png
The system ensures reliability using a strict JSON input/output contract.
{
"Doctors": 3,
"Patients": 5,
"DoctorDetails": [
{ "Name": "Dr. Smith", "Specialty": "Cardiology" }
],
"Urgency": [9, 4, 2, 8, 5]
}This project was developed as part of the Artificial Intelligence course and is distributed for educational purposes only.

