top of page

Projects

Predicting Flight Delays using Random Forest

Introduction

In the aviation industry, flight delays can cause significant disruptions and inconvenience for passengers, airlines, and their stakeholders. This project aims to develop a predictive model to determine if an airline's flight will be delayed or not.

​

Data Collection

The dataset used in this project was collected from the Bureau of Transportation Statistics and consists of flight information for a major airline over several years. It includes flight details such as flight number, origin, destination, departure and arrival time, day of the week, and weather conditions.

​

Data Pre-processing

The collected data was pre-processed to remove any missing or irrelevant information. Additionally, categorical variables were encoded, and numerical variables were normalized. A target feature was added called "Delayed" and the values were either yes or no.

​

Model Development

Random Forest, an ensemble learning algorithm, was used to build the predictive model. The model was trained and validated on a 70:30 split of the data. The performance of the model was evaluated using various metrics such as accuracy, precision, recall, and F1-score.

​

Results

The model was able to predict flight delays with an accuracy of 80%. The precision of the model was 83%, while the recall was 76%. The F1-score was also calculated to be 80%.

​

Challenges:

  1. Data collection and cleaning: The first challenge was to collect and clean the data, and making sure that they are relevant to the problem statement.

  2. Feature Selection: It's important to choose the right set of features that have the most impact on the target variable.

  3. Overfitting: Overfitting is a common problem in machine learning, where the model fits the training data too well and performs poorly on unseen data. This can be avoided by using techniques like cross-validation and ensembling.

  4. Hyperparameter tuning: In Random Forest, there are multiple hyperparameters that need to be optimized for the best performance. Finding the optimal hyperparameters can be a time-consuming and complex process.

  5. Balancing class distribution: In some cases, the data may be imbalanced, where one class is highly represented compared to the other. This can affect the model performance, and it's important to balance the class distribution or use techniques like oversampling and undersampling to handle this.

  6. Performance evaluation: The final challenge is to evaluate the performance of the model, and to ensure that it's accurate and reliable. This can be done by using metrics like accuracy, precision, recall, and F1-score.

​

​

Conclusion

The results of this project demonstrate the effectiveness of the Random Forest algorithm in predicting flight delays. The model's high accuracy and F1 score indicate its potential for use in the aviation industry for predicting flight delays and making proactive decisions to minimize their impact.

miguel-angel-sanz-tsgvA0fkrpU-unsplash (1).jpg

Improving Inventory Management for an Automotive Manufacturing Company

Introduction

Developed an inventory management system for an automotive company using a combination of simulation and process-improvement methodologies. The project involved analyzing the company's current inventory management processes, identifying areas for improvement, and then using simulation software to test the impact of different process changes.

​

Project Scope

To start the project, I analyzed the company's current inventory management processes, including the processes for ordering, receiving, storing, and issuing raw materials and finished products. Based on my analysis, I identified areas for improvement in the company's inventory management processes, which included reducing lead times, improving demand forecasting accuracy, optimizing safety stock levels, and reducing waste due to overstocking or stockouts.

​

Using simulation software (Crystal Ball), I developed a model of the company's inventory management system based on the current inventory management processes. I then used this model to test the impact of different process changes on inventory levels, lead times, and other key performance indicators. This allowed me to evaluate the effectiveness of different process improvement initiatives and identify the best solution for the company.

​

Once I had identified the most effective process improvement initiative, I worked with the company to implement the changes. I also developed a monitoring system to track the effectiveness of the changes and identify any additional opportunities for improvement.

​

Simulation and Process Improvement Methodologies

​

To develop the inventory management system, I used a combination of simulation and process improvement methodologies. Simulation allowed me to model the inventory management system and test different process changes before implementing them in the real world. This helped us avoid costly mistakes and identify the most effective solution for the company.

Process improvement methodologies such as Lean, Six Sigma, and Total Quality Management were also used to identify areas for improvement and develop solutions. These methodologies used data-driven approaches to eliminate waste, reduce variability, and improve process efficiency and effectiveness.

​

Conclusion

Effective inventory management is essential for the success of any manufacturing company. By using simulation and process improvement methodologies, I developed a comprehensive inventory management system that optimized inventory levels, reduced lead times, and minimized costs. This helped the company improve its overall performance and profitability while delivering high-quality products to its customers.

modern-automobile-production-line-automated-production-equipment-shop-assembly-new-modern-

Predicting Customer Churn for an Online Retailer

Introduction

The project aimed to predict customer churn for an online retailer using data mining techniques. The objective was to identify customers who are likely to stop using the retailer's services and recommend proactive measures that could be taken to retain them.

​

Data Collection and Preprocessing

To start the project, customer data was collected from various sources, including transaction history, website usage data, and customer demographic data. The data was preprocessed by removing duplicates, missing values, and outliers. Feature engineering was performed to extract relevant features that could be used to predict customer churn.

​

Model Development

Classification algorithms like decision trees and neural networks were used to develop models that could predict customer churn based on customer demographics, transaction history, website usage data, and customer feedback. The models were optimized using hyperparameter tuning and cross-validation to improve their accuracy and reduce overfitting.

​

Model Evaluation and Deployment

The final models were evaluated using metrics like accuracy, precision, and recall. The decision tree model achieved an accuracy of 81%, a precision of 78%, and a recall of 73%, while the neural network model achieved an accuracy of 87%, a precision of 86%, and a recall of 81%. The models were then used to identify customers who are likely to churn.

​

Conclusion

The project demonstrated the effectiveness of data mining techniques like decision trees and neural networks in predicting customer churn for online retailers. By identifying customers who are likely to churn, proactive measures like targeted marketing campaigns,  personalized offers, and customer service interventions can be taken to retain them and improve customer loyalty. 

cyber-monday-shopping-sales.jpg

Customer Sentiment Analysis 

Introduction

In this project, I analyzed social media data to understand customer sentiment for a consumer goods company. I used natural language processing (NLP) techniques to extract sentiment from social media posts, and then used statistical analysis to identify trends and patterns in the data. The objective of this project was to provide insights into the customer's opinions and feedback on the company's products, services, and brand,  which can help the company make informed decisions to improve customer satisfaction and loyalty.

​

Data Collection 

To collect data, I used social media monitoring tools to extract posts related to the company's products, services, and brand. Data was collected from popular social media platforms such as Twitter, Facebook, Instagram, and LinkedIn. The data collected included user-generated content such as comments, reviews, and posts related to the company.

​

Data Preprocessing 

The preprocessing steps included removing stop words, punctuation, and URLs. I also performed text normalization by tokenization, lemmatization, and converting all the text to lowercase. Then I transformed the text data into numeric values (vectorization) and followed the TF-IDF method.

​

Sentiment Analysis

I used a pre-trained sentiment analysis model to extract sentiment from social media posts. The sentiment analysis model classified the text data into positive, negative, or neutral sentiment. I used the VADER (Valence Aware Dictionary and Sentiment Reasoner) sentiment analysis model, which is specifically designed for social media text analysis.

​

Statistical Analysis

After performing sentiment analysis, statistical analysis was performed to identify trends and patterns in the data. I used descriptive statistics to summarize the data, including measures of central tendency and variability. Also performed inferential statistics to test hypotheses and identify significant differences in sentiment across different products, services, and brands.

​

Visualization

Word clouds were used to visualize the most frequently used words in positive, negative, and neutral sentiment posts. Bar charts were also used to show the distribution of sentiment across different products, services, and brands.

​

Results

Based on the analysis of social media data for the consumer goods company, it was found that customer sentiment was mostly positive towards the company's products, with a sentiment score of 0.71 on a scale of -1 to 1.

The analysis also identified key topics and themes that were associated with positive and negative sentiment, which can be used to inform the company's marketing and product development strategies. For instance, customers were found to be highly satisfied with the product quality and price, while issues with shipping and customer service were associated with negative sentiment.

​

Conclusion

The analysis of social media data provided valuable insights into customer sentiment for the consumer goods company, which can be used to improve customer satisfaction and drive business growth. The use of natural language processing techniques and machine learning models can enable more accurate and efficient sentiment analysis, which can help companies stay competitive in today's data-driven marketplace.

customer-evaluation-indicator-rating-print-screen-ball-low-high-white-background-client-sa

Predicting Employee Attrition using Machine Learning

Objective

The main objective of this project is to develop a machine-learning model that can predict employee attrition for a corporation based on historical HR data.

​

Data Collection and Exploration

Collected historical HR data from the company's database, including information on employee demographics, job satisfaction, performance, compensation, tenure, and reasons for leaving the company. Then explored the data to identify any patterns or correlations that may exist between these factors and employee attrition.

​

Data Preprocessing

Cleaned the data by removing duplicates or missing values and converted categorical variables into numerical values using dummy variables. Split the data into training and testing sets to evaluate the performance of the model.

​

Feature Selection

Used various techniques to select the most relevant features for the model, including correlation analysis, chi-square test, and mutual information. Identified the top 10 features that have the highest correlation with employee attrition, including job satisfaction, tenure, salary, and work-life balance.

​

Model Selection 

Evaluated several machine learning algorithms, including logistic regression, decision tree, random forest, and gradient boosting, to find the best model for the task. Used grid search to optimize the hyperparameters of each model and compared their performance using various metrics, including accuracy, precision, recall, and F1-score, and found that the random forest classifier performed the best. Therefore, I trained the final model using the random forest classifier algorithm.

​

Model Training and Evaluation

Trained the final model using the selected features and the best performing algorithm (random forest classifier). Evaluated the model on the testing set and achieved an accuracy of 85%, a precision of 81%, a recall of 79%, and an F1-score of 80%. These results indicate that the model has a good overall performance in predicting employee attrition.

​

Conclusion 

In conclusion, I have developed a machine learning model that is capable of predicting employee attrition for a company by analyzing its historical HR data. The model can be used by the company's HR department to identify employees who are at risk of leaving and take proactive measures to retain them. The model can also help the company to improve its employee retention strategy and reduce its turnover rate, which can have a positive impact on the overall performance and profitability of the company.

AdobeStock_368056836.jpeg

Implementing a cloud-based BI solution

Project Objective

The objective of this project was to design and implement a cloud-based business intelligence solution for a healthcare organization that will provide a comprehensive and real-time view of the organization's data. This will involve designing and implementing a data warehouse, developing ETL processes to load data into the warehouse, and creating dashboards and reports using AWS-based BI tools.

 

Project Scope

​

  1. Designing and implementing a data warehouse on Amazon Redshift that will serve as a central repository for all the organization's data.

  2. Developing ETL processes using AWS Glue to load data from various sources into the data warehouse.

  3. Integrating AWS-based BI tools such as Amazon QuickSight with the data warehouse to create dashboards and reports that provide real-time insights into the organization's data.

  4. Ensuring that the solution is scalable and can accommodate future growth and changes in the organization's data requirements.

  5. Providing training to end-users on how to access and use the dashboards and reports.

 

Methodology

​

The project was executed in several phases, including:

  1. Analysis Phase: Analyzed the organization's data requirements and identified the sources of data that will be used to populate the data warehouse.

  2. Design Phase: Based on the findings from the analysis phase, a data warehouse was designed on Amazon Redshift and ETL processes were developed using AWS Glue to load data into the warehouse.

  3. Implementation Phase: AWS-based BI tools such as Amazon QuickSight were integrated with the data warehouse to create dashboards and reports.

  4. Testing and Validation Phase: The solution was tested and validated to ensure that it is accurate, reliable, and meets the organization's data requirements.

  5. Deployment Phase: The solution will be deployed on AWS and end-users will be provided with training on how to access and use the dashboards and reports.

​

​

Deliverables Achieved

  1. A data warehouse on Amazon Redshift that serves as a central repository for all the organization's data.

  2. ETL processes developed using AWS Glue that loads data from various sources into the data warehouse.

  3. Dashboards and reports created using AWS-based BI tools such as Amazon QuickSight that provide real-time insights into the organization's data.

  4. A scalable solution that can accommodate future growth and changes in the organization's data requirements.

  5. Training materials and sessions for end-users on how to access and use the dashboards and reports.

​

Conclusion

The successful completion of this project will result in a cloud-based business intelligence solution for the healthcare organization that provides a comprehensive and real-time view of the organization's data using AWS-based products and services. The solution will be designed to meet the specific data requirements of the organization and will be scalable to accommodate future growth and changes in data requirements. The dashboards and reports will provide valuable insights that will enable the organization to make informed decisions and improve the quality of care provided to patients. This project will serve as an example of the benefits of implementing a cloud-based BI solution using AWS and will demonstrate the value of a comprehensive and well-executed BI strategy.

cloud-upload-icon-line-connection-circuit-board.jpg
bottom of page