Zachary-Raup

Data Science Portfolio


Project maintained by ZRaup Hosted on GitHub Pages — Theme by mattgraham

Zachary Raup



Zachary’s Resume (pdf)
Data Science Courses Completed

About Me

Welcome to my data science portfolio! I’m Zachary Raup, a data scientist with a strong foundation in physics and a passion for uncovering insights from complex datasets. I graduated Summa Cum Laude from Kutztown University with a B.S. in Physics, where I focused on data modeling in astrophysical systems—particularly exoplanets and binary stars. This research experience trained me to approach problems analytically, work with real-world uncertainty, and extract meaning from noisy data.

To strengthen my data science skillset, I earned certifications from DataCamp in Data Science, Data Analysis, Python, and SQL, and completed coursework in machine learning, data preprocessing, and visualization. I apply these skills using Python (pandas, scikit-learn, matplotlib, numpy) and SQL, with additional proficiency in Tableau and Power BI for data storytelling.

My work focuses on building interpretable, performance-driven models to support real-world decision-making. I enjoy collaborating across disciplines, turning messy data into actionable insight, and constantly learning new techniques to grow as a scientist and developer.

Thanks for visiting—feel free to explore my projects!

 


Certifications


 

Project 1

Chest X-Ray Pneumonia Detection with Deep Learning

Project Overview

Developed a deep learning pipeline to classify chest X-rays as Normal or Pneumonia using an ensemble of pretrained CNNs (ResNet18, DenseNet121, EfficientNet-B0). Achieved a 91.2% test accuracy and an F1-score of 0.9332, with all models demonstrating high pneumonia recall, minimizing false negatives.

Key components:

This project showcases how deep learning and explainable AI can support radiologists by improving diagnostic accuracy and transparency in medical imaging.

Skills Applied: PyTorch, Convolutional Neural Networks (CNN), Computer Vision, Deep Learning, Medical Imaging, Scikit-Learn and more

Figure 1: Grad-CAM Heatmap: Interpretable Pneumonia Detection from Chest X-Ray

Grad-CAM visualization for a test chest X-ray correctly classified as Pneumonia by the ResNet18 model. The highlighted activation regions (in red and yellow) suggest the model focuses on areas of increased radiographic opacity within the central and lower lung fields—features often indicative of pulmonary infection. This supports the model’s decision-making process and provides interpretability in a clinical context.

Figure 2: Confusion Matrix: ResNet18 Model on Chest X-Ray Test Set

Confusion matrix for the ResNet18 model (fold 0) evaluated on the test set. The model correctly identified 384 of 390 Pneumonia cases (high sensitivity) and 185 of 234 Normal cases, resulting in 6 false negatives and 49 false positives. This performance highlights the model’s strong bias toward minimizing missed Pneumonia diagnoses, a clinically preferred trade-off in high-stakes triage settings.


 

Project 2

Forecasting Retail Sales with Machine Learning | Regression Modeling

Project Overview

Accurate weekly sales predictions are crucial for large-scale retailers like Walmart to optimize inventory management, labor allocation, and supply chain planning. This project uses historical sales data (2010–2012) to build a machine learning pipeline that predicts weekly sales using a blend of store-level, temporal, and economic features. After thorough EDA, feature engineering, and model tuning, five regression algorithms were evaluated, with XGBoost and LightGBM demonstrating top performance.

Key goals included:

Best Model: XGBoost with RMSE ≈ $61.4K and R² ≈ 0.988 on the test set
Notable Insight: Holiday weeks and store-specific trends were the strongest predictors of weekly sales variability

Skills Applied: Python (pandas, scikit-learn, xgboost, lightgbm), Regression Modeling, Cross-Validation, Residual Analysis, EDA, Feature Engineering, Data Cleaning, Visualization

Figure 3: Actual vs Predicted Weekly Sales – XGBoost vs LightGBM

This dual-panel plot compares predicted weekly sales to actual values for the two best-performing models. XGBoost (left) shows a strong fit with tightly clustered points near the diagonal, indicating accurate forecasts and low bias. LightGBM (right) also performs well but with slightly more spread, particularly at higher sales values.

Figure 4: Feature Importance – XGBoost vs LightGBM

This figure compares the top 10 features driving predictions in both models. XGBoost heavily prioritizes the Store variable, revealing strong store-specific effects. LightGBM distributes importance more evenly across predictors such as Temperature, Fuel_Temp_Interaction, and Economic_Stress, suggesting broader generalizability.


 

Project 3

Discovering Similar Songs Using Machine Learning | Unsupervised Learning with Spotify Data

Project Overview

This project applies unsupervised machine learning techniques to uncover patterns in Spotify audio data and recommend musically similar songs. By using Non-negative Matrix Factorization (NMF) for dimensionality reduction and t-distributed Stochastic Neighbor Embedding (t-SNE) for visualization, the feature space of over 6,000 tracks was mapped into an interpretable 2D projection. Cosine similarity was then used to identify songs most similar to “Blinding Lights” by The Weekend. The final result is an insightful visual and analytical exploration of musical relationships based on audio characteristics..

Skills Applied: Unsupervised Learning, NMF, t-SNE, Cosine Similarity, Data Preprocessing, Python (scikit-learn, NumPy, pandas)

Figure 5: Interactive Projection of Songs Colored by Similarity to Blinding Lights - The Weekend

This 2D visualization presents a t-SNE projection of the song dataset, with each point representing a track. Colors indicate cosine similarity to “Blinding Lights” by The Weeknd—green represents higher similarity, red represents lower. The 10 most similar songs are marked with square outlines, clearly highlighting clusters of tracks that share sonic traits. This approach visually demonstrates how audio features can be leveraged to identify stylistic similarity between songs.

Table 1: Top 10 Most Similar Songs to “Blinding Lights””

The table below lists the 10 songs most similar to “Blinding Lights”, based on cosine similarity of audio features. These tracks span multiple genres and artists, yet share core musical qualities such as synth-driven production, emotional tone, and modern pop energy. The diversity of artists—from Post Malone to K/DA—illustrates the reach of “Blinding Lights’” sonic profile.

Top 10 Similar Songs to: Blinding Lights - The Weekend


 

Project 4

Predictive Maintenance in Manufacturing | Machine Failure Classification with XGBoost

Project Overview

Developed a machine learning pipeline to detect machine failures in a manufacturing environment using sensor data. Feature engineering and class rebalancing were applied to improve signal extraction and model fairness. Compared Logistic Regression, Random Forest, and XGBoost, with the latter achieving 98.6% accuracy and perfect AUC on the test set.

Key components:

This project demonstrates how domain knowledge, feature construction, and ensemble methods can work together to create a reliable and explainable predictive maintenance solution.

Skills Applied: Machine Learning, Feature Engineering, SMOTE, SHAP, Ensemble Modeling, Supervised Learning, Python (scikit-learn, XGBoost, imbalanced-learn)

Figure 6: SHAP Summary Plot — Feature Impact on Predictions

SHAP summary plot showing how each feature influences the model’s predictions. Tool_wear_[min], Power_[W], and Rotational_speed_[rpm] are among the most influential inputs. This visualization aids in validating model behavior and supports communication with non-technical stakeholders.

Figure 7: Confusion Matrix — XGBoost Model

This confusion matrix shows the performance of the XGBoost model in detecting machine failures. It achieved 98.6% accuracy, with only 55 total misclassifications out of 3,865 samples. The model demonstrates excellent precision and recall, making it highly effective for predictive maintenance tasks in manufacturing.


 

Project 5

Utilizing MCMC to Explore the Parameter Space of an Exoplanet Transit

Project Overview

This research project focuses on modeling the transit of exoplanets across stars using the Python package ‘batman’. The objective was to accurately predict changes in stellar brightness during these transits, validated against photometry data from the CR Chambliss Astronomical Observatory (CRCAO). Methodologically, a physics-based model was developed and evaluated using a log likelihood function to fit observational data. The Markov Chain Monte Carlo (MCMC) algorithm, facilitated by ‘emcee’, enabled exploration of parameter uncertainties such as planet radius and transit timing. Visualizations created with matplotlib included light curves and histograms of parameter distributions. Presenting findings at the 241st AAS meeting highlighted contributions to understanding exoplanet transit dynamics, crucial for advancing knowledge of planetary systems beyond our solar system.

Skills Applied: Python (pandas, matplotlib, numpy, emcee, & batman), Jupyter Notebook, and Excel

Figure 8: TOI-4153 Modeled Lightcurve

Light curve of TOI-4153 data (CRCAO) taken in a Blue (B) and Infrared (I) filter. The model is built using the Python transit modeler package ‘batman’. The parameters of the model were determined using the Markov Chain Monte Carlo algorithm and known parameters taken from the ExoFOP database.


 

Project 6

Insights into Dog Behavior: Analyzing Dognition Data with MySQL

Project Overview

The goal of this project is to utilize MySQL queries to perform analysis of trends and relationships embedded within the Dognition database. Developed as a fundamental component of the ‘Managing Big Data with MySQL’ course from Duke University, the project focuses on refining and applying skills in data cleaning, sorting, and employing advanced analytical techniques using SQL. By exploring large datasets such as the Dognition database, the project aims to uncover meaningful insights into canine behavior patterns and preferences, leveraging robust data management practices to extract actionable intelligence for further research and practical applications in understanding and enhancing dog-human interactions.

Skills Applied: MySQL, Writing Queries, Data Cleaning, and Big Data

Figure 9: Top States by Number of Dognition Users

 



Zachary’s Portfolio
Project 1: Chest X-Ray Pneumonia Detection with Deep Learning
Project 2: Forecasting Retail Sales with Machine Learning | Regression Modeling
Project 3: Discovering Similar Songs using Machine Learning and Spotify
Project 4: Predictive Maintenance in Manufacturing
Project 5: Utilizing MCMC in Python to Explore the Parameter Space of an Exoplanet Transit
Project 6: Insights into Dog Behavior: Analyzing Dognition Data with MySQL