Next Article in Journal
Backstepping Sliding Mode Control of Quadrotor UAV Trajectory
Previous Article in Journal
Leakage Fault Diagnosis of Wind Tunnel Valves Using Wavelet Packet Analysis and Vision Transformer-Based Deep Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A FIG-IWOA-BiGRU Model for Bus Passenger Flow Fluctuation Trend and Spatial Prediction

1
College of Information Engineering, Ningde Normal University, Ningde 352100, China
2
School of Civil Engineering and Transportation, Northeast Forestry University, Harbin 150040, China
3
School of Traffic and Transportation, Lanzhou Jiaotong University, Lanzhou 730070, China
*
Authors to whom correspondence should be addressed.
Mathematics 2025, 13(19), 3204; https://doi.org/10.3390/math13193204
Submission received: 19 August 2025 / Revised: 27 September 2025 / Accepted: 29 September 2025 / Published: 6 October 2025

Abstract

To capture bus passenger flow fluctuations and address the problems of slow convergence and high error in machine learning parameter optimization, this paper develops an improved Whale Optimization Algorithm (IWOA) integrated with a Bidirectional Gated Recurrent Unit (BiGRU). First, a Logistic–Tent chaotic mapping is introduced to generate a diverse and high-quality initial population. Second, a hybrid mechanism combining elite opposition-based learning and Cauchy mutation enhances population diversity and reduces premature convergence. Third, a cosine-based adaptive convergence factor and inertia weight strategy improve the balance between global exploration and local exploitation. Based on the correlation analysis between bus passenger flow and weather condition data in Harbin, and combined with the fluctuation characteristics of bus passenger flow, the data were divided into windows with a 7-day weekly cycle and processed by fuzzy information granulation to obtain three groups of fuzzy granulated window data, namely LOW, R, and UP, representing the fluctuation trend and spatial characteristics of bus passenger flow. The IWOA was employed to optimize and solve parameters such as the hidden layer weights and bias vectors of the BiGRU, thereby constructing a bus passenger flow fluctuation trend and spatial prediction model based on FIG-IWOA-BiGRU. Simulation experiments with 21 benchmark functions and real bus data verified its effectiveness. Results show that IWOA significantly improves optimization accuracy and convergence speed. For bus passenger flow forecasting, the average MAE, RMSE, and MAPE of LOW, R, and UP data are 2915, 3075, and 8.1%, representing improvements over existing classical models. The findings provide reliable decision support for bus scheduling and passenger travel planning.

1. Introduction

Bus passenger flow serves as the basis for bus operation management departments to formulate network planning and vehicle scheduling plans. By establishing the relationship between bus passenger flow and its influencing factors, and exploring the fluctuation patterns of randomness, time variation, and imbalance in passenger flow, an accurate prediction model of passenger flow fluctuations can be constructed. This enables reasonable forecasting of fluctuation trends and spatial distribution of passenger flow, thereby providing a theoretical foundation for developing bus operation scheduling plans. Meanwhile, it also facilitates passengers in planning travel routes and times more effectively, improves operational efficiency, and ensures the service level and quality of bus services.
Mei Z et al. [1] pointed out that factors such as weather conditions, bus stop information, bus passenger flow change rate, and time and date have significant impacts on bus passenger flow. Chen D et al. [2] established a nonlinear relationship between bus passenger flow and factors such as the number of bus stops, road network density, and the number of companies, revealing the influencing mechanisms of passenger flow changes. Zhu C et al. [3] found that the land-use characteristics surrounding bus stops have a significant impact on bus passenger flow. Fang X et al. [4] examined the correlation between bus IC card passenger flow attributes and travel time, and proposed a passenger flow forecasting method based on the classification of travel attributes. Chen E et al. [5] analyzed the time-series characteristics of bus IC card passenger flow data and developed an ARIMA-based forecasting model. To further analyze the seasonal periodic patterns of bus passenger flow, Milenković M et al. [6] proposed a Seasonal Autoregressive Integrated Moving Mean (SARIMA)-based bus passenger flow forecasting method. Cheng G et al. [7] developed a Short Time Series Clustering–Seasonal Autoregressive Integrated Moving Mean (STSC-SARIMA) model for bus passenger flow forecasting. However, the above studies primarily fit linear regression relationships between bus passenger flow and influencing factors using historical data samples, without adequately addressing the spatiotemporal dynamics and nonlinear characteristics of bus passenger flow. This may result in the omission of certain spatiotemporal dynamic influencing factors and their relationships during parameter calibration, thereby reducing the accuracy and generalization capability of bus passenger flow forecasting results [8].
To investigate the spatiotemporal dynamic complexity and nonlinear relationships between bus passenger flow and factors such as weather conditions, commercial land-use ratio, points of interest (POI), bus stop density, and characteristics of bus and road networks under large-scale data samples, and to explore the characteristic patterns of influencing factors and the spatiotemporal distribution of bus passenger flow to improve forecasting accuracy and robustness, Yu L et al. [9] examined the impact of land-use characteristics on bus passenger flow and proposed a bus passenger flow forecasting model based on the least squares support vector machine. Xu X et al. [10] developed a combined forecasting model integrating time series analysis and support vector machines for bus passenger flow. Li Y et al. [11] proposed a bus passenger flow forecasting method based on the kernel extreme learning machine (KELM), which effectively improved the accuracy of forecasting results. Yazıcıoğlu C et al. [12] introduced an LSTM-based bus passenger flow forecasting method, and the results showed that incorporating weather conditions helps enhance the accuracy and applicability of the forecasts. Zhang Y et al. [13] compared the forecasting accuracy of existing machine learning models and found that bidirectional forecasting models, such as those based on BiLSTM and BiGRU, outperform unidirectional models in both accuracy and robustness.
To further integrate the spatiotemporal distribution features of the built environment, bus stop density, and bus and road networks, and to improve the accuracy and applicability of bus passenger flow forecasting, Cao B et al. [14] proposed a hybrid forecasting method based on convolutional neural network–long short-term memory (CNN-LSTM) by incorporating factors such as commercial land-use ratio, points of interest (POI), and bus stop density. This method effectively extracts the spatiotemporal features of bus passenger flow, reduces model computational complexity, and achieves higher forecasting accuracy compared to LSTM networks. Baghbani A et al. [15] developed a traffic-aware multi-step graph neural network (TMS-GNN)-based method for bus passenger flow forecasting, which considers bus stop connectivity and urban traffic operation characteristics to significantly improve both the accuracy and applicability of forecasts. Lv W et al. [16] constructed an extreme gradient boosting (XGBoost) model for bus passenger flow forecasting by incorporating POI information. Yu J et al. [17] proposed an interpretable bus passenger flow forecasting method based on CatBoost, which not only improves forecasting accuracy but also reveals the interaction mechanisms between influencing factors and forecast accuracy. These studies have effectively enhanced the accuracy and robustness of bus passenger flow forecasting by exploring the complex spatiotemporal dynamic relationships and distribution characteristics between bus passenger flow and influencing factors. However, they often rely on manually setting parameters for machine learning models, which can limit the precision and efficiency of parameter optimization.
To further improve the accuracy and efficiency of bus passenger flow forecasting, Nagaraj N et al. [18] examined factors such as bus type, the locations of route terminals, passenger numbers, and headways, and proposed a forecasting method based on a greedy hierarchical algorithm combined with a long short-term memory (LSTM) neural network. Sun F et al. [19] explored the spatiotemporal distribution patterns of bus passenger flow using IC card data and developed a forecasting model based on a nonlinear autoregressive network with exogenous inputs (NARX) optimized by a genetic algorithm. Li C et al. [20], considering the volatility, nonlinearity, and periodicity of bus passenger flow, applied a clustering algorithm to segment passenger flow data and constructed a forecasting model based on a particle swarm optimization–support vector machine (PSO-SVM). Bus passenger flow forecasting models based on GWO-SVM [21] and whale optimization-Attention-Bidirectional Gated Recurrent Unit (BiGRU) [22] have also demonstrated high prediction accuracy and strong generalization capability, as intelligent optimization algorithms are used to fine-tune machine learning hyperparameters.
The whale optimization algorithm (WOA) in intelligent optimization exhibits advantages such as simple structure, few parameters, and high accuracy and convergence speed in optimization solving [23], and has been widely applied in areas including path planning [24] and machine learning parameter optimization [25]. However, due to the use of an initialization strategy in the optimization process, WOA often suffers from uneven population distribution. Moreover, the linearly decreasing convergence factor during population position updating tends to cause an imbalance between global search and local exploitation, leading to problems such as being trapped in local optima, insufficient solution accuracy, and slow convergence speed. To address these issues, Prasad D [26] and Duan Y et al. [27] improved the population initialization of WOA by adopting Logistic and Circle chaotic mappings, thereby enhancing population diversity and quality and improving optimization speed and convergence accuracy. Similarly, Darvish Falehi A [28] and Paul C et al. [29] applied chaotic mappings to improve WOA population initialization, balancing the relationship between global search and local exploitation, enhancing optimization accuracy and speed, and strengthening WOA’s capability in solving complex engineering problems.
To address the issue that the Whale Optimization Algorithm (WOA) is prone to premature convergence to local optima, Li M [30] and Chakraborty S et al. [31] improved WOA by employing an elite opposition-based learning strategy. This approach enhanced population diversity and local exploration capability, increased the probability of feasible solutions approaching the optimal solution during the optimization process, and avoided premature convergence caused by limited exploration ability.
Regarding the problem that the linearly decreasing convergence factor in WOA cannot effectively balance the relationship between global search and local exploitation, thereby reducing solution accuracy and convergence speed, Anitha J [32] and Yue Y et al. [33] introduced cosine functions to improve convergence factors and inertia weights. This effectively balanced global and local search abilities, enhancing both solution accuracy and convergence speed. Chakraborty S et al. [34] suggested that improving the coefficient vector in the position update mechanism could significantly enhance the exploration capability in the early stage and the exploitation capability in the later stage. Wang H [35] and Yang W et al. [36] used nonlinear functions and dynamic convergence factors to improve the linear convergence factor of WOA, strengthening global and local search capabilities while reducing the risks of premature convergence and insufficient accuracy. Ju C et al. [37] integrated chaotic mapping, nonlinear convergence factors, and Cauchy mutation as a hybrid strategy to improve WOA. This increased population diversity and quality, effectively balanced global and local search abilities, and overcame the issues of insufficient accuracy, slow convergence, and susceptibility to local optima.
Existing studies mainly focus on examining the impacts of factors such as weather conditions, built environment, and the characteristics of bus and road networks on bus passenger flow, and on developing models aimed at improving the point-in-time forecasting accuracy of bus passenger flow, while neglecting its randomness, time variation, and imbalance. The use of intelligent optimization algorithms to tune machine learning parameters can avoid the limitations of manual parameter setting, which often results in insufficient accuracy and applicability of forecasting results.
Therefore, to address the problems of WOA being easily trapped in local optima, insufficient solution accuracy, and slow convergence speed, this study adopts a Logistic–Tent combined chaotic mapping to initialize the population of WOA, thereby increasing population diversity and quality; an elite opposition-based learning and Cauchy mutation hybrid mechanism is adopted to overcome premature convergence and the tendency of WOA to fall into local optima. Moreover, improved convergence factors and inertia weights are introduced to enhance the population position update mechanism, effectively balancing the relationship between global search and local exploitation, and improving both solution accuracy and convergence speed of WOA. Based on bus passenger flow data from Harbin, the study analyzes the correlations between passenger flow, weather conditions, and passenger attributes, applies fuzzy information granulation (FIG) to the passenger flow data, and employs the improved WOA (IWOA) to optimize BiGRU parameters, thereby developing a FIG-IWOA-BiGRU model for forecasting bus passenger flow fluctuation trends and spatial distribution. By considering the impacts of passenger travel randomness and uncertainty on bus passenger flow, the model extends forecasting results from point predictions to spatial predictions. Meanwhile, the use of a hybrid-strategy-improved WOA prevents the algorithm from falling into local optima and suffering from slow convergence, which could otherwise lead to poor BiGRU prediction performance and long computation times, thus addressing the limitations in bus passenger flow data forecasting applications.
The remainder of this paper is organized as follows: Section 1 analyzes the fluctuation characteristics of bus passenger flow and its influencing factors. Section 2 briefly introduces fuzzy information granulation and the whale optimization algorithm. Section 3 presents in detail the strategies and functions of the improved whale optimization algorithm, and constructs the FIG-IWOA-BiGRU model for forecasting bus passenger flow fluctuation trends and spatial distribution. Section 4 provides the results of numerical simulation experiments based on 21 benchmark test functions and discusses the advantages of the improved whale optimization algorithm compared with other metaheuristic algorithms. The results of the FIG-IWOA-BiGRU bus passenger flow fluctuation trend and spatial forecasting model are then presented, followed by a comparative analysis of the accuracy and applicability of the proposed model and existing models.

2. Bus Passenger Flow Fluctuation Characteristics and Influencing Factors Analysis

2.1. Analysis of Bus Passenger Flow Fluctuation Characteristics

The fluctuation characteristics of bus passenger flow represent the overall fluctuation trend and spatial variation range of passenger flow within a given period. As shown in the time series of bus passenger flow fluctuations in Figure 1, the fluctuation trends and spatial ranges of different IC card types vary across different periods; however, they share the following characteristics:
1. Temporal and spatial attributes—The fluctuation characteristics of bus passenger flow reflect changes in passenger travel demand within a given period, as well as the influence of land-use characteristics and the degree of development around bus routes on travel demand.
2. Object and condition attributes—These characteristics treat the passenger flow of a bus route as a whole and examine changes in passenger travel demand from a macro perspective. New fluctuation patterns in bus passenger flow emerge only when passengers’ travel purposes and modes change.
3. Predictability—From the perspective of residents’ travel demand and mode choice, the fluctuation characteristics of bus passenger flow reflect the service level of bus operations and can be analyzed and forecast based on historical data patterns.

2.2. Principles for Selecting Influencing Factors of Bus Passenger Flow

The selection of influencing factors for bus passenger flow aims to reduce the workload of data collection and processing while ensuring the accuracy of forecasting model results. The main principles include the following:
1. Scientific validity—The selected factors should objectively reflect changes in their impact on passenger travel. For example, passengers have an optimal preference for weather conditions; the degree of deviation from this optimal value is inversely proportional to travel comfort. Therefore, indicators such as clothing index, wind scale, and daily Mean temperature can better capture the seasonal variations in temperature and their effects on passenger travel.
2. Availability—The selected factors should be accessible and calculable. For instance, air quality index, relative humidity, and clothing index can be obtained and computed from meteorological websites.
3. Sensitivity—The selected factors should have a significant impact on the fluctuation characteristics and trends of bus passenger flow.

2.3. Analysis of Influencing Factors of Bus Passenger Flow

Liu J et al. [38] argued that considering weather conditions can help improve the accuracy of bus passenger flow forecasting. To further analyze the relationship between bus passenger flow and weather conditions, influencing factors were selected for the fluctuation trend and spatial prediction datasets of bus ridership. The research data mainly consist of bus IC card records and corresponding weather conditions in Harbin from 1 March 2021 to 31 October 2021, covering a total of 245 days. Considering that both bus IC card data and weather condition data contain partial temporal gaps, a time series method was employed to repair and complete the missing data. The Pearson correlation coefficient in binary interval variable correlation analysis was employed to examine the degree of correlation between bus passenger flow and weather-related influencing factors, and the results are shown in Figure 2.
Existing studies suggest that when the correlation coefficient between two influencing factors exceeds 0.95, the factors are considered highly correlated, and one of them should be removed [38]. As shown in Figure 2, the correlation coefficients among the factors selected in this study are ρ X , Y < 0.95 , except that the wind chill index shows correlations higher than 0.95 with both daily Mean temperature and clothing index. The correlations among the remaining factors are within the threshold range. Therefore, daily Mean temperature, air quality index, relative humidity, wind scale, and clothing index were selected as the influencing factors for bus passenger flow forecasting.

3. Fuzzy Information Granulation and Whale Optimization Algorithm

3.1. Fuzzy Information Granulation

Given the randomness and uncertainty of bus passenger flow and weather data, the fuzzy granulation method based on fuzzy set theory is applied to determine the fuzzy granulation window and perform information fuzzy granulation processing on bus passenger flow data. The number of fuzzy granulation windows is determined according to the characteristics of bus passenger flow data, dividing them into several fuzzy granulation sub-windows according to a fixed rule length. The purpose of information fuzzy granulation is to obtain reasonable fuzzy information granules for each window while retaining the valid information of the original window data, thereby simplifying the spatial dimensionality of the model. The triangular membership function and the Gaussian membership function are commonly used fuzzy information granulation methods. The membership function for fuzzy information granulation is typically determined using histogram plotting. The histogram of bus passenger flow data is shown in Figure 3. As illustrated in Figure 3, the triangular membership function provides a better fuzzy information granulation of bus passenger flow data. Moreover, compared with trapezoidal and Gaussian membership functions, the triangular membership function offers the advantages of computational simplicity, efficiency, and rapid modeling.
Thus, this study adopts the triangular membership function for bus passenger flow information granulation, which is expressed as Equation (1):
A ( x , a , m , b ) = 0 , x < a x a m a , a x m b x b m , m < x b 0 , x > b
where a , m , and b represent the minimum value, mean value, and maximum value, respectively, of the fluctuations in the original sample data after window granulation.

3.2. Whale Optimisation Algorithm

3.2.1. Encircling Prey

The WOA was proposed by Mirjalili et al. [39] in 2016 as an intelligent optimization algorithm consisting of mathematical models such as encircling prey, spiral bubble-net attacking, and random search for prey. Encircling prey refers to the assumption that, due to the uncertainty of the optimal position in the data samples, the model considers the position of the current sample with the highest fitness as the target position and uses it as a reference for other samples to update their own positions. The formula is as follows:
D = C X * ( t ) X ( t )
X ( t + 1 ) = X * ( t ) A D
where t denotes the current iteration number, X * is the position vector of the best individual, X is the position vector, and the coefficient vectors A and C are calculated as follows:
A = 2 a r 1 a
C = 2 r 2
where a is a coefficient that decreases linearly from 2 to 0 as the iterations progress, and r 1 and r 2 are random variables in the range [0, 1].

3.2.2. Spiral Bubble-Net Attacking

The spiral bubble-net attacking mainly simulates the process of updating the positions of other samples toward the position of the optimal sample through spiral position updating and a shrinking encircling mechanism. Since spiral position updating and the shrinking encircling mechanism occur simultaneously during the spiral bubble-net attacking process, this mathematical model assumes that each occurs with a probability of 50%. The formula is as follows:
X ( t + 1 ) = X * ( t ) A D ,       if   p < 0.5
X ( t + 1 ) = D e b l cos ( 2 π l ) + X * ( t ) , if   p 0.5
where b is a constant defining the shape of the spiral, and l and p are random numbers in the range [−1,1].

3.2.3. Random Search for Prey

The random search for prey updates positions by performing a random search based on the locations of data samples. This mathematical model assumes that when A > 1, the position of a sample is randomly updated according to the characteristics of the data samples, in order to enhance global search capability. The formula is as follows:
D = C X r a n d X
X ( t + 1 ) = X r a n d A D
where X r a n d is an individual randomly selected from the current population.

4. Improved Whale Optimization–Bidirectional Gated Recurrent Unit

4.1. Logistic–Tent Combined Mapping Initialization

A randomly and uniformly distributed initial population helps expand the search space of the algorithm, improving its convergence speed and solution accuracy [40]. In the absence of any prior information, the whale optimization algorithm generates the initial population randomly within the search space, which can easily lead to uneven distribution of individual positions and a reduced search space. Therefore, this study combines Logistic and Tent chaotic mappings to construct a Logistic–Tent combined mapping. This combined mapping integrates the strong spatial ergodicity of Logistic mapping with the fast iteration speed, low autocorrelation, and strong applicability of Tent mapping. Such a combination helps improve the uniformity and ergodicity of population spatial distribution in WOA during the optimization of bus passenger flow data, thereby overcoming the tendency to fall into local optima and enhancing the convergence speed and accuracy in solving BiGRU parameters. The formula is as follows:
z ( t + 1 ) = r z t 1 z ( t ) + 4 r z ( t ) ,   0 < z ( t ) 0.3 r z t 1 z ( t ) + 4 r 1 z ( t ) ,   0 . 3 < z ( t ) < 1
where z ( t ) is the value after the t-th iteration, and r is a random parameter in the range (0, 4).

4.2. Elite Opposition-Based Learning and Cauchy Mutation Hybrid Mechanism

4.2.1. Elite Opposition-Based Learning

The opposition-based learning (OBL) strategy, proposed by Tizhoosh [30] in 2005, is a learning strategy that, based on the current feasible solution, evaluates its opposite solution and selects the better feasible solution from the current and opposite solutions, with the aim of increasing the probability of the optimal feasible solution approaching the global optimum. This strategy can effectively improve the diversity and quality of the algorithm’s population and prevent the algorithm from prematurely falling into a local optimum. It has been widely applied to the improvement of various intelligent optimization algorithms and has achieved favorable results.
The opposition-based learning strategy assumes that the current feasible solution of the population is X = ( x 1 , x 2 , , x d ) , where d is the dimension of the search space and x j a j , b j . Its opposite solution is X ¯ = ( x 1 ¯ , x 2 ¯ , , x d ¯ ) , where x j ¯ = ω ( a j + b j ) x j , and ω is a generalized coefficient uniformly distributed in [0, 1].
The elite opposition-based learning strategy [31] is an improved approach proposed to address the issue in the opposition-based learning strategy, where the generated opposite solution is more difficult to reach the global optimum within the current search space. It has been widely applied to the improvement of various algorithms and has achieved favorable results. Assuming that the local extremum point corresponding to a general individual in the current population is an elite individual X i , j e = ( X i , 1 e , X i , 2 e , , X i , d e ) ( i = 1 , 2 , 3 , , d ) , its opposite solution X i , j e ¯ = ( X i , 1 e ¯ , X i , 2 e ¯ , X i , d e ¯ ) can be expressed as
  X i , j e ¯ = K * ( α j + β j ) X i , j e
where K is a dynamic coefficient in the range (0, 1), and X i , j e α j , β j , α j = min ( X i , j ) , β j = min ( X i , j ) , α j and β j are dynamic boundaries that overcome the limitation of fixed boundaries in preserving search experience. These dynamic boundaries enable the elite opposite solution to be located within a narrow search space, thereby improving the convergence performance of the algorithm. If the operation causes X i , j e to cross the boundary and become an infeasible solution, it can be reset using the method of random generation defined in Equation (12).
  X i , j e ¯ = r a n d ( α j , β j )

4.2.2. Cauchy Mutation

Given that the Cauchy distribution function has a slow decay along the horizontal axis and a heavy-tailed property, it can be used to optimize the best position of whale individuals in the WOA. This allows rapid perturbation of the current optimal solution obtained during the optimization process, enabling fast search for feasible solutions within the bus passenger flow data space, and enhancing the algorithm’s global search capability as well as its ability to escape local optima [38]. When the WOA converges to the global optimal solution, the updated position of the optimal whale individual after Cauchy mutation perturbation is
  X n e w b e s t j = X b e s t j + X b e s t j × C a u c h y ( 0 , 1 )
where X n e w b e s t j is the optimal whale position after Cauchy perturbation, X b e s t j is the optimal whale position before Cauchy perturbation, and C a u c h y ( 0 , 1 ) is a random value generated from the standard Cauchy distribution.

4.2.3. Hybrid Mechanism

The hybrid mechanism expands the search range of the WOA in the bus passenger flow data space through elite opposition-based learning, enabling the exploration of more potential optimal solutions to improve the convergence speed and accuracy in optimizing BiGRU parameters. Cauchy mutation is mainly used to randomly perturb the optimal whale position, enhancing its ability to escape from local optima and accelerating the solution process of BiGRU parameters for bus passenger flow forecasting. The dynamic updating method of the optimal whale position under the hybrid mechanism is as follows:
  X n e w b e s t , i , j e ¯ = ( a j + b j ) 2 + ( a j + b j ) 2 n X b e s t , i , j j n ,   λ < 0.5 X b e s t , i , j e + X b e s t , i , j e × C a u c h y ( 0 , 1 ) ,   λ 0.5
where λ is a random number in the range [0, 1].

4.3. Improved Convergence Factor and Inertia Weight

For swarm intelligence optimization algorithms, it is necessary to balance the relationship between global search and local exploitation. Failure to achieve this balance may cause the algorithm to converge prematurely to a local optimum or to converge slowly. Global search means that the population explores a wide search space with relatively large search steps and range, which can reduce the probability of falling into a local optimum. Local exploitation requires the population to perform refined searches within a local space, thereby avoiding the loss of the theoretical optimum due to excessively large search steps [23]. As a swarm intelligence optimization algorithm, WOA also depends critically on balancing global search and local exploitation. From Equations (3), (6) and (8), it can be seen that this balance largely depends on the value of A. From Equation (4), it follows that changes in the convergence factor a determine the value of A.
Given that the convergence factor in WOA decreases linearly and does not adequately balance the relationship between global search and local exploitation, this study incorporates the characteristics of the cosine function to improve the convergence factor formula as follows:
a = 2 2 cos ( π 2 · t t max )
Given that WOA continuously updates the leader’s position, it is prone to falling into local optima. To address this issue, this study introduces an inertia weight into the whale position updating process to increase the probability of WOA escaping from local optima. The improved whale position updating formula is as follows:
X ( t + 1 ) = φ X * ( t ) A D , A < 1 , p < 0.5
X ( t + 1 ) = φ X r a n d A D   A 1 , p < 0.5
X ( t + 1 ) = D e b l cos ( 2 π l ) + φ X * ( t ) , p 0.5
where φ is the inertia weight, calculated as
φ ( t + 1 ) = φ max ( φ max φ min ) · cos ( t t max π )

4.4. Bidirectional Gated Recurrent Unit

As shown in Figure 4, the bidirectional gated recurrent unit (BiGRU) consists of several forward and backward GRUs that operate in opposite temporal directions and are independent of each other. Compared with GRU, BiGRU offers bidirectional modeling, accurate temporal annotation, and strong data feature extraction capabilities, while having fewer network parameters than LSTM. The calculation of the hidden layer units within BiGRU is shown in Equation (20):
h t = G R U ( x t , h t 1 ) h t = G R U ( x t , h t 1 ) h t = α t h t + β t h t + b t
where G R U ( ) is the gated recurrent unit, x t is the input value, h t and α t are the forward hidden state and weight, h t and β t are the backward hidden state and weight, and b t is the hidden layer bias vector.

4.5. FIG-IWOA-BiGRU Model Prediction Process

Based on the analysis results of bus passenger flow fluctuation characteristics and influencing factors, the bus passenger flow data are divided into fuzzy granulation windows with a period of 7 days per week, and triangular fuzzy membership functions are used for fuzzy granulation processing. The fuzzy-granulated bus passenger flow data are used as input samples, and the hybrid-strategy–improved WOA is employed to optimize the hyperparameters of the BiGRU model, which is then trained to obtain the bus passenger flow fluctuation trend and spatial prediction model. The steps of the FIG-IWOA-BiGRU bus passenger flow fluctuation trend and spatial prediction model are as follows, and the process is shown in Figure 5.
1.Select the influencing factors of bus passenger flow and compile the dataset; divide the bus passenger flow data into fuzzy granulation windows with a period of 7 days per week.
2. Apply a triangular fuzzy membership function to fuzzify the bus passenger flow window time series sample data, and compute the fuzzified window time series samples after fuzzy information granulation.
3. Set the improved WOA population size to 30 and the number of iterations to 500.
4. Generate the initial population within the search space using the Logistic–Tent combined mapping.
5. Calculate the fitness values of the individuals in the population and record the optimal position X ( t ) .
6. Apply the elite opposition-based learning and Cauchy mutation hybrid mechanism for opposition-based learning, evaluate and select the solution according to the objective function’s fitness value, update the solutions in each dimension using this method, and update the position of the optimal whale individual according to Equation (14).
7. Update parameter φ according to Equation (19), and update parameters a , A , C , and l accordingly.
8. Compare the value of A and the random value p with 0.5, then select the corresponding position updating formula. If p < 0.5 and A < 1 , update the current position according to Equation (16); if p < 0.5 and A 1 , perform random prey search according to Equation (17); if p 0.5 , update the current position according to Equation (18).
9. Check whether the algorithm has reached the maximum number of iterations. If so, stop the iterations and output the optimal position and fitness value; otherwise, repeat steps (4)–(8).
10. Output the global optimal solution obtained by the IWOA and use it as the optimal parameter set to construct the BiGRU.
11. Use the FIG-IWOA-BiGRU model to forecast bus passenger flow fluctuation trends and spatial ranges, and verify the prediction performance.

5. Numerical Simulation and Forecasting Results Analysis

5.1. Numerical Simulation Results

To verify the effectiveness of the IWOA, 21 typical benchmark test functions were selected for numerical simulation. The results of 30 simulation runs were comprehensively compared with those of WOA, Grey Wolf Optimizer Algorithm (GWO), Particle Swarm Optimization Algorithm (PSO), and Genetic Algorithm (GA). All numerical simulations were conducted in a Windows 11 environment with 32 GB of RAM (Kingston Technology, Fountain Valley, CA, USA) and a 12th Gen Intel(R) Core(TM) i7-12700 processor (2.10 GHz) (Intel Corporation, Santa Clara, CA, USA), using MATLAB R2023b as the programming language. In the numerical simulation experiments, the maximum number of iterations was set to 500, and the population size was 30. Other parameter settings of each algorithm model are provided in Table 1. Among the 21 benchmark test functions, f1f7 are high-dimensional unimodal benchmark test functions, f8f13 are high-dimensional multimodal benchmark test functions, and f14f21 are fixed-dimensional composite multimodal benchmark test functions, as detailed in Table 2. The numerical simulation results are presented in terms of statistical parameters such as mean, standard deviation, best fitness, and worst fitness. The statistical results for the different types of benchmark test functions are shown in Table 3, Table 4 and Table 5.
Table 3 presents the statistical results of best fitness, worst fitness, mean fitness, and standard deviation for unimodal benchmark test functions. As test functions with a unique global optimum, unimodal benchmark functions are primarily used to evaluate the exploitation capability of intelligent optimization algorithms. According to Table 3, the IWOA demonstrates superior exploitation ability. For functions f1, f2, f4, and f6, all statistical results of the IWOA outperform those of other intelligent optimization algorithms. For functions f3, f5, and f7, IWOA ranks as the second-best algorithm. Therefore, the strategies proposed in this paper significantly enhance WOA, enabling the improved algorithm to achieve stronger exploitation ability compared with other intelligent optimization algorithms.
Compared with unimodal benchmark test functions, multimodal benchmark test functions have the characteristic of containing many local optima as the function dimension increases. This characteristic is effective for evaluating the exploration capability of intelligent optimization algorithms. According to the data in Table 4, the improved WOA demonstrates better exploration capability on multimodal benchmark test functions compared with algorithms such as WOA, GWO, PSO, and GA. This is mainly because the hybrid mechanism of elite opposition-based learning and Cauchy mutation effectively prevents the algorithm from falling into local optima and increases the probability of feasible solutions approaching the global optimum.
Composite multimodal benchmark test functions are more complex in structure and contain multiple local minima within their domains. They are commonly used to test an algorithm’s ability to balance global search and local exploitation. Only when an intelligent optimization algorithm achieves an appropriate balance between exploration and exploitation can it effectively overcome the problem of falling into local optima. According to the results in Table 5, the improved WOA exhibits superior capability in balancing global search and local exploitation on composite multimodal benchmark test functions compared with WOA, GWO, PSO, and GA. The improved balance performance of the algorithm mainly benefits from the enhancement of the convergence factor using the cosine function and the application of inertia weight in updating whale positions.
To further analyze the distribution characteristics of the IWOA’s numerical simulation results, box plots were drawn based on the results of each algorithm independently solving the benchmark test functions 30 times, as shown in Figure 6. In Figure 6, the central mark within each box represents the median of the algorithm’s solutions for the benchmark test functions, while the bottom and top edges of the box indicate the first and third quartiles. The “+” symbol denotes outliers outside the box. Comparing the medians and outliers in Figure 6 shows that the IWOA has higher solution quality, fewer outliers, and a more concentrated distribution of results, indicating good robustness.
To further analyze the robustness and fairness of the improved Whale Optimization Algorithm (IWOA), the Wilcoxon statistical test was conducted at a 5% significance level to evaluate the superiority of IWOA compared with other algorithms. Since IWOA cannot be compared with itself, it was compared with WOA, GWO, PSO, and GA, denoted as P1, P2, P3, and P4, respectively. The p-values of the Wilcoxon rank-sum test between IWOA and WOA, GWO, PSO, and GA are listed in Table 6. As shown in Table 6, all p-values are less than 0.05, indicating that the statistical results of IWOA in solving the 21 benchmark test functions are significant, and IWOA demonstrates superior performance compared with the other algorithms.

5.2. Convergence Curve Analysis

The convergence curves of the benchmark test functions can visually reflect the convergence speed and accuracy of each intelligent optimization algorithm, and clearly demonstrate their ability to overcome local optima. The convergence curves of the 21 benchmark test functions are shown in Figure 7, where the horizontal axis represents the number of iterations and the vertical axis represents the average fitness value after 30 independent runs of the test functions.
From the convergence curves of benchmark test functions (d)f4, (i)f9, (j)f10, and (k)f11, it can be observed that in the early iterations, the value of φ is relatively large, and the population rapidly converges toward the center of the optimal individual, resulting in a fast convergence speed. Around 300 iterations, an inflection point appears in the convergence curves. As the number of iterations increases, the probability of applying the hybrid mechanism of elite opposition-based learning and Cauchy mutation becomes higher, leading to a rapid decrease in the fitness values.
From the convergence curves of benchmark test functions (c)f3, (e)f5, (o)f15, and (u)f21, it can be seen that the IWOA achieves the solution accuracy of other comparative algorithms within about 100 iterations. Thereafter, due to the perturbation effects of the hybrid mechanism of elite opposition-based learning and Cauchy mutation, together with the inertia weight factor, the algorithm can effectively escape from local regions and continue searching for the global optimum. From the convergence curves of (f)f6, (h)f8, and (l)f12, the IWOA shows multiple inflection points during the iterations compared with other algorithms, indicating that the cosine function-based improvement of the adaptive convergence factor in WOA better balances global search and local exploitation, thus enhancing convergence speed and accuracy.
From the convergence curves of benchmark test functions (m)f13, (n)f14, (p)f16, (q)f17, and (r)f18, it is evident that the IWOA converges to the optimal accuracy before 100 iterations, proving that the improvement strategies in the exploration phase effectively increase the convergence speed of WOA. From the convergence curve of (u)f21, it can be observed that the IWOA has a better fitness value than other comparative algorithms at the beginning of the iterations, which indicates that the population initialized with the Logistic–Tent combined mapping has higher quality, thereby enhancing the global search ability of the algorithm to some extent. An inflection point appears after about 30 iterations, demonstrating its faster convergence speed. Finally, from the convergence curves of (a)f1, (b)f2, (g)f7, (s)f19, and (t)f20, it can be seen that the IWOA achieves better solution accuracy and convergence speed compared with the other algorithms.

5.3. Algorithm Time Complexity and Ranking Analysis

The time complexity of the IWOA is analyzed. Assuming that the execution time for parameter initialization (with a population size of N and a search space dimension of d) is t 1 , the time for generating random distributions is t 2 , and the time required to compute the fitness function is f ( d ) , the time complexity of the Whale Optimization Algorithm in the initialization stage can be expressed as
O t 1 + N d t 2 + f ( d ) = O d + f ( d )
Assuming that the time required for all individuals in the whale population to update their positions in each dimension is the same, denoted as t 3 , and the time for comparing fitness values and selecting the optimal position after each iteration are t 4 and t 5 , respectively, the time complexity of the Whale Optimization Algorithm in the optimization stage can be expressed as
O N d t 3 + f ( d ) + t 4 + t 5 = O d + f ( d )
Therefore, the total time complexity for the WOA to obtain the optimal feasible solution in each generation is
T ( d ) = O d + f ( d ) + O d + f ( d ) = O d + f ( d )
In the improved algorithm, the time complexity of the initialization phase is basically the same as that of the Whale Optimization Algorithm. Assuming that the time for updating the positions of whale individuals in the optimization phase is e 1 , the time for updating the optimal whale individual position using the elite reverse learning and Cauchy mutation hybrid mechanism is e 2 , the time for comparing the selection of the optimal whale individual is e 3 , and the time for updating whale individual positions using the improved convergence factor and inertia weight is e 4 , then the time complexity of IWOA in this phase is
O N d e 1 + f ( d ) + t 4 + t 5 + N ( e 2 + e 4 ) + e 3 = O d + f ( d )
Therefore, the total time complexity of IWOA for obtaining the optimal feasible solution in each generation is
T ( d ) = O d + f ( d ) + O d + f ( d ) = O d + f ( d )
In summary, the IWOA and the WOA have essentially the same time complexity. To visually compare and analyze the time complexity of the two algorithms, the 21 benchmark test functions were each run 30 times separately using IWOA and WOA on the same platform. The benchmark functions were classified according to their dimensions, and the average runtime of the 30 numerical simulation runs was calculated, as shown in Figure 8. As illustrated in Figure 8, IWOA requires slightly more time than WOA to solve multimodal functions, but is faster for unimodal and composite modal functions, and its mean runtime is slightly lower than that of WOA, indicating that the improvement strategy enhances the algorithm’s optimization efficiency.
Considering that the quantitative analysis of all algorithms is based on the mean absolute error (MAE) of 21 benchmark test functions, the performance metrics of the algorithms can be effectively validated by ranking the numerical simulation results. Table 7 presents the MAE ranking of the benchmark test functions, calculated as follows:
M A E = i = 1 N f m i o i N f
m i is the mean value of the algorithm’s solution results, o i is the theoretical value of each benchmark test function, and N f is the total number of benchmark test functions.
As shown in Table 7, the MAE ranking of IWOA is first. Compared with other algorithms, IWOA exhibits the smallest MAE value, further demonstrating the effectiveness of the hybrid improvement strategy.
To further analyze the effectiveness of the hybrid strategy for improving the whale optimization algorithm, ablation experiments were conducted by incorporating different strategies, including Logistic–Tent mapping, an elite opposition-based learning and Cauchy mutation hybrid mechanism, as well as improved convergence factor and inertia weight. The corresponding enhanced algorithms were denoted as WOA1, WOA2, WOA3, and WOA4, respectively. The performance of the proposed IWOA on 21 benchmark functions was compared with the optimization results of WOA1, WOA2, WOA3, and WOA4 over 30 independent runs using the Wilcoxon rank-sum test. Since IWOA cannot be compared with itself, the comparisons of IWOA with WOA1, WOA2, WOA3, and WOA4 were denoted as PW1, PW2, PW3, and PW4, respectively. The p-values of the Wilcoxon rank-sum test for IWOA against the other algorithms are presented in Table 8. As shown in Table 8, most of the p-values are less than 0.05, indicating that significant differences exist between IWOA and the other algorithms. On unimodal benchmark functions, a few results show no significant difference or inconclusive significance, suggesting that applying individual strategies, such as the elite opposition-based learning with Cauchy mutation mechanism or the improved convergence factor, can achieve comparable optimization results. Nevertheless, overall, IWOA exhibits significant differences compared to WOA1, WOA2, WOA3, and WOA4, demonstrating the superiority of the proposed algorithm.

5.4. Analysis of Bus Passenger Flow Forecasting Results

5.4.1. Fuzzy Information Granulation Processing

Based on the IC card data of bus passenger flow and the corresponding influencing factors in Harbin from 1 March 2021, to 31 October 2021, covering a total of 245 days, fuzzy granulation was performed with periods of 3, 5, 7, and 14 days according to the results of the passenger flow fluctuation characteristic analysis. The three sets of granulated window data—the minimum value (LOW), mean value (R), and maximum value (UP)—were extracted to represent the fluctuation trends and spatial range indicators of bus passenger flow, and were then used as the inputs of the IWOA-BiGRU model. The corresponding prediction results are presented in Table 9.
As shown in Table 9, when applying a 7-day weekly cycle for fuzzy granulation, the 245 days of bus passenger flow data are divided into 35 fuzzy granulated windows, which achieves superior prediction accuracy. This is mainly because the division method not only accounts for the travel cycles of working days and non-working days of domestic residents but also ensures a sufficient sample size after partitioning. Using triangular fuzzy membership functions for fuzzy granulation processing, the minimum value (LOW), mean value (R), and maximum value (UP) were obtained to represent the fluctuation trends and spatial range indicators of bus passenger flow. The specific results are shown in Figure 9, and the normalized data within the interval (0,1) are shown in Figure 10.

5.4.2. Forecasting Results Analysis

After dividing the bus passenger flow data into fuzzy granulation windows with a 7-day length, 35 sets of new window data were obtained. The data from weeks 1–17 were used as the training set to establish the predictive regression function of the model, while the data from weeks 18–35 were used as the testing set to verify the model’s effectiveness. The parameter settings of the IWOA were as follows: population size POP = 25, maximum number of iterations Max_iter = 40, lower bounds of variable values lb = [0.0001,10,0.00001], upper bounds of variable values ub = [0.01,100,0.005], and variable dimension dim = length(lb).
The fuzzy-granulated bus passenger flow data of LOW, R, and UP were used as the inputs of the IWOA-BiGRU. The IWOA was employed to optimize the parameters of the regression prediction model, and the fuzzy-granulated prediction values of bus passenger flow were obtained. The fitness variation in the fuzzy-granulated bus passenger flow data fitted regression function is shown in Figure 11. To evaluate the accuracy of the forecasting results, regression analysis was conducted to examine the linear correlation between the actual and predicted values, as shown in Figure 12. From Figure 12, it can be observed that the actual and predicted values of the three fuzzy-granulated data groups (LOW, R, and UP) exhibit strong linear correlations. The slopes are 0.8699, 0.7507, and 0.9146, and the correlation coefficients R 2 are 0.9058, 0.9119, and 0.9146, respectively. This indicates that the differences between the actual and predicted values are small, and the regression model achieves good prediction accuracy.

5.5. Analysis of Model Parameter Impacts

The maximum number of iterations in the bus passenger flow fluctuation trend and spatial prediction model refers to the number of times, after determining the optimal sample position, that other samples update their positions toward the optimal one in order to obtain the global optimum under the IWOA according to dataset characteristics. Due to space limitations, the parameter impact analysis was performed only on the R data after fuzzy granulation of bus passenger flow. Based on the parameter settings of the bus passenger flow fluctuation trend and spatial prediction model, the maximum number of iterations was set to 5, 10, 15, …, 60. The corresponding MAPE values of the prediction results are shown in Figure 13a. As seen in Figure 13a, with other IWOA parameters fixed, when the maximum number of iterations exceeds 40, the growth ratio of MAPE values relative to the number of iterations decreases significantly, while the computation time of the model increases notably. Excessive iteration settings may lead to redundant calculations on sample data, thereby prolonging the runtime of the prediction model.
The population size in the bus passenger flow fluctuation trend and spatial prediction model represents the exploration space of the IWOA during each run. A larger exploration space increases the probability of finding the optimal individual and the global optimum. Based on the parameter settings of the prediction model for R data after fuzzy granulation of bus passenger flow, the population size was set to 5, 10, 15, …, 60. The corresponding MAPE values of the prediction results are shown in Figure 13b. As observed in Figure 13b, when the population size exceeds 25, the growth ratio of MAPE values relative to the number of iterations decreases significantly, but the model runtime increases considerably. An excessively large population size may result in an overly wide search space, leading to redundant feature information and prolonged runtime of the prediction model.

5.6. Comparative Analysis of Model Forecasting Results

To further compare the prediction results of the models, the population size of IWOA, WOA, PSO, and GA was uniformly set to 25, with a maximum iteration number of 40, and the BiGRU algorithm parameters were kept consistent. The three sets of window data—LOW, R, and UP—obtained after fuzzy granulation of bus passenger flow were used as the input for both the IWOA-BiGRU model and existing forecasting models, and the corresponding prediction results were obtained. The statistical errors of the forecasting results for each model are shown in Figure 14. As illustrated in Figure 14, the error statistics of the IWOA-BiGRU model are consistently lower than those of the existing forecasting models. It is noteworthy that the forecasting error of bus passenger flow fuzzy granulation results is inversely proportional to the granulation values. The main reason may be that as the granulation values increase, the fluctuation trends and spatial variation ranges of the fuzzy-granulated bus passenger flow data become relatively larger.
According to Table 10, the average MAE, RMSE, and MAPE of the IWOA-BiGRU forecasting results for the three groups of window data (LOW, R, and UP) after bus passenger flow fuzzy granulation are 2915, 3075, and 8.1%, respectively. Compared with WOA-BiGRU, the improvements are 484, 686, and 1.5%; compared with PSO-LSSVM, the improvements are 1141, 1291, and 3.0%; compared with GA-BP, the improvements are 1301, 1441, and 3.5%; and compared with BiGRU, the improvements are 1378, 1498, and 3.7%. Meanwhile, relative to the existing Transformer algorithm, the improvements are 737, 932, and 2.1%, respectively. It is noteworthy that the MAPE of all models is positively correlated with the granulation values, but the variation in IWOA-BiGRU is the smallest, indicating better robustness and applicability.
To further compare and analyze the performance of the IWOA-BiGRU prediction results, the mean MAPE values of the three window sets (LOW, R, and UP) predicted by the IWOA-BiGRU model were subjected to paired t-tests with the corresponding mean MAPE values predicted by WOA-BiGRU, Transformer, PSO-LSSVM, GA-BP, and BiGRU, denoted as T1, T2, T3, T4, and T5, respectively. The results of the paired t-tests for the mean MAPE values of the prediction results of each model are presented in Table 11. As shown in Table 11, the significance levels of the mean MAPE values predicted by the IWOA-BiGRU model are all less than 0.05, indicating that the IWOA-BiGRU model demonstrates significant superiority in predicting bus passenger flow fluctuations.
As shown in Table 12, the upper and lower bounds of the bus passenger flow data thresholds obtained through triangular fuzzy information granulation encompass the range of the actual passenger flow data. From Figure 11 and Figure 13, combined with the data in Table 8 and Table 9, it can be seen that the IWOA-BiGRU forecasting results for the fuzzy-granulated bus passenger flow data (LOW, R, and UP) in week 35 (25–31 October 2021) are 34,539, 39,447, and 51,224, respectively. The prediction accuracy of this model is higher compared with existing forecasting models. Relative to the fuzzy-granulated values of bus passenger flow in the previous week (31,527, 35,625, and 43,822), the model forecasting results show an overall upward trend, which is generally consistent with the actual data trend, indicating the reliability of the forecasting results.
These findings provide data support and decision-making references for the formulation of bus operation scheduling plans and for passengers to reasonably plan travel routes and times, demonstrating practical application value.
To evaluate the applicability of the IWOA-BiGRU, the average runtime of forecasting models with different fuzzy-granulated bus passenger flow windows was recorded, as shown in Figure 15.
From Figure 15, it can be seen that the average runtime of IWOA-BiGRU is 412 s, which is shorter than that of WOA-BiGRU, PSO-LSSVM, and GA-BP by 8.2 s, 18.3 s, and 44.5 s, respectively. Although its runtime is longer than that of BiGRU, the higher prediction accuracy of IWOA-BiGRU demonstrates better applicability.

6. Conclusions

The main conclusions of this study are as follows:
(1) This paper applies a fuzzy information granulation method, which reduces the spatiotemporal complexity of bus passenger flow data while preserving its valid information, and constructs a FIG-IWOA-BiGRU-based model for forecasting bus passenger flow fluctuation trends and spatial distribution. The MAPE values of the forecasting results for the fuzzy-granulated LOW, R, and UP window data are 7.8%, 8.1%, and 8.5%, respectively. Compared with existing forecasting models, these values improve by 1.3–3.5%, 1.5–3.7%, and 1.7–4.0%, demonstrating good prediction accuracy and robustness. The findings contribute to the reasonable prediction of bus passenger flow fluctuation trends and spatial patterns, providing data support and decision-making references for bus operation scheduling plans and for passengers in planning travel routes and times.
(2) This paper improves the whale optimization algorithm (WOA) with hybrid strategies, including Logistic–Tent combined chaotic mapping, an elite opposition-based learning and Cauchy mutation hybrid mechanism, and modified convergence factor and inertia weight. These strategies enhance population diversity and quality while preserving the strengths of WOA, and improve the algorithm’s capability to balance global search and local exploitation. Comparative analysis of numerical simulation results and convergence characteristics on 21 benchmark test functions shows that IWOA outperforms WOA, GWO, PSO, and GA in solution accuracy, convergence speed, and the ability to escape local optima, further validating the effectiveness of the hybrid strategy-improved WOA proposed in this study.
In addition, due to the privacy of bus data, this study did not obtain operational data from other cities, which imposes certain limitations. In future research, the following aspects will be further explored:
(1) The main research content of this study is based on Harbin city’s bus IC card and weather condition data. Future research should further collect and organize bus IC card and weather data from other cities to comparatively analyze the impact of different built environments on the spatiotemporal distribution, fluctuation characteristics, and trends of bus passenger flow.
(2) Based on the analysis of bus passenger flow data in different urban regions, by considering modifications to the whale optimization algorithm’s search mechanism and algorithm structure and integrating the advantages of other intelligent optimization algorithms, more efficient intelligent optimization algorithms with improved search and convergence speed can be proposed, thereby enhancing the accuracy and applicability of models predicting bus passenger flow fluctuation trends and spatial distribution.

Author Contributions

Conceptualization, N.W. and Q.H.; methodology, J.Z.; software, X.L.; validation, J.Z.; formal analysis, J.Z.; investigation, X.L.; resources, N.W.; data curation, S.X.; writing—original draft preparation, J.Z.; writing—review and editing, Q.H.; visualization, Q.H.; supervision, N.W.; project administration, S.X.; funding acquisition, N.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by “the Natural Science Foundation of Fujian Province, grant number 2023J011093”; “the Collaborative Innovation Center Project of Ningde Normal University, grant number 2023ZX01”; “the Digital Intelligence Ningde Fujian Province Data Annotation Base”; “the Young Scholars Science Foundation of Lanzhou Jiaotong University, grant number 2025021; and “Research Projects of Ningde Normal University, grant number 2024Y17”.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mei, Z.; Yu, W.; Tang, W.; Yu, J.; Cai, Z. Attention mechanism-based model for short-term bus traffic passenger volume prediction. IET Intell. Transp. Syst. 2023, 17, 767–779. [Google Scholar] [CrossRef]
  2. Chen, D.; Kun, Y.; Chun, G. The Relationship between Built Environment Characteristics and Metro Stations Pedestrian Catchment Areas. J. Adv. Transp. 2024, 2024, 2196799. [Google Scholar] [CrossRef]
  3. Zhu, C.; Sun, X.; Li, Y.; Wang, Z.; Li, Y. A hybrid neural network for urban rail transit short-term flow prediction. J. Supercomput. 2024, 80, 24297–24323. [Google Scholar] [CrossRef]
  4. Fang, X.; Lin, M.; Chen, W.; Pan, X. Forecasting short-term passenger flow on a bus route: A splitting-integrating method based on passenger travel behavior. Transport 2025, 40, 12–23. [Google Scholar] [CrossRef]
  5. Chen, E.; Ye, Z.; Wang, C.; Xu, M. Subway passenger flow prediction for special events using smart card data. IEEE Trans. Intell. Transp. Syst. 2019, 21, 1109–1120. [Google Scholar] [CrossRef]
  6. Milenković, M.; Švadlenka, L.; Melichar, V.; Bojović, N.; Avramović, Z. SARIMA modelling approach for railway passenger flow forecasting. Transport 2018, 33, 1113–1120. [Google Scholar] [CrossRef]
  7. Cheng, G.; He, C. Analysis of bus travel characteristics and predictions of elderly passenger flow based on smart card data. Electron. Res. Arch. 2022, 30, 4256–4276. [Google Scholar] [CrossRef]
  8. Wang, J.; Leng, B.; Wu, J.; Du, H.; Xiong, Z. Metroeye: A weather-aware system for real-time metro passenger flow prediction. IEEE Access 2020, 8, 129813–129829. [Google Scholar] [CrossRef]
  9. Yu, L.; Cui, M.; Dai, S. Deviation of peak hours for metro stations based on least square support vector machine. PLoS ONE 2023, 18, e0291497. [Google Scholar] [CrossRef]
  10. Xu, X.; Zhang, K.; Mi, Z.; Wang, X. Short-term passenger flow prediction during station closures in subway systems. Expert Syst. Appl. 2024, 236, 121362. [Google Scholar] [CrossRef]
  11. Li, Y.; Ma, C. Short-time bus route passenger flow prediction based on a secondary decomposition integration method. J. Transp. Eng. Part A Syst. 2023, 149, 04022132. [Google Scholar] [CrossRef]
  12. Yazıcıoğlu, C.; Akgüngör, A.P. Modeling Short-Term Passenger Flows in Metro and Bus Systems Using Meteorological Data: Deep Learning Model Comparisons. Appl. Sci. 2025, 15, 6260. [Google Scholar] [CrossRef]
  13. Zhang, Y.; Wang, X.; Xie, J.; Bai, Y. Comparative analysis of deep-learning-based models for hourly bus passenger flow forecasting. Transportation 2024, 51, 1759–1784. [Google Scholar] [CrossRef]
  14. Cao, B.; Li, Y.; Chen, Y.; Yang, A. A CNN-LSTM model for short-term passenger flow forecast considering the built environment in urban rail transit stations. J. Transp. Eng. Part A Syst. 2024, 150, 04024072. [Google Scholar] [CrossRef]
  15. Baghbani, A.; Rahmani, S.; Bouguila, N.; Patterson, Z. TMS-GNN: Traffic-aware Multistep Graph Neural Network for bus passenger flow prediction. Transp. Res. Part C Emerg. Technol. 2025, 174, 105107. [Google Scholar] [CrossRef]
  16. Lv, W.; Lv, Y.; Ouyang, Q.; Ren, Y. A bus passenger flow prediction model fused with point-of-interest data based on extreme gradient boosting. Appl. Sci. 2022, 12, 940. [Google Scholar] [CrossRef]
  17. Yu, J.; Chang, X.; Hu, S.; Yin, H.; Wu, J. Combining travel behavior in metro passenger flow prediction: A smart explainable Stacking-Catboost algorithm. Inf. Process. Manag. 2024, 61, 103733. [Google Scholar] [CrossRef]
  18. Nagaraj, N.; Gururaj, H.L.; Swathi, B.H.; Hu, Y.C. Passenger flow prediction in bus transportation system using deep learning. Multimed. Tools Appl. 2022, 81, 12519–12542. [Google Scholar] [CrossRef]
  19. Sun, F.; Wang, X.L.; Zhang, Y.; Liu, W.X.; Zhang, R.J. Analysis of bus trip characteristic analysis and demand forecasting based on GA-NARX neural network model. IEEE Access 2020, 8, 8812–8820. [Google Scholar] [CrossRef]
  20. Li, C.; Wang, X.; Cheng, Z.; Bai, Y. Forecasting bus passenger flows by using a clustering-based support vector regression approach. IEEE Access 2020, 8, 19717–19725. [Google Scholar] [CrossRef]
  21. Sivakumar, R.; Angayarkanni, S.A.; Ramana Rao, Y.V. Traffic flow forecasting using natural selection based hybrid Bald Eagle Search—Grey Wolf optimization algorithm. PLoS ONE 2022, 17, e0275104. [Google Scholar] [CrossRef]
  22. Jiang, Q. GMM Clustering Based on WOA Optimization and Space-Time Coupled Urban Rail Traffic Flow Prediction by CEEMD-SE-BiGRU-AM. Mob. Inf. Syst. 2022, 2022, 7846630. [Google Scholar] [CrossRef]
  23. Rana, N.; Latiff, M.S.A.; Abdulhamid, S.M.; Chiroma, H. Whale optimization algorithm: A systematic review of contemporary applications, modifications and developments. Neural Comput. Appl. 2020, 32, 16245–16277. [Google Scholar] [CrossRef]
  24. Xu, Y.; Li, Q.; Xu, X.; Yang, J.; Chen, Y. Research progress of nature-inspired metaheuristic algorithms in mobile robot path planning. Electronics 2023, 12, 3263. [Google Scholar] [CrossRef]
  25. Nadimi-Shahraki, M.H.; Zamani, H.; Asghari Varzaneh, Z.; Mirjalili, S. A systematic review of the whale optimization algorithm: Theoretical foundation, improvements, and hybridizations. Arch. Comput. Methods Eng. 2023, 30, 4113–4159. [Google Scholar] [CrossRef]
  26. Prasad, D.; Mukherjee, A.; Mukherjee, V. Temperature dependent optimal power flow using chaotic whale optimization algorithm. Expert Syst. 2021, 38, e12685. [Google Scholar] [CrossRef]
  27. Duan, Y.; Liu, C.; Li, S. Battlefield target grouping by a hybridization of an improved whale optimization algorithm and affinity propagation. IEEE Access 2021, 9, 46448–46461. [Google Scholar] [CrossRef]
  28. Darvish Falehi, A. An optimal second-order sliding mode based inter-area oscillation suppressor using chaotic whale optimization algorithm for doubly fed induction generator. Int. J. Numer. Model. Electron. Netw. Devices Fields 2022, 35, e2963. [Google Scholar] [CrossRef]
  29. Paul, C.; Roy, P.K.; Mukherjee, V. Wind and Solar Based Multi-Objective Hydro-Thermal Scheduling Using Chaotic-Oppositional Whale Optimization Algorithm. Electr. Power Compon. Syst. 2023, 51, 568–592. [Google Scholar] [CrossRef]
  30. Li, M.; Yu, X.; Fu, B.; Wang, X. A modified whale optimization algorithm with multi-strategy mechanism for global optimization problems. Neural Comput. Appl. 2023, 2023, 22339–22352. [Google Scholar] [CrossRef]
  31. Chakraborty, S.; Saha, A.K.; Chhabra, A. Improving Whale Optimization Algorithm with Elite Strategy and Its Application to Engineering-Design and Cloud Task Scheduling Problems. Cogn. Comput. 2023, 15, 1497–1525. [Google Scholar] [CrossRef]
  32. Anitha, J.; Pandian, S.I.A.; Agnes, S.A. An efficient multilevel color image thresholding based on modified whale optimization algorithm. Expert Syst. Appl. 2021, 178, 115003. [Google Scholar] [CrossRef]
  33. Yue, Y.; You, H.; Wang, S.; Cao, L. Improved whale optimization algorithm and its application in heterogeneous wireless sensor networks. Int. J. Distrib. Sens. Netw. 2021, 17, 15501477211018140. [Google Scholar] [CrossRef]
  34. Chakraborty, S.; Saha, A.K.; Nama, S.; Debnath, S. COVID-19 X-ray image segmentation by modified whale optimization algorithm with population reduction. Comput. Biol. Med. 2021, 139, 104984. [Google Scholar] [CrossRef] [PubMed]
  35. Wang, H.; Wu, F.; Zhang, L. Application of variational mode decomposition optimized with improved whale optimization algorithm in bearing failure diagnosis. Alex. Eng. J. 2021, 60, 4689–4699. [Google Scholar] [CrossRef]
  36. Yang, W.; Xia, K.; Fan, S.; Wang, L.; Li, T.; Zhang, J.; Feng, Y. A multi-strategy Whale optimization algorithm and its application. Eng. Appl. Artif. Intell. 2022, 108, 104558. [Google Scholar] [CrossRef]
  37. Ju, C.; Ding, H.; Hu, B. A hybrid strategy improved whale optimization algorithm for web service composition. Comput. J. 2023, 66, 662–677. [Google Scholar] [CrossRef]
  38. Liu, J.; He, Q.; Yue, Z.; Pei, Y. A Hybrid Strategy-Improved SSA-CNN-LSTM Model for Metro Passenger Flow Forecasting. Mathematics 2024, 12, 3929. [Google Scholar] [CrossRef]
  39. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  40. Kaur, G.; Arora, S. Chaotic whale optimization algorithm. J. Comput. Des. Eng. 2018, 5, 275–284. [Google Scholar] [CrossRef]
Figure 1. Travel characteristics of bus passenger flow.
Figure 1. Travel characteristics of bus passenger flow.
Mathematics 13 03204 g001
Figure 2. Correlation of influencing factors of bus passenger flow.
Figure 2. Correlation of influencing factors of bus passenger flow.
Mathematics 13 03204 g002
Figure 3. Histogram distribution of bus passenger flow and fuzzy membership functions.
Figure 3. Histogram distribution of bus passenger flow and fuzzy membership functions.
Mathematics 13 03204 g003
Figure 4. Structure of BiGRU.
Figure 4. Structure of BiGRU.
Mathematics 13 03204 g004
Figure 5. Flowchart of Bus Passenger Flow Fluctuation Trend and Spatial Prediction Based on FIG-IWOA-BiGRU.
Figure 5. Flowchart of Bus Passenger Flow Fluctuation Trend and Spatial Prediction Based on FIG-IWOA-BiGRU.
Mathematics 13 03204 g005
Figure 6. Benchmark function box line statistics.
Figure 6. Benchmark function box line statistics.
Mathematics 13 03204 g006aMathematics 13 03204 g006b
Figure 7. Average convergence curves of benchmark test functions.
Figure 7. Average convergence curves of benchmark test functions.
Mathematics 13 03204 g007aMathematics 13 03204 g007b
Figure 8. Algorithm runtime comparison.
Figure 8. Algorithm runtime comparison.
Mathematics 13 03204 g008
Figure 9. Visualization of fuzzy information granulation.
Figure 9. Visualization of fuzzy information granulation.
Mathematics 13 03204 g009
Figure 10. Normalized granulation values.
Figure 10. Normalized granulation values.
Mathematics 13 03204 g010
Figure 11. Fitness variation.
Figure 11. Fitness variation.
Mathematics 13 03204 g011
Figure 12. Correlation between actual and predicted values under different bus passenger flow fluctuation trends (LOW/R/UP).
Figure 12. Correlation between actual and predicted values under different bus passenger flow fluctuation trends (LOW/R/UP).
Mathematics 13 03204 g012
Figure 13. Impacts of model parameters on forecasting results.
Figure 13. Impacts of model parameters on forecasting results.
Mathematics 13 03204 g013
Figure 14. Error comparison analysis under different bus passenger flow fluctuation trends (LOW/R/UP).
Figure 14. Error comparison analysis under different bus passenger flow fluctuation trends (LOW/R/UP).
Mathematics 13 03204 g014
Figure 15. Average runtime of different models.
Figure 15. Average runtime of different models.
Mathematics 13 03204 g015
Table 1. Test function Information.
Table 1. Test function Information.
AlgorithmValue
IWOAParameter a decreases from 2 to 0 following a cosine function, p,r1,r2 ∈ [0, 1], spiral constant b = 1, and l ∈ [−1, 1]
WOAParameter a decreases linearly from 2 to 0, p,r1,r2 ∈ [0,1], spiral constant b = 1, and l ∈ [−1,1]
GWOParameter a decreases linearly from 2 to 0, r1,r2 ∈ [0,1]
PSOLearning factors C1 = C2 = 2, particle velocity Vmax = 2, Vmin = −2, and inertia weight Wmax = 0.8, Wmin = 0.2
GACrossover probability Pc = 0.8, mutation probability Pm = 0.2.
Table 2. Relevant values of test functions.
Table 2. Relevant values of test functions.
TypeFunctionDimensionSearch RangeTheoretical Optimal Value
Unimodal Benchmark test functions f 1 ( x ) = i = 1 n x i 2 30 [ 100 , 100 ] 0
f 2 ( x ) = i = 1 n x i + i = 1 n x i 30 [ 10 , 10 ] 0
f 3 ( x ) = i = 1 n j 1 i x j 2 30 [ 100 , 100 ] 0
f 4 ( x ) = max i x i , 1 i n 30 [ 100 , 100 ] 0
f 5 ( x ) = i = 1 n 1 100 x i + 1 x i 2 2 + x i 1 2 30 [ 30 , 30 ] 0
f 6 ( x ) = i = 1 n x i + 0.5 2 30 [ 100 , 100 ] 0
f 7 ( x ) = i = 1 n i x i 4 + r a n d o m [ 0 , 1 ) 30 [ 1.28 , 1.28 ] 0
Multimodal benchmark test functions F 8 ( x ) = i = 1 n x i sin x i 30 [ 500 , 500 ] 418.98 × D i m n
F 9 ( x ) = i = 1 n x i 2 10 cos 2 π x i + 10 30 [ 5.12 , 5.12 ] 0
F 10 ( x ) = 20 exp 0.2 1 n i = 1 n x i 2 exp 1 n i = 1 n cos 2 π x i + 20 + e 30 [ 32 , 32 ] 0
F 11 ( x ) = 1 4000 i = 1 n x i 2 i = 1 n cos x i i + 1 30 [ 600 , 600 ] 0
F 12 ( x ) = π n 10 sin ( π y 1 ) + i = 1 n 1 y i 1 2 1 + 10 sin 2 ( π y i + 1 ) + y n 1 2 + i = 1 n u ( x i , 10 , 100 , 4 ) y i = 1 + x i + 1 4 u ( x i , a , k , m ) = k ( x i a ) m x i > a 0 a < x i < a k ( x i a ) m x i < a 30 [ 50 , 50 ] 0
F 13 ( x ) = 0.1 sin 2 3 π x 1 + i = 1 n x i 1 2 1 + sin 2 3 π x i + 1 + ( x n 1 ) 2 1 + sin 2 2 π x n + i = 1 n u x i , 5 , 100 , 4 30 [ 50 , 50 ] 0
Composite multimodal benchmark test functions F 14 ( x ) = 1 500 + j = 1 25 1 j + i = 1 2 ( x i a i j ) 6 1 2 [ 65 , 65 ] 1
F 15 ( x ) = i = 1 11 a i x 1 ( b i 2 + b 1 x 2 ) b i 2 + b 1 x 3 + x 4 2 4 [ 5 , 5 ] 0.0003
F 16 ( x ) = x 2 5.1 4 π 2 x 1 2 + 5 π x 1 6 2 + 10 1 1 8 π cos x 1 + 10 2 [ 5 , 5 ] 0.398
F 17 ( x ) = 1 + ( x 1 + x 2 + 1 ) 2 ( 19 14 x 1 + 3 x 1 2 14 x 2 + 6 x 1 x 2 + 3 x 2 2 ) × 30 + ( 2 x 1 3 x 2 ) 2 × ( 18 32 x 1 + 12 x 1 2 + 48 x 2 36 x 1 x 2 + 27 x 2 2 ) 2 [ 2 , 2 ] 3
F 18 ( x ) = i = 1 4 c i exp j = 1 6 a i j ( x j p i j ) 2 6 [ 0 , 1 ] −3.32
F 19 ( x ) = i = 1 5 ( X a i ) ( X a i ) T + c i 1 4 [ 0 , 10 ] −10.1532
F 20 ( x ) = i = 1 7 ( X a i ) ( X a i ) T + c i 1 4 [ 0 , 10 ] −10.4028
F 21 ( x ) = i = 1 10 ( X a i ) ( X a i ) T + c i 1 4 [ 0 , 10 ] −10.5363
Table 3. Unimodal Benchmark test functions.
Table 3. Unimodal Benchmark test functions.
FunctionIndicatorIWOAWOAGWOPSOGA
f1Best4.3 × 10−1331.5 × 10−857.6 × 10−302.9 × 102.1 × 103
Worst4.4 × 10−1102.3 × 10−735.1 × 10−275.5 × 1021.6 × 104
Mean1.5 × 10−1111.8 × 10−741.3 × 10−273.3 × 1028.5 × 103
Standard8.1 × 10−1115.6 × 10−741.4 × 10−271.3 × 1024.0 × 103
f2Best1.0 × 10−821.8 × 10−591.7 × 10−176.92.3 × 10
Worst5.5 × 10−676.1 × 10−507.4 × 10−164.5 × 106.0 × 10
Mean1.8 × 10−682.8 × 10−511.3 × 10−161.7 × 104.0 × 10
Standard1.0 × 10−671.2 × 10−501.3 × 10−169.39.5
f3Best7.9 × 10−97.1 × 1039.3 × 10−121.8 × 1032.2 × 104
Worst4.0 × 10−37.2 × 1046.2 × 10−15.0 × 1045.2 × 104
Mean1.4 × 10−44.5 × 1043.3 × 10−21.1 × 1043.7 × 104
Standard7.3 × 10−41.4 × 1041.2 × 10−11.1 × 1047.9 × 103
f4Best2.2 × 10−312.9 × 10−21.1 × 10−74.55.1 × 10
Worst2.5 × 10−238.9 × 105.4 × 10−61.4 × 108.6 × 10
Mean1.2 × 10−245.5 × 101.1 × 10−68.76.9 × 10
Standard4.6 × 10−242.9 × 101.1 × 10−62.68.3
f5Best2.6 × 102.7 × 102.8 × 107.6 × 1022.1 × 104
Worst2.9 × 102.9 × 102.9 × 104.9 × 1046.4 × 106
Mean2.7 × 102.8 × 102.9 × 101.3 × 1041.1 × 106
Standard6.7 × 10−14.3 × 10−14.9 × 10−21.3 × 1041.7 × 106
f6Best2.2 × 10−65.6 × 10−22.4 × 10−17.4 × 103.4 × 103
Worst3.1 × 10−41.01.89.5 × 1022.4 × 104
Mean6.3 × 10−54.2 × 10−18.3 × 10−13.8 × 1021.0 × 104
Standard7.2 × 10−52.4 × 10−13.7 × 10−12.1 × 1026.1 × 103
f7Best7.3 × 10−51.9 × 10−42.2 × 10−43.3 × 10−21.5 × 10−1
Worst4.5 × 10−37.2 × 10−34.2 × 10−31.3 × 102.0
Mean1.1 × 10−32.3 × 10−31.8 × 10−31.26.8 × 10−1
Standard1.1 × 10−32.1 × 10−39.8 × 10−42.85.1 × 10−1
Table 4. Multimodal benchmark test functions.
Table 4. Multimodal benchmark test functions.
FunctionIndicatorIWOAWOAGWOPSOGA
f8Best−1.3 × 104−1.3 × 104−7.3 × 103−9.2 × 103−2.8 × 103
Worst−5.0 × 103−5.7 × 103−3.4 × 103−4.6 × 103−1.0 × 103
Average−1.2 × 104−1.0 × 104−5.9 × 103−7.1 × 103−2.1 × 103
Standard1.9 × 1032.1 × 1038.4 × 1021.1 × 1034.9 × 102
f9Best0.00.05.7 × 10−141.2 × 1021.6 × 102
Worst0.01.1 × 10−137.02.4 × 1023.0 × 102
Average0.03.8 × 10−151.11.9 × 1022.6 × 102
Standard0.02.1 × 10−141.93.5 × 103.0 × 10
f10Best4.4 × 10−164.4 × 10−167.5 × 10−143.81.9 × 10
Worst7.5 × 10−154.0 × 10−151.5 × 10−138.22.1 × 10
Average3.2 × 10−153.0 × 10−151.0 × 10−135.72.0 × 10
Standard2.7 × 10−151.6 × 10−151.7 × 10−141.03.7 × 10−1
f11Best0.00.00.01.72.1 × 10
Worst0.01.7 × 10−15.9 × 10−26.61.7 × 102
Average0.09.9 × 10−34.9 × 10−33.99.1 × 10
Standard0.03.8 × 10−21.2 × 10−21.24.6 × 10
f12Best2.3 × 10−73.7 × 10−31.9 × 10−21.19.8 × 10−1
Worst4.5 × 10−59.7 × 10−28.4 × 10−21.3 × 103.3 × 10
Average7.1 × 10−62.4 × 10−24.3 × 10−25.81.1 × 10
Standard8.8 × 10−61.8 × 10−21.8 × 10−22.96.8
f13Best1.1 × 10−13.2 × 10−15.0 × 10−56.81.3 × 10
Worst1.3 × 101.22.64.4 × 103.8 × 106
Average5.8 × 10−17.4 × 10−11.11.9 × 102.3 × 105
Standard3.1 × 10−12.5 × 10−11.09.78.1 × 105
Table 5. Composite multimodal benchmark test functions.
Table 5. Composite multimodal benchmark test functions.
FunctionIndicatorIWOAWOAGWOPSOGA
f14Best1.01.01.01.01.0
Worst1.01.1 × 101.3 × 101.3 × 101.0
Average1.03.03.09.11.0
Standard1.2 × 10−102.93.05.02.8 × 10−10
f15Best3.3 × 10−43.1 × 10−48.0 × 10−49.8 × 10−43.1 × 10−4
Worst2.2 × 10−32.0 × 10−22.0 × 10−22.4 × 10−22.3 × 10−2
Average6.5 × 10−43.7 × 10−36.3 × 10−37.5 × 10−35.5 × 10−3
Standard3.7 × 10−47.6 × 10−37.6 × 10−37.4 × 10−38.9 × 10−3
f16Best4.0 × 10−14.0 × 10−14.0 × 10−14.0 × 10−15.9 × 10
Worst4.0 × 10−14.0 × 10−14.0 × 10−14.0 × 10−18.1 × 10
Average4.0 × 10−14.0 × 10−14.0 × 10−14.0 × 10−16.9 × 10
Standard8.7 × 10−63.3 × 10−57.0 × 10−51.6 × 10−56.5
f17Best−3.9−3.9−3.9−3.1−3.7
Worst−3.9−3.8−3.9−3.1−2.5
Average−3.9−3.9−3.9−3.1−3.1
Standard2.8 × 10−31.5 × 10−21.7 × 10−32.7 × 10−53.6 × 10−1
f18Best−3.3−3.3−3.3−3.2−2.7
Worst−3.1−2.4−2.6−1.1−6.1 × 10−1
Average−3.3−3.2−3.1−2.6−1.6
Standard7.1 × 10−21.9 × 10−11.8 × 10−17.9 × 10−15.3 × 10−1
f19Best−1.0 × 10−1.0 × 10−1.0 × 10−1.0 × 10−3.8
Worst−5.1−2.6−2.6−5.1−9.6 × 10−1
Average−1.0 × 10−7.3−8.5−8.2−2.1
Standard9.2 × 10−12.92.62.57.8 × 10−1
f20Best−1.0 × 10−1.0 × 10−1.0 × 10−1.0 × 10−3.4
Worst−5.1−1.8−2.8−3.7 × 10-1−1.0
Average−1.0 × 10−7.8−9.4−7.4−2.1
Standard9.7 × 10−13.12.23.46.2 × 10−1
f21Best−1.1 × 10−1.1 × 10−1.1 × 10−1.1 × 10−3.8
Worst−9.9−2.4−2.4 × 10−5.1−1.2
Average−1.0 × 10−7.1−1.0 × 10−8.4−2.1
Standard1.5 × 10−13.22.12.76.5 × 10−1
Table 6. Wilcoxon rank-sum test p-value.
Table 6. Wilcoxon rank-sum test p-value.
Text FunctionP1P2P3P4
f19.5 × 10−382.5 × 10−171.6 × 10−288.6 × 10−83
f22.1 × 10−113.2 × 10−136.9 × 10−562.5 × 10−62
f31.3 × 10−831.3 × 10−839.3 × 10−741.2 × 10−83
f46.4 × 10−295.4 × 10−691.3 × 10−124.8 × 10−30
f52.4 × 10−821.3 × 10−832.6 × 10−711.2 × 10−82
f61.8 × 10−541.9 × 10−531.1 × 10−271.7 × 10−82
f74.7 × 10−741.1 × 10−771.5 × 10−81.3 × 10−7
f85.9 × 10−511.3 × 10−831.3 × 10−791.3 × 10−83
f93.8 × 10−622.1 × 10−313.3 × 10−369.4 × 10−48
f103.5 × 10−611.8 × 10−111.7 × 10−834.9 × 10−84
f113.8 × 10−251.8 × 10−253.6 × 10−305.8 × 10−83
f128.8 × 10−561.9 × 10−548.8 × 10−231.8 × 10−17
f131.9 × 10−191.3 × 10−835.9 × 10−671.7 × 10−81
f141.6 × 10−841.4 × 10−831.3 × 10−832.6 × 10−61
f156.1 × 10−709.3 × 10−751.2 × 10−811.7 × 10−82
f161.3 × 10−831.3 × 10−831.3 × 10−831.8 × 10−83
f171.2 × 10−642.5 × 10−211.6 × 10−674.7 × 10−80
f182.5 × 10−821.3 × 10−831.1 × 10−831.5 × 10−79
f194.3 × 10−114.9 × 10−91.3 × 10−751.4 × 10−71
f206.4 × 10−125.9 × 10−361.6 × 10−801.6 × 10−63
f213.7 × 10−831.3 × 10−832.3 × 10−831.9 × 10−68
Table 7. Algorithm MAE ranking.
Table 7. Algorithm MAE ranking.
AlgorithmMAERank
IWOA2.13 × 101
WOA1.78 × 1022
PSO1.40 × 1033
GWO4.10 × 1034
GA4.85 × 1035
Table 8. p-values of the Wilcoxon rank-sum test in ablation experiments.
Table 8. p-values of the Wilcoxon rank-sum test in ablation experiments.
Text FunctionPW1PW2PW3PW4
f15.2 × 10−13Na1.6 × 10−641.5 × 10−65
f21.6 × 10−643.3 × 10−502.1 × 10−646.3 × 10−65
f31.7 × 10−811.9 × 10−641.5 × 10−761.3 × 10−81
f49.5 × 10−66Na6.1 × 10−531.7 × 10−64
f52.7 × 10−753.1 × 10−752.7 × 10−753.3 × 10−75
f62.1 × 10−522.7 × 10−511.1 × 10−282.4 × 10−81
f71.1 × 10−711.9 × 10−75Na7.1 × 10−81
f84.5 × 10−491.7 × 10−812.2 × 10−791.6 × 10−81
f93.8 × 10−602.6 × 10−292.1 × 10−379.3 × 10−49
f103.1 × 10−602.8 × 10−811.7 × 10−816.5 × 10−82
f114.3 × 10−232.1 × 10−233.1 × 10−311.8 × 10−81
f129.8 × 10−542.2 × 10−525.8 × 10−204.8 × 10−18
f134.2 × 10−201.6 × 10−811.8 × 10−691.6 × 10−81
f141.9 × 10−821.8 × 10−811.6 × 10−811.4 × 10−63
f153.8 × 10−701.3 × 10−771.6 × 10−811.8 × 10−81
f161.7 × 10−811.6 × 10−811.3 × 10−811.2 × 10−81
f171.3 × 10−632.1 × 10−217.3 × 10−701.6 × 10−81
f181.6 × 10−711.8 × 10−511.3 × 10−811.5 × 10−61
f194.5 × 10−81.5 × 10−611.1 × 10−811.6 × 10−51
f203.7 × 10−342.2 × 10−611.6 × 10−811.5 × 10−81
f214.9 × 10−811.7 × 10−811.3 × 10−811.4 × 10−81
Note: “Na” denotes not applicable, as this method is not applicable to the current sample.
Table 9. Prediction results of IWOA-BiGRU with fuzzy granulated input windows.
Table 9. Prediction results of IWOA-BiGRU with fuzzy granulated input windows.
PeriodLOWRUP
MAERMSEMAPEMAERMSEMAPEMAERMSEMAPE
3d2983336010.03256365211.04729504511.6
5d288332489.73068343510.34562486511.2
7d237625557.8280429418.1356537308.5
14d265429158.9287632309.63926411510.1
Table 10. Comparison of bus passenger flow forecast results.
Table 10. Comparison of bus passenger flow forecast results.
CategoryLOWRUP
MAERMSEMAPEMAERMSEMAPEMAERMSEMAPE
IWOA-BiGRU237625557.8280429418.1356537308.5
WOA-BiGRU271030039.1329637439.64190453710.2
Transformer291732409.83536395510.04502482611.0
PSO-LSSVM3123348110.53925433311.15119528411.9
GA-BP3229364510.94089434611.65330555812.4
BiGRU3349371711.34155440011.85375560212.5
Table 11. Paired t-test results of mean MAPE for each model.
Table 11. Paired t-test results of mean MAPE for each model.
CategoryPaired DifferencesTDfSig. (2-Tailed)
MeanStd. DeviationStd. Error Mean95% Confidence Interval Lower Bound95% Confidence Interval Lower Bound
T1−1.4903.7850.892−3.3720.392−1.671170.046
T2−2.1224.3471.025−4.2830.040−2.071170.032
T3−3.0293.4780.820−4.758−1.299−3.694170.002
T4−3.4963.4050.803−5.189−1.80−4.356170
T5−3.7303.2860.775−5.365−2.096−4.816170
Table 12. Fluctuation trend and spatial prediction of bus passenger flow.
Table 12. Fluctuation trend and spatial prediction of bus passenger flow.
CategoryTime SeriesFluctuation Trend and Space
Date18192021222324Actual variation range (fuzzy example description)
Actual Passenger Flow38,63840,58642,85532,05331,81436,54132,650[Low, R, UP] = [31,527, 35,625, 43,822]
Date25262728293031Predicted variation range (fuzzy example description)
Actual Passenger Flow34,62039,53946,91248,84650,64636,71241,715[Low, R, UP] = [34,539, 39,447, 51,224]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, J.; He, Q.; Lu, X.; Xiao, S.; Wang, N. A FIG-IWOA-BiGRU Model for Bus Passenger Flow Fluctuation Trend and Spatial Prediction. Mathematics 2025, 13, 3204. https://doi.org/10.3390/math13193204

AMA Style

Zhang J, He Q, Lu X, Xiao S, Wang N. A FIG-IWOA-BiGRU Model for Bus Passenger Flow Fluctuation Trend and Spatial Prediction. Mathematics. 2025; 13(19):3204. https://doi.org/10.3390/math13193204

Chicago/Turabian Style

Zhang, Jie, Qingling He, Xiaojuan Lu, Shungen Xiao, and Ning Wang. 2025. "A FIG-IWOA-BiGRU Model for Bus Passenger Flow Fluctuation Trend and Spatial Prediction" Mathematics 13, no. 19: 3204. https://doi.org/10.3390/math13193204

APA Style

Zhang, J., He, Q., Lu, X., Xiao, S., & Wang, N. (2025). A FIG-IWOA-BiGRU Model for Bus Passenger Flow Fluctuation Trend and Spatial Prediction. Mathematics, 13(19), 3204. https://doi.org/10.3390/math13193204

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop