This paper presents a framework for effective last-mile delivery in underdeveloped megacities by combining social media, machine learning, and reinforcement learning. Leveraging a Graph Convolutional Networks and a Long Short-Term Memory model for traffic prediction, the framework incorporates multimodal data sources, such as social media sentiment analysis, to provide real-time insights into traffic dynamics. By framing the delivery problem as a Markov Decision Process, reinforcement learning dynamically adapts routing decisions to obtain delivery efficiency, reduce delays, and minimize fuel consumption. A case study in Bogotá demonstrates the framework’s effectiveness in mitigating urban traffic challenges. This work highlights the transformative potential of integrating adaptive learning technologies to address urban logistics’ environmental, economic, and operational complexities. Future research explores advanced methodologies, including multi-agent systems and transformer-based architectures, to further enhance scalability and adaptability in dynamic urban environments.
Efficient last-mile delivery in densely populated emerging economy cities faces significant challenges, including severe traffic congestion, unpredictable travel times, limited transportation infrastructure, and high customer expectations for timely deliveries. To address these complex challenges, this paper proposes an integrated framework leveraging crowd-generated data and advanced Artificial Intelligence (AI) techniques. The framework employs real-time traffic predictions based on sentiment analysis and geo-tagged data from public digital platforms, effectively capturing dynamic urban conditions often missed by traditional sensors. Using a novel combination of Graph Convolutional Networks (GCN) and Long Short-Term Memory (LSTM) neural networks, the developed model accurately forecasts traffic congestion by extracting both spatial and temporal dependencies. Subsequently, an adaptive deep reinforcement learning algorithm optimizes delivery routes and schedules in real time, adjusting dynamically to fluctuating demand and rapidly evolving traffic conditions. A comprehensive case study applied to Bogotá, Colombia—a representative emerging megacity—demonstrates the framework's effectiveness, achieving significant improvements in delivery performance and operational efficiency. The study provides valuable insights into how crowd-sourced digital data and AI can be strategically combined to revolutionize last-mile logistics in emerging economies, contributing toward more sustainable and resilient urban environments.