Carlos A. Duran Villalobos Portfolio

Machine Learning and AI Projects

Breast Cancer Diagnosis Using Machine Learning

Project Overview

Develop a machine learning model to improve the accuracy of breast cancer diagnosis using the Breast Cancer Wisconsin (Diagnostic) Dataset. This project aims to harness advanced analytics to classify tumors with higher precision as either malignant or benign.

Machine Learning Approaches

  • Random Forest: A method that uses many simple models (decision trees) to make better predictions together.
  • Gradient Boosting: A technique that improves predictions by learning from the mistakes of previous models.
  • Partial Least Squares Regression (PLS): A method that simplifies complex data to make it easier to understand and work with.
  • Neural Networks: Systems modeled after the human brain that learn from large amounts of data to recognize patterns.

Challenges and Solutions

Throughout the project, I tackled various challenges using advanced data science techniques to ensure the effectiveness of our machine learning models:

  • Data Preprocessing: Implemented advanced techniques for handling missing data, encoding categorical variables, and scaling features to ensure high-quality inputs for model training.
  • Feature Engineering: Applied domain expertise to create new features and reduce dimensionality, enhancing model interpretability and performance.
  • Model Training: Trained various machine learning models and tuned hyperparameters to optimize performance.
  • Model Evaluation: Evaluated model performance using accuracy, precision, recall, F1 score, ROC AUC, and confusion matrix analysis to assess effectiveness in predicting breast cancer.
Feature Importance
Figure 1. Feature importance analysis highlighting key predictors of breast cancer.

Impact

  • Model Effectiveness: Demonstrated substantial improvements in prediction metrics, potentially revolutionizing breast cancer diagnosis in medical practice.
  • Clinical Relevance: Insights from the models significantly enhance early detection and diagnosis, improving patient outcomes through timely and precise interventions.
Confusion Matrix
Figure 2. Confusion matrix showing the performance of different machine learning techniques.

Read More

For more details, check the full project: Breast Cancer Diagnosis Using Machine Learning

Health Assistant Chatbot

Project Overview

This project demonstrates how to build an AI chatbot designed to provide basic medical advice. It leverages a medical dataset and symptom-to-illness mappings to infer possible illnesses based on user-reported symptoms.

Chatbot Features

  • Natural language understanding for identifying symptoms and health concerns.
  • Integration with the GPT-Neo model for generating dynamic responses to unknown queries.
  • Symptom analysis and health advice using predefined datasets.

Challenges and Solutions

  • Handling Ambiguity: The chatbot often faced ambiguous user queries. By integrating the GPT-Neo model, we provided fallback responses for queries the model couldn’t handle directly, improving user experience.
  • Symptom-Illness Mapping: Mapping symptoms to possible illnesses was complex due to the vast dataset. We used natural language processing techniques to standardize user input and match it with known symptoms.
  • Training Custom Medical Corpus: The chatbot needed a highly specialized corpus for health-related queries. I manually curated a medical corpus to train the Natural Language Understanding (NLU) model effectively.

Impact

  • Improved Accessibility to Health Information: The chatbot provides basic health advice to users, enhancing access to healthcare information in a scalable way, especially in regions with limited access to medical professionals.
  • Custom Medical Assistance: By integrating symptom analysis with predefined datasets, the chatbot helps users understand their symptoms better and directs them to appropriate advice or action.
Chatbot Running in index.html
Figure 1. Chatbot running in index.html.

Read More

For more details, check the full project: Health Assistant Chatbot

Projects

Here are my projects related to Machine Learning and AI: