The Product That Keeps You Flying On Time!


Delay Relay is an AI product that can help you predict flight delays. Using machine learning and data from your flight, Delay Relay is able to detect delays that may occur. We are dedicated to keeping you updated and saving your time.

Dive Into Delay Relay

Our Project


The goal of this project is to predict whether or not a flight will be delayed based on variables such as airline, airport, weather, and square footage of the airport. This problem is a classification problem, as there are only two possible outcomes: a flight will be delayed, or a flight will not be delayed.

Delay Relay is an AI product created to keep you flying on time and aware. After thorough research, we realized that people struggle with staying updated on flight delays. Because of this, we created a product for people to stay informed and fly smoothly!

Let's Go!

Pre-Processing


  • timeline-1

    Spring Cleaning

    To make sure that our model would work accurately, we needed to clean the data and make sure that it would fit our model. We removed rows and columns that were unneeded or unfinished, such as Aberdeen. Aberdeen Airport had only two recorded flights, which would possibly screw up our data, so we tossed it out.

  • ...

    Extra, extra!

    Additionally, our team took into account airport size and weather since we believed that these factors played a major role in a flight's delay status. Since this data wasn’t in the original dataset, we added it in manually.

  • ...

    Merge!

    Next, we took our newly inputted data and original, cleaned dataset and put them together. We did this with the help of the Python library pandas.

  • ...

    Encoding

    Before fitting our model, we had to change some of the categorical variables in our dataset (ex: AirportFrom, Airline) to numbers. This makes the data readable when training models.

...

Machine Learning!


We've used a total of three machine learning models (XGBoost, SVM, and Random Forest) to put our data into. Since we're trying to determine whether a flight will be delayed or not, this counts as a classification machine learning problem. This is because there are only two possibilities, the flight will be delayed, or it won't.

SVM

SVM is a model that tries to find a hyperplane that distinctly classifies the data

XGBoost

XGboost is a model that implements gradient boosted decision trees to classify the data

Random Forest

Random Forest is a model that utilizes classic decision trees to make predictions

Visualizations

In order to find correlations between different variables in our data, we used Python libraries, such as Seaborn and Plotly, to help us visualize and analyze these relationships. You can click on each image to get a visualization.

AirportFrom
Airport of Departure
AirportFrom
...
Airline
Airline flown
...
Square Footage
Sq. Ft of Runways
...
Weather
Weather at each airport
...
Day of Week
DayOfWeek
...
Flight Duration
Length

Conclusion: Our Findings

Here's what we found...

Our model came away with 66% accuracy, using XGBoost and GridSearch. However, this took a while to compute, as our data is rather complex. Some may wonder, why is our accuracy so low compared to other models? Most of our data is not directly impacting the outcome of delay, meaning that it makes it harder for the model to predict if the delay will occur or not. During training, we found a relationship between the runway size and the number of delays, as well as the size of the surrounding population. In conclusion, our model is mostly accurate, but may output a few false negatives and positives.

Conclusion: Extensions

Here's what we found...

For our program to function with maximum accuracy, we employed the use of API’s, or application programming interfaces, in order to make our lives easier when it came to finding useful data. We used API’s to add more information relevant to our program, such as weather in real time to make our predictions on delays more precise. Although API’s have been helpful, we have had issues with useless data and data that needed to be scraped which would have taken too much time to complete for what it was worth, not to mention data can be difficult to find.

Our Amazing Team

The Shimmering Pythons (aka The Pretty Snakes)


...

Emily Ai

has become 50% MSG at this point

...

Audrey Doratan

Overthinker

...

Oviya Senthil

Coconut Water Enthusiast

...

Emilia Auton

Computer Always Crashing

...

Connor Hsieh

CoCalc Slanderer

...

Nikkolos Miyoshi

Perpetually sleepy!

...

Brian Ripley

Instructor

Catch Flights, Not Feelings