Applying Machine Learning on Big Data With Apache Spark
Open Access
- 17 March 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 13, 53377-53393
Abstract
The exponential growth of data in the digital age has necessitated the development of frameworks capable of efficiently handling and processing vast datasets. This paper explores the application of machine learning (ML) models within the Apache Spark ecosystem, focusing on the performance and scalability of these models in big data environments. Through comprehensive experiments on three diverse datasets, namely NYC Taxi Trip Duration, Netflix, and Higgs Boson, we address both regression and classification tasks. For the regression tasks using the NYC Taxi Trip Duration and Netflix datasets, we evaluated models including Linear Regression (LinR), Random Forest (RF), Gradient-Boosted Trees (GBT), Support Vector Regressor (SVR), and K-Nearest Neighbors (KNN). For the classification task using the Higgs Boson dataset, we assessed models such as Logistic Regression (LR), RF, GBT, Support Vector Machines (SVM), and KNN. The study employed key performance metrics such as Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) for regression and Accuracy, Precision, Recall, F1-Score, and Area Under the Curve (AUC) for classification. Our findings indicate that Apache Spark’s in-memory processing and distributed computing capabilities provide effective scalability, allowing these models to handle large-scale data with linear increases in processing time. Finally, that study highlights the importance of model selection and resource optimization in big data contexts and provides valuable insights into the practical integration of ML models within the Spark framework.Keywords
This publication has 30 references indexed in Scilit:
- Trends and Future Perspective Challenges in Big Data2021
- RETRACTED ARTICLE: Big data classification using deep learning and apache spark architectureNeural Computing and Applications, 2021
- Machine Learning: Algorithms, Real-World Applications and Research DirectionsSN Computer Science, 2021
- Robust regression using support vector regressionsChaos, Solitons & Fractals, 2021
- Performance analysis of regression algorithms and feature selection techniques to predict PM2.5 in smart citiesInternational Journal of System Assurance Engineering and Management, 2021
- A comparative analysis of gradient boosting algorithmsArtificial Intelligence Review, 2020
- Introduction to Spark and Spark MLlib2020
- Principal Component Analysis (PCA)2020
- Random Forests with R2020
- Support vector machine2020