During the summer of my sophomore year of high school, I began exploring ways to expand my knowledge of medicine while developing technical skills in areas such as coding and web design. After researching projects other students had completed, I decided to take on a project of my own: building an AI-powered heart disease detector that uses patient data to predict the likelihood of heart disease.
I began by familiarizing myself with the tools and resources I would need to develop the application. I learned to use Visual Studio Code (VS Code), the platform where I wrote and organized my code, and developed new programming skills, including working with datasets and coding libraries. I also explored the Cleveland Heart Disease dataset, studying its variables and learning what the different abbreviations and patient characteristics represented. Building this foundation allowed me to better understand both the medical information behind the project and the technical process of developing an AI model.
With this background, I began training the model. After importing the dataset into VS Code, I used the train-test split method, allocating 80% of the data to train the model and the remaining 20% to evaluate its performance. I then assessed the model's accuracy to determine how effectively it predicted heart disease within the test dataset. Through repeated testing and adjustments, I learned how to evaluate the model's performance and refine my code before moving on to the application's user interface.
To make the model accessible to others, I built a user interface using Streamlit, a tool that allowed me to turn my Python code into an interactive web application. I programmed sliders, input ranges, labels, and other interface elements so users could enter patient characteristics and explore the model's predictions. I also included a clear disclaimer explaining that the application was designed for educational purposes and was not intended to provide a medical diagnosis. Finally, I uploaded my code to GitHub so others could explore the project and learn about the development process. I have linked both the application and the GitHub repository below.
Ultimately, my goal was not to create a substitute for professional medical judgment, but to deepen my understanding of heart disease while strengthening my programming skills. Throughout this project, I gained a greater appreciation for both the complexity of medical data and the process of developing an AI model. Most importantly, I discovered how programming and artificial intelligence can be applied across different fields, particularly healthcare, where technology has the potential to support research, improve access to information, and shape the future of medicine.