Integrating Smart Card Data and Environmental Factors in Public Transportation Management: A Machine Learning-Based Framework for Mashhad
Abstract
Smart cities have emerged as a solution to urban challenges such as population growth, air pollution, traffic congestion, and resource depletion. A key component of these cities is intelligent transportation systems, which leverage advanced technologies and big data to enhance the efficiency, sustainability, and accessibility of public transport. This study investigates the integration of Smart Card Data (SCD) and environmental factors such as weather, air quality, events, and land use in public transportation management in Mashhad, Iran. By applying data mining and machine learning techniques, we develop a data-driven framework capable of identifying travel patterns, predicting demand, and optimizing operational planning. The findings demonstrate that combining SCD with environmental variables significantly improves prediction accuracy, enabling more data-informed decision-making in transport management and urban planning.
Keywords:
Estimation of origin-destination, Trip chain model, Smart card data, Predicting public transport trip demand, Spatial and temporal variablesReferences
- [1] United Nations Fund for Population Activities. (2021). Urbanization. https://www.unfpa.org/urbanization
- [2] Nassi, C. D., & de Carvalho da Costa, F. C. (2012). Use of the analytic hierarchy process to evaluate transit fare system. Research in transportation economics, 36(1), 50–62. https://doi.org/10.1016/j.retrec.2012.03.009
- [3] Wang, Y., de Almeida Correia, G. H., de Romph, E., & Timmermans, H. J. P. (2017). Using metro smart card data to model location choice of after-work activities: An application to Shanghai. Journal of transport geography, 63, 40–47. https://doi.org/10.1016/j.jtrangeo.2017.06.010
- [4] Anda, C., Erath, A., & Fourie, P. J. (2017). Transport modelling in the age of big data. International journal of urban sciences, 21(sup1), 19–42. https://doi.org/10.1080/12265934.2017.1281150
- [5] Zhao, Z., Koutsopoulos, H. N., & Zhao, J. (2018). Individual mobility prediction using transit smart card data. Transportation research part c: Emerging technologies, 89, 19–34. https://doi.org/10.1016/j.trc.2018.01.022
- [6] El Mahrsi, M. K., Come, E., Baro, J., & Oukhellou, L. (2014). Understanding passenger patterns in public transit through smart card and socioeconomic data: A case study in rennes, france. ACM sigkdd workshop on urban computing. France: Association for Computing Machinery (ACM). https://hal.science/hal-01053794
- [7] Trépanier, M., & Yamamoto, T. (2015). Workshop synthesis: System based passive data streams systems; Smart Cards, Phone Data, GPS. Transportation research procedia, 11, 340–349. https://doi.org/10.1016/j.trpro.2015.12.029
- [8] Ma, X., Liu, C., Wen, H., Wang, Y., & Wu, Y. J. (2017). Understanding commuting patterns using transit smart card data. Journal of transport geography, 58, 135–145. https://doi.org/10.1016/j.jtrangeo.2016.12.001
- [9] Sportiello, L. (2019). Internet of smart cards: A pocket attacks scenario. International journal of critical infrastructure protection, 26, 100302. https://doi.org/10.1016/j.ijcip.2019.05.005
- [10] Owais, M. (2025). How to incorporate machine learning and microsimulation tools in travel demand forecasting in multi-modal networks. Expert systems with applications, 262, 125563. https://doi.org/10.1016/j.eswa.2024.125563
- [11] Cools, M., Moons, E., & Wets, G. (2007). Investigating effect of holidays on daily traffic counts: Time series approach. Transportation research record, 2019(1), 22–31. https://doi.org/10.3141/2019-04
- [12] Sarkar, P. P., & Mallikarjuna, C. (2013). Effect of land use on travel behaviour: A case study of Agartala City. Procedia - social and behavioral sciences, 104, 533–542. https://doi.org/10.1016/j.sbspro.2013.11.147
- [13] Hu, N., Legara, E. F., Lee, K. K., Hung, G. G., & Monterola, C. (2016). Impacts of land use and amenities on public transport use, urban planning and design. Land use policy, 57, 356–367. https://doi.org/10.1016/j.landusepol.2016.06.004
- [14] Kim, M. K., Kim, S., & Sohn, H. G. (2018). Relationship between spatio-temporal travel patterns derived from smart-card data and local environmental characteristics of Seoul, Korea. Sustainability, 10(3), 1–18. https://doi.org/10.3390/su10030787
- [15] Cai, Z., Li, T., Su, X., Guo, L., & Ding, Z. (2020). Research on analysis method of characteristics generation of urban rail transit. IEEE transactions on intelligent transportation systems, 21(9), 3608–3620. https://doi.org/10.1109/TITS.2019.2929619
- [16] Liyanage, S., Dia, H., Abduljabbar, R., & Bagloee, S. A. (2019). Flexible mobility on-demand: An environmental scan. Sustainability, 11(5), 1–39. https://doi.org/10.3390/su11051262
- [17] Liyanage, S., & Dia, H. (2020). An agent-based simulation approach for evaluating the performance of on-demand bus services. Sustainability, 12(10), 1–20. https://doi.org/10.3390/su12104117
- [18] Tang, J., Wang, X., Zong, F., & Hu, Z. (2020). Uncovering spatio-temporal travel patterns using a tensor-based model from metro smart card data in Shenzhen, China. Sustainability, 12(4), 1–16. https://doi.org/10.3390/su12041475
- [19] Lin, P., Weng, J., Alivanistos, D., Ma, S., & Yin, B. (2020). Identifying and segmenting commuting behavior patterns based on smart card data and travel survey data. Sustainability, 12(12), 1–18. https://doi.org/10.3390/su12125010
- [20] Wu, W., Xia, Y., & Jin, W. (2021). Predicting bus passenger flow and prioritizing influential factors using multi-source data: Scaled stacking gradient boosting decision trees. IEEE transactions on intelligent transportation systems, 22(4), 2510–2523. https://doi.org/10.1109/TITS.2020.3035647
- [21] Liyanage, S., Abduljabbar, R., Dia, H., & Tsai, P. W. (2022). AI-based neural network models for bus passenger demand forecasting using smart card data. Journal of urban management, 11(3), 365–380. https://doi.org/10.1016/j.jum.2022.05.002
- [22] Mitra, A., Jain, A., Kishore, A., & Kumar, P. (2022). A comparative study of demand forecasting models for a multi-channel retail company: A novel hybrid machine learning approach. Operations research forum, 3(4), 58. https://doi.org/10.1007/s43069-022-00166-4
- [23] Demographia. (2023). Demographia world urban areas: 19th annual edition. http://www.demographia.com/db-worldua.pdf
- [24] Ho, T. K. (1998). The random subspace method for constructing decision forests. IEEE transactions on pattern analysis and machine intelligence, 20(8), 832–844. https://doi.org/10.1109/34.709601
- [25] Ho, T. K. (1995). Random decision forests. Proceedings of 3rd international conference on document analysis and recognition (pp. 278–282). IEEE. https://doi.org/10.1109/ICDAR.1995.598994
- [26] Zhou, Y., Thill, J. C., Xu, Y., & Fang, Z. (2021). Variability in individual home-work activity patterns. Journal of transport geography, 90, 102901. https://doi.org/10.1016/j.jtrangeo.2020.102901
- [27] Radfar, S., Koosha, H., Gholami, A., & Amindoust, A. (2025). Improved public transport OD matrix estimation using an enhanced trip chain model with smart card data. International journal of intelligent transportation systems research, 23(3), 1341–1356. https://doi.org/10.1007/s13177-025-00513-9
- [28] Zhang, X. P. (1997). Adaptive-network-based fuzzy inference system for short term load forecasting. IFAC proceedings volumes, 30(17), 533–539. https://doi.org/10.1016/S1474-6670(17)46460-3
- [29] Chopra, S., Dhiman, G., Sharma, A., Shabaz, M., Shukla, P., & Arora, M. (2021). Taxonomy of adaptive neuro-fuzzy inference system in modern engineering sciences. Computational intelligence and neuroscience, 2021(1), 6455592. https://doi.org/10.1155/2021/6455592
- [30] Jang, J. S. R. (1993). ANFIS: Adaptive-network-based fuzzy inference system. IEEE transactions on systems, man, and cybernetics, 23(3), 665–685. https://doi.org/10.1109/21.256541
- [31] Öztayşi, B., & Bolturk, E. (2014). Fuzzy methods for demand forecasting in supply chain management. In Supply chain management under fuzziness: Recent developments and techniques (pp. 243–268). Berlin, Heidelberg: Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-642-53939-8_11
- [32] Razavi, S. A., Najafabadi, T. A., & Mahmoodian, A. (2018). Remaining useful life estimation using anfis algorithm: A data-driven approcah for prognostics. 2018 prognostics and system health management conference (PHM-chongqing) (pp. 522–526). IEEE. https://doi.org/10.1109/PHM-Chongqing.2018.00095
- [33] Hassanniakalager, A., Sermpinis, G., Stasinakis, C., & Verousis, T. (2020). A conditional fuzzy inference approach in forecasting. European journal of operational research, 283(1), 196–216. https://doi.org/10.1016/j.ejor.2019.11.006
- [34] Chanal, D., Yousfi Steiner, N., Petrone, R., Chamagne, D., & Péra, M. C. (2022). Online diagnosis of PEM fuel cell by fuzzy C-means clustering. In Encyclopedia of energy storage (pp. 359–393). Oxford: Elsevier. https://doi.org/10.1016/B978-0-12-819723-3.00099-8
- [35] Greff, K., Srivastava, R. K., Koutník, J., Steunebrink, B. R., & Schmidhuber, J. (2016). LSTM: A search space odyssey. IEEE transactions on neural networks and learning systems, 28(10), 2222–2232. https://doi.org/10.1109/TNNLS.2016.2582924
- [36] Aggarwal, C. C. (2018). Neural networks and deep learning. Springer. https://doi.org/10.1007/978-3-319-94463-0
- [37] Abbasimehr, H., Shabani, M., & Yousefi, M. (2020). An optimized model using LSTM network for demand forecasting. Computers & industrial engineering, 143, 106435. https://doi.org/10.1016/j.cie.2020.106435
- [38] Willmott, C. J. (1981). On the validation of models. Physical geography, 2(2), 184–194. https://doi.org/10.1080/02723646.1981.10642213
- [39] James, G., Witten, D., Hastie, T., & Tibshirani, R. (2013). An introduction to statistical learning: With applications in R. Springer. https://doi.org/10.1007/978-1-4614-7138-7
- [40] Sandeep, S., Abinash, S., Siddhartha, P., & K., G. D. (2022). Prediction of bed-load sediment using newly developed support-vector machine techniques. Journal of irrigation and drainage engineering, 148(10), 4022034. https://doi.org/10.1061/(ASCE)IR.1943-4774.0001689
- [41] Sahoo, A., Parida, S. S., Samantaray, S., & Satapathy, D. P. (2024). Daily flow discharge prediction using integrated methodology based on LSTM models: Case study in Brahmani-Baitarani basin. HydroResearch, 7, 272–284. https://doi.org/10.1016/j.hydres.2024.04.006
- [42] Samantaray, S., Sahoo, A., & Baliarsingh, F. (2024). Groundwater level prediction using an improved SVR model integrated with hybrid particle swarm optimization and firefly algorithm. Cleaner water, 1, 100003. https://doi.org/10.1016/j.clwat.2024.100003
- [43] McQueen, J. B. (1967). Some methods of classification and analysis of multivariate observations. Proceedings of the fifth berkeley symposium on mathematical statistics and probability (pp. 281–297). University of California press. https://cir.nii.ac.jp/crid/1571135649659368064
- [44] Cao, F., Liang, J., & Jiang, G. (2009). An initialization method for the K-Means algorithm using neighborhood model. Computers & mathematics with applications, 58(3), 474–483. https://doi.org/10.1016/j.camwa.2009.04.017
- [45] Eltibi, M. F., & Ashour, W. M. (2011). Initializing KMeans clustering algorithm using statistical information. International journal of computer applications, 29(7), 51–55. https://doi.org/10.5120/3573-4930
- [46] Jin, X., & Han, J. (2017). Mean shift. In Encyclopedia of machine learning and data mining (pp. 806–808). Boston, MA: Springer US. https://doi.org/10.1007/978-1-4899-7687-1_532
- [47] Rousseeuw, P. J. (1987). Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of computational and applied mathematics, 20, 53–65. https://doi.org/10.1016/0377-0427(87)90125-7
- [48] Shahapure, K. R., & Nicholas, C. (2020). Cluster quality analysis using silhouette score. 2020 IEEE 7th international conference on data science and advanced analytics (DSAA) (pp. 747–748). IEEE. https://doi.org/10.1109/DSAA49011.2020.00096
- [49] Davies, D. L., & Bouldin, D. W. (1979). A cluster separation measure. IEEE transactions on pattern analysis and machine intelligence, 1(2), 224–227. https://doi.org/10.1109/TPAMI.1979.4766909
- [50] Ros, F., Riad, R., & Guillaume, S. (2023). PDBI: A partitioning Davies-Bouldin index for clustering evaluation. Neurocomputing, 528, 178–199. https://doi.org/10.1016/j.neucom.2023.01.043
- [51] Cheng, Z., Trépanier, M., & Sun, L. (2021). Probabilistic model for destination inference and travel pattern mining from smart card data. Transportation, 48(4), 2035–2053. https://doi.org/10.1007/s11116-020-10120-0
- [52] Alsger, A., Assemi, B., Mesbah, M., & Ferreira, L. (2016). Validating and improving public transport origin–destination estimation algorithm using smart card fare data. Transportation research part c: Emerging technologies, 68, 490–506. https://doi.org/10.1016/j.trc.2016.05.004
- [53] He, L., & Trépanier, M. (2015). Estimating the destination of unlinked trips in transit smart card fare data. Transportation research record, 2535(1), 97–104. https://doi.org/10.3141/2535-11
- [54] Zhang, Y., & Xu, D. (2022). The bus is arriving: Population growth and public transportation ridership in rural America. Journal of rural studies, 95, 467–474. https://doi.org/10.1016/j.jrurstud.2022.09.018
- [55] Guang, Z., Yang, J., & Li, J. (2018). Forecast of short-term passenger flow of urban railway stations based on seasonal arima model. Proceedings of the 3rd international conference on electrical and information technologies for rail transportation (EITRT) 2017 (pp. 759–767). Singapore: Springer Singapore. https://doi.org/10.1007/978-981-10-7989-4_77%0A%0A
- [56] Wang, B., & Zheng, S. (2020). Air pollution lowers travel demand in a consumer city. Transportation research part d: Transport and environment, 89, 102616. https://doi.org/10.1016/j.trd.2020.102616
- [57] Zhang, J., Chen, F., Cui, Z., Guo, Y., & Zhu, Y. (2021). Deep learning architecture for short-term passenger flow forecasting in urban rail transit. IEEE transactions on intelligent transportation systems, 22(11), 7004–7014. https://doi.org/10.1109/TITS.2020.3000761
- [58] Cools, M., Moons, E., & Wets, G. (2010). Assessing the impact of public holidays on travel time expenditure: Differentiation by trip motive. Transportation research record, 2157(1), 29–37. https://doi.org/10.3141/2157-04
- [59] Wang, B., Shao, C., & Ji, X. (2017). Influencing mechanism analysis of holiday activity–travel patterns on transportation energy consumption and emissions in China. Energies, 10(7), 1–20. https://doi.org/10.3390/en10070897
- [60] Jin, W., Li, P., Wu, W., & Wei, L. (2019). Short-term public transportation passenger flow forecasting method based on multi-source data and shepard interpolating prediction method. Man-machine-environment system engineering (pp. 281–294). Singapore: Springer Singapore. https://doi.org/10.1007/978-981-13-2481-9_33%0A%0A
- [61] Danfeng, Y., & Jing, W. (2019). Subway passenger flow forecasting with multi-station and external factors. IEEE access, 7, 57415–57423. https://doi.org/10.1109/ACCESS.2019.2914239
- [62] Yao, E., Hong, J., Pan, L., Li, B., Yang, Y., & Guo, D. (2021). Forecasting passenger flow distribution on holidays for urban rail transit based on destination choice behavior Analysis. Journal of advanced transportation, 2021(1), 9922660. https://doi.org/10.1155/2021/9922660
- [63] Zhou, Y., Qian, C., Xiao, H., Xin, J., Wei, Z., & Feng, Q. (2019). Coupling research on land use and travel behaviors along the tram based on accessibility measurement—Taking nanjing chilin tram line 1 as an example. Sustainability, 11(7), 1–33. https://doi.org/10.3390/su11072034
- [64] Liu, X., Wu, J., Huang, J., Zhang, J., Chen, B. Y., & Chen, A. (2021). Spatial-interaction network analysis of built environmental influence on daily public transport demand. Journal of transport geography, 92, 102991. https://doi.org/10.1016/j.jtrangeo.2021.102991
- [65] Cheng, J., Liu, G., Gao, S., Raza, A., Li, J., & Juan, W. (2024). Short-term passenger flow prediction in urban rail transit based on points of interest. IEEE access, 12, 95196–95208. https://ieeexplore.ieee.org/document/10591968
- [66] Gao, Q. L., Li, Q. Q., Yue, Y., Zhuang, Y., Chen, Z. P., & Kong, H. (2018). Exploring changes in the spatial distribution of the low-to-moderate income group using transit smart card data. Computers, environment and urban systems, 72, 68–77. https://doi.org/10.1016/j.compenvurbsys.2018.02.006
- [67] Bautista-Hernández, D. (2020). Urban structure and its influence on trip chaining complexity in the Mexico City Metropolitan Area. Urban, planning and transport research, 8(1), 71–97. https://doi.org/10.1080/21650020.2019.1708784
- [68] Briand, A. S., Côme, E., El Mahrsi, M. K., & Oukhellou, L. (2016). A mixture model clustering approach for temporal passenger pattern characterization in public transport. International journal of data science and analytics, 1(1), 37–50. https://doi.org/10.1007/s41060-015-0002-x
- [69] Qi, G., Huang, A., Guan, W., & Fan, L. (2019). Analysis and prediction of regional mobility patterns of bus travellers using smart card data and points of interest data. IEEE transactions on intelligent transportation systems, 20(4), 1197–1214. https://doi.org/10.1109/TITS.2018.2840122
- [70] Hofmann, M., & O’Mahony, M. (2005). The impact of adverse weather conditions on urban bus performance measures. Proceedings. 2005 IEEE intelligent transportation systems, 2005. (pp. 84–89). IEEE. https://doi.org/10.1109/ITSC.2005.1520087
- [71] Zhou, M., Wang, D., Li, Q., Yue, Y., Tu, W., & Cao, R. (2017). Impacts of weather on public transport ridership: Results from mining data from different sources. Transportation research part c: Emerging technologies, 75, 17–29. https://doi.org/10.1016/j.trc.2016.12.001
- [72] Gössling, S., Neger, C., Steiger, R., & Bell, R. (2023). Weather, climate change, and transport: A review. Natural hazards, 118(2), 1341–1360. https://doi.org/10.1007/s11069-023-06054-2