journal article·2023-07-24Open access

Applied Techniques for Twitter Data Retrieval in an Urban Area: Insight for Trip Production Modeling

Rempu Sora Rayat, Adenantera Dwicaksono, Heru P. H. Putro, Puspita Dirgahayani

Applied Sciences· Volume 13· Issue 14

Abstract

This paper presents methods of retrieving Twitter data, both streaming and archive data, using Application Programming Interfaces. Twitter data are a kind of Location Based Social Network Data that, nowadays, is emerging in transportation demand modeling. Data regarding the locations of trip makers represent the most crucial step in the modeling. No research article has specifically addressed this topic with an up-to-date method; hence, this paper aims to refresh methods for retrieving Twitter data that can capture relevant data. The method is unique as the data are gathered for trip production modeling in zonal urban areas. Python script programs were built for both data retrieving methods. The programs were run for streaming data from May 2020 to April 2021 and archive data from 2018. The data were collected within Serang City, which is the nearest provincial city to Jakarta, the capital of Indonesia. In order to gather streaming data with no loss, the program has been run with referencing on sub-district office coordinate locations. Retrieving the intended data produces 1,090,623 documents, of which 54,103 are geotagged data from 2495 users. The study concluded that streaming data produce more geolocation data, while historical data capture more Twitter user data with relatively very little geotagged data and greater textual data than the period covered in this research. Thus, both techniques of retrieving Twitter data for urban personal trip modeling are necessary. Obtaining sufficient data collection using data streaming retrieval resulted in the most effective data preprocessing. This research contributes to Location Based Social Network data mining knowledge, both geolocation and text mining, and is useful for insight into developing trip production modeling in passenger transportation demand modeling using Machine Learning. This study also aims to provide useful methods for transportation system researchers and data scientists in utilizing Location Based Social Network data.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Human Mobility and Location-Based Analysis · Transportation Planning and Optimization · Traffic Prediction and Management Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Architecture, Planning, and Policy Development, Bandung Institute of Technology, Bandung 40116, Indonesia

Funding

Bandung Institute of Technology

References (38)

Show source-provided references
1. Do different datasets tell the same story about urban mobility—A comparative study of public transit and taxi usage10.1016/j.jtrangeo.2018.05.002 ↗
2. Digital Footprints: Opportunities and Challenges for Online Social Research10.1146/annurev-soc-071913-043145 ↗
3. Scikit-mobility: A Python Library for the Analysis, Generation, and Risk Assessment of Mobility Data10.18637/jss.v103.i04 ↗
4. Big data and understanding change in the context of planning transport systems10.1016/j.jtrangeo.2017.11.004 ↗
5. Identifying tourists and analyzing spatial patterns of their destinations from location-based social media data10.1016/j.trc.2018.09.006 ↗
6. The usage of location based big data and trip planning services for the estimation of a long-distance travel demand model. Predicting the impacts of a new high speed rail corridor10.1016/j.retrec.2018.06.004 ↗
7. Yang, F., Li, L., Ding, F., Tan, H., and Ran, B. (2020). A data-driven approach to trip generation modeling for urban residents and non-local travelers. Sustainability, 12.10.3390/su12187688 ↗
8. Hu, W. (2019). Dynamic Origin Destination Estimation with Location-Based Social Networking Data: Exploring Urban Travel Demand Sensor, The State University of New Jersey.
9. Destination choice modeling using location-based social media data10.1016/j.jocm.2019.03.002 ↗
10. De Ortúzar, J.D., and Willumsen, L.G. (2011). Modelling Transport, John Wiley & Sons. [4th ed.].10.1002/9781119993308 ↗
11. Is accessibility relevant in trip generation? Modelling the interaction between trip generation and accessibility taking into account spatial effects10.1007/s11116-016-9715-5 ↗
12. The Alternative Trip Generation Model for Flat/Apartment/Condominium and Low Cost Housing Subcategories10.4028/www.scientific.net/AMM.802.369 ↗
13. Analysis of trip generation rates in residential commuting based on mobile phone signaling data10.5198/jtlu.2019.1431 ↗
14. Operationalizing a spatial differentiation of trip generation rates using proxy indicators of accessibility10.1016/j.tbs.2017.07.002 ↗
15. Comparative analysis of trip generation models: Results using home-based work trips in the Seoul metropolitan area10.1179/1942787514Y.0000000011 ↗
16. Development of Trip Generation Model Using Activity Based Approach
17. A Strategic Tour Generation Modeling within a Dynamic Land-Use and Transport Framework: A Case Study of Bogota, Colombia10.1016/j.trpro.2017.05.292 ↗
18. Forecasting current and next trip purpose with social media data and Google Places10.1016/j.trc.2018.10.017 ↗
19. Geo-tagged social media data as a proxy for urban mobility10.1007/978-3-319-60747-4_4 ↗
20. Trip distribution modeling with Twitter data10.1016/j.compenvurbsys.2019.101354 ↗
21. Twitter Geolocation: A Hybrid Approach10.1145/3178112 ↗
22. MacEachren, A.M., Jaiswal, A., Robinson, A.C., Pezanowski, S., Savelyev, A., Mitra, P., Zhang, X., and Blanford, J. (2011, January 23–28). SensePlace2: GeoTwitter Analytics Support for Situational Awareness. Proceedings of the 2011 IEEE Conference on Visual Analytics Science and Technology (VAST), Providence, RI, USA.10.1109/VAST.2011.6102456 ↗
23. Burkhalter, J.N., and Wood, N.T. (2015). Maximizing Commerce and Marketing Strategies through Micro-Blogging, ANU College of Business and Economics.10.4018/978-1-4666-8408-9 ↗
24. Using Twitter for Demographic and Social Science Research: Tools for Data Collection and Processing
25. De, S., Zhou, Y., Abad, I.L., and Moessner, K. (2017). Cyber–Physical–Social Frameworks for Urban Big Data Systems: A Survey. Appl. Sci., 7.10.3390/app7101017 ↗
26. Russell, M.A. (2017). Mining the Social Web, O’Reilly. [2nd ed.].
27. Sustainability analysis on Urban Mobility based on Social Media content10.1016/j.trpro.2017.05.059 ↗
28. A framework for massive twitter data extraction and analysis
29. Al Bashaireh, R., Zohdy, M., and Sabeeh, V. (2020, January 15–17). Twitter Data Collection and Extraction: A Method and a New Dataset, the UTD-MI. Proceedings of the 2020 the 4th International Conference on Information System and Data Mining, Hawaii, HI, USA.10.1145/3404663.3404686 ↗
30. Characterizing twitter user topics and communication network dynamics of the ‘Liberate’ movement during COVID-19 using unsupervised machine learning and social network analysis10.1016/j.osnem.2020.100114 ↗
31. Analysis of Twitter messages using big data tools to evaluate and locate the activity in the city of Valencia (Spain)10.1016/j.cities.2018.12.014 ↗
32. A survey of Twitter research: Data model, graph structure, sentiment analysis and attacks10.1016/j.eswa.2020.114006 ↗
33. A framework to simplify pre-processing location-based social media big data for sustainable urban planning and management10.1016/j.cities.2020.102986 ↗
34. TransBigData: A Python package for transportation spatio-temporal big data processing, analysis and visualization10.21105/joss.04021 ↗
35. Unsupervised Learning of Parsimonious General-Purpose Embeddings for User and Location Modeling
36. Locality-adapted kernel densities of term co-occurrences for location prediction of tweets10.1016/j.ipm.2019.02.013 ↗
37. The promises of big data and small data for travel behavior (aka human mobility) analysis10.1016/j.trc.2016.04.005 ↗
38. Spatiotemporal model for assessing the stability of urban human convergence and divergence patterns10.1080/13658816.2017.1346256 ↗