The main aim of this article is to evaluate the impact of dynamic indicators associated with urban spaces on the environmental behavior of residents in Shanghai, China. With the city experiencing rapid urbanization and increasing environmental concerns, it is crucial to understand how the design and management of urban spaces can encourage pro-environmental attitudes and actions among the population. The study specifically focuses on dynamic indicators, namely vitality, accessibility, quality, and walkability, to develop a comprehensive understanding of the utilization and experience of urban spaces. The research outcomes will make valuable contributions towards Shanghai’s objectives of achieving environmental sustainability, while also providing insights that have broader relevance to sustainable urban development globally. As the built environment significantly influences energy consumption, resource utilization, pollution generation, and overall human wellbeing, attaining urban sustainability is of paramount importance. The findings of this study will aid in informing strategies and policies that promote sustainable practices, not only benefiting Shanghai but also serving as a valuable resource for urban development initiatives worldwide. Sustainable urban design principles, including compactness, density, mixed land use, greening, and walkability, have been associated with pro-environmental behaviors, including reduced reliance on automobiles, increased walking and cycling, and heightened environmental consciousness. Nevertheless, the relationship between the built environment and sustainability behaviors is intricate and is influenced by multiple factors. Consequently, further research is necessary to comprehend how specific spatial and temporal dynamics impact environmental behaviors within urban settings. In this study, an artificial neural network (ANN) was developed to estimate the quality and walkability of an area and environmental behaviors by considering the augmented vitality and accessibility factors. The ANN’s predictions demonstrate that higher levels of vitality and accessibility positively contribute to improved walkability and environmental behaviors. The accuracy of the ANN’s predictions was assessed using linear regression, which yielded acceptable error rates when compared with experimental results.