Prediction of Highway Traffic Flow Based on Artificial Intelligence Algorithms Using California Traffic Data
Junseong Lee 1 , Jaegwan Cho 1 , Yoonju Cho 1 , Seoyoon Choi 2 , Yejin Shin 2 · 2025
Read Prediction of Highway Traffic Flow Based on Artificial Intelligence Algorithms Using California Traffic Data by Junseong Lee 1 , Jaegwan Cho 1 , Yoonju Cho 1 , Seoyoon Choi 2 , Yejin Shin 2 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-13112.txt.
Introduction
Highway flow foretelling with AI tools is tested by Junseong Lee and co-authors in a 2025 arXiv paper. The team used traffic data from a California highway stretch near San Diego. Reads came every thirty seconds over five months in 2022. Two methods, a plain line fit and a forest of decision trees, were tried at gaps from thirty seconds to fifteen minutes.
Both methods peaked at ten-minute data gaps. Scores used three gauges of miss size and fit. Packed roads are a world strain, and better foretelling feeds smoother control. The team frames the ten-minute sweet spot as a guide for live systems.
Catalog record
| CREATOR | Junseong Lee 1 , Jaegwan Cho 1 , Yoonju Cho 1 , Seoyoon Choi 2 , Yejin Shin 2 |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 13 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-13112
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Prediction of Highway Traffic Flow Based on Artificial Intelligence Algorithms Using California Traffic Data Junseong Lee 1 , Jaegwan Cho 1 , Yoonju Cho 1 , Seoyoon Choi 2 , Yejin Shin 2 Abstract The study ”Prediction of Highway Traffic Flow Based on Artificial Intelligence Algorithms Using California Traffic Data” presents a machine learning-based traffic flow prediction model to address global traffic congestion issues. The research utilized 30-second interval traffic data from California Highway 78 over a five-month period from July to November 2022, analyzing a 7.24km westbound section connecting ”Melrose Dr” and ”El-Camino Real” in the San Diego area. The study employed Multiple Linear Regression (MLR) and Random Forest (RF) algorithms, analyzing data collection intervals ranging from 30 seconds to 15 minutes. Using R², MAE, and RMSE as performance metrics, the analysis revealed that both MLR and RF models performed optimally with 10-minute data collection intervals. These findings are expected to contribute to future traffic congestion solutions and efficient traffic management. I Introduction Currently, traffic congestion is one of the most pressing issues faced globally. According to the California Air Resources Board, a decrease of 10 miles per hour in speed due to congestion results in an increase of approximately 100 grams of CO 2 emissions per mile [ 1 ] . The 2023 Global Traffic Scorecard report by the traffic analytics company INRIX states that the average American driver loses 42 hours annually—equivalent to an entire workweek—due to traffic congestion, resulting in a time loss valued at [ 2 ] . Kang et al. utilized LSTM to predict traffic volume at a target detector location, experimenting with varying the number of upstream and downstream detectors used as inputs [ 3 ] . Nevertheless, their experiment was conducted using 17,557 sample points, focusing on a broad area rather than on downstream traffic volume prediction for a single road segment. M. S. A. Siddiquee et al. predicted daily traffic volume on Bangladeshi highways using hourly traffic data. By employing an artificial neural network (ANN), they trained on intermittent data to estimate missing values and predict not only daily but also hourly traffic volumes [ 4 ] . The structure of this paper is as follows. Section II describes the original dataset used in this study and the preprocessing steps taken. It also presents the final dataset generated through preprocessing. Section III outlines the AI algorithms and performance metrics employed in the study. Section IV compares and analyzes the performance results of the AI-based models considered. Finally, Section V discusses the conclusions drawn from this study and suggests directions for future research. II Dataset Configuration and Data Preprocessing II-A Dataset Description To analyze traffic flow in the San Diego area, data from California State Route 78 was utilized. The study section covers approximately 7.24 km of westbound roadway, connecting ”Melrose Dr” and ”El-Camino Real.” The data was collected over a five-month period during the second half of 2022, specifically from July to November, with measurements recorded every 30 seconds around the clock. We received the dataset from Caltrans: California Department of Transportation for research purposes only. Figure 1 shows the locations of loop detectors installed to measure traffic volume, which are distributed across both the mainline and the on/off ramps. Using this equipment, the California Department of Transportation records the number of passing vehicles and roadway occupancy every 30 seconds. Operating at 30Hz, this system can collect up to 900 data points within each 30-second interval. Table I describes the attributes that make up the traffic dataset for State Route 78 in San Diego County. The dataset includes the following elements: measurement date (Date), end time of each 30-second measurement interval (Time), detector identification number (ID), name of the highway entry/exit location (Name), number of vehicles passing through each mainline lane during each 30-second interval (LaneX_Vol), occupancy for those vehicles (LaneX_Occ). The original Caltrans dataset used in this study contains measurements at 30-second intervals, totaling 426,240 data samples. TABLE I: Variable Names and Characteristics of the Original Caltrans Dataset Variables Type Unit Date Year-Month-Day 2022.07.01-2022.11.30 Time Hour-Minute-Second 00:00:00-23:59:30 ID Integer 66,191,192,193,270 LaneX_Vol Integer 0,1,… LaneX_Occ Integer 0,1,… OffX_cnt Integer 0,1,… PsgX_cnt Integer 0,1,… Figure 1 illustrates the section of State Route 78 in San Diego County, California, considered in this study. A total of five loop detectors are installed along the mainline of the highway. The corresponding entry and exit road names for detectors ID 191, ID 66, ID 270, ID 192, and ID 193 are El-Camino Real, College Blvd., Emerald Dr., and again El-Camino Real, respectively. Fig. 1: State Route 78 in San Diego County (Traffic Flow: Westbound). Among these, detector ID 193 is located at the most upstream point, while ID 191 is positioned at the most downstream point. The objective of this study is to predict the traffic volume at ID 191 by utilizing the volume and occupancy data of ID 191 itself with various historical lengths. Among the total 426,240 data samples, 1.14% contained missing values, which were supplemented using linear interpolation. II-B Data Preprocessing Procedure The data preprocessing in this study was conducted in three main steps: data integration, time unit adjustment, and target data selection for analysis. First, during the raw data integration step, data scattered across individual detectors were reorganized. Specifically, the traffic volume and occupancy data for each lane (Lane 1, 2, 3) were aggregated into single values. The data was then categorized by detector ID and transformed into a pivot table format based on date and time. Second, to enable analysis at various time resolutions, the original 30-second (0.5-minute) interval data was restructured into 1-minute, 2-minute, 5-minute, 10-minute, and 15-minute intervals. The reconstruction followed this rule: when creating higher time-unit datasets, all traffic volume and occupancy values within the target time range were summed, while the month and time information were taken from the first data entry of each interval. For example, 1-minute interval data was generated by combining two consecutive 30-second records, and 2-minute data by combining four consecutive 30-second records. Lastly, to improve analytical accuracy, a weekday-based data selection process was performed. Based on the date information, a weekday index (1–7, Sunday–Saturday) was assigned to each data sample, after which the data was divided into weekdays (2–6) and weekends (1, 7). To ensure consistency in traffic patterns, weekend data was excluded from the analysis. Through this preprocessing, a structured weekday traffic dataset was established for each time unit, serving as the foundational resource for subsequent analysis. Fig. 2: Time Unit Adjustment Process. Figure 2 presents a table illustrating an example of the second step in the three-stage data preprocessing procedure: time unit adjustment. Through these three steps, the final dataset, referred to as the CFD, was constructed. The results are summarized below. TABLE II: Final Constructed Feature Dataset (CFD_T) Variables Type Values Unit Independent Variable Month Integer {7, …, 11} - Time Double {-1.0, …, 1.0} - 191_Occ_T Double {0.0, …} - Dependent Variable 191_Vol_T Double {0.0, …} - Here, T = {0.5 min, 1 min, 2 min, 5 min, 10 min, 15 min}. III Machine Learning Algorithms and Performance Evaluation Metrics In this study, Multiple Linear Regression (MLR) and Random Forest (RF) algorithms were employed to predict traffic volume.