Introduction

With the gradual increase of the older population, population aging has become a seriously global issue. It has been reported that the global population of people aged 65 and over is expected to reach 16.7% by 20501. China currently has the largest aging population, with 18.7% of its citizens aged 60 and above as of 2020, posing significant challenges to social development2. In the face of the challenges of population ageing, there is an urgent need to construct age-friendly cities that provide supportive environments and services tailored to the needs of older adults. Well-designed urban planning and infrastructure can offer safe and accessible spaces for physical activity (PA), thereby encouraging older adults to engage in exercise3,4. In addition, community services and amenities in friendly cities provide diverse options for health promotion and PA for older adults5, who will be more willing to engage in PA, improve their physical fitness and slow down the ageing process, thereby promoting healthy ageing and harmonious social development.

The World Health Organization (WHO) defines PA as any bodily movement produced by skeletal muscles that requires energy expenditure, noting that both moderate-intensity and vigorous-intensity PA can confer health benefits6. Numerous studies have demonstrated that PA plays a vital role in healthy aging by slowing physical and functional decline, highlighting the importance of incorporating PA into healthy aging policies7. Recent studies on promoting PA among older adults have demonstrated that built environments significantly influence PA levels. In particular, green space, a key component of the environment, has been associated with increased PA participation and improved health outcomes in this population8,9. Some researchers even advocate for the construction of greenways as an effective public health intervention10.

Green space is defined as space created by green plants, including green areas or parks composed of lawns, shrubs, and trees11. The health-promoting effects of green spaces emerge through active human–environment interactions. These natural environments serve as therapeutic landscapes where participatory engagement mediates health improvements, creating a dynamic interface between ecological elements and human behavior that positively influences health outcomes12. Research has shown that the association between green space and health is particularly strong among individuals of lower socioeconomic status and older adults13,14. For instance, a prospective cohort study found that the presence of green space in residential neighborhoods helped prevent age-related declines in PA15.

However, the impact of green space on PA may differ based on the type of green space and the specific form of PA involved16. Currently, green space exposure is measured using various indicators, such as the Normalized Difference Vegetation Index (NDVI), park accessibility, and green land cover. NDVI is calculated based on remotely sensed satellite imagery and is used as a measure of the abundance of plant cover. One study found a significant association between NDVI levels within a 500-m buffer around residences and healthy weight status among older adults17. Additionally, a study in the United States reported a positive correlation between the percentage of neighborhood green land cover and daily minutes of walking among older adults18. Xie et al.19 also demonstrated that park accessibility was associated with better health outcomes in this population. Conversely, some studies have found no significant association between proximity to parks, park size, and levels of PA20,21.

The association between street greenery and PA has garnered increasing attention in recent years. Street greenery is often assessed through streetscape imagery and the Green View Index (GVI) is the percentage of vegetation pixels in a streetscape photograph based on eye level, which more closely approximates the level of exposure to green space as perceived by the human eye’s perspective22. Compared with traditional green space assessment methods, street greenery better reflects the real perceived green exposure environment in the daily life of individuals. He et al. reported a positive correlation between street greenery and time spent on PA among older adults9. Similarly, a study conducted in Hong Kong found that street greenery was positively associated with walking frequency and total walking time among older adults23. However, findings on the relationship between street greenery and active travel remain mixed. While some studies have demonstrated a positive association between street greenery and active travel behavior24, others reported that higher GVI values were negatively associated with the likelihood of active travel25. These inconsistencies may be attributed to variations in study settings, population characteristics, and PA types.

A review of prior studies suggests that the method used to assess green space exposure may significantly influence its observed relationship with PA. Current evidence on the effects of green environments on older adults’ PA remains inconclusive. In the context of the increasing trend of population aging, there is a need to explore in depth the specific effects of green space environments on older adults. Focusing on the interaction between individuals and the environment, this study selects the GVI as a green space exposure indicator, extends the traditional two-dimensional measurement method to the three-dimensional level. By integrating static Baidu Street View images with deep learning techniques, this approach aims to more accurately capture the visual perception of green exposure. Prior research has established that different types of PA play a critical role in promoting the health and quality of life of older adults26,27. Street greenery may provide accessible and diverse settings for PA among this population. However, few studies have specifically examined the relationship between street greenery and different types of PA in older adults.

Therefore, this study aims to explore the association between street greenery and different types of PA among Chinese older adults using Baidu Street View images and deep learning. The findings are expected to inform urban green space planning and provide valuable insights for policymakers.

Methods

Participants

The study was conducted in October 2023 using a cross-sectional design. Data for this study were obtained from the Tsinghua University Retiree Health Survey28. Participants were recruited from an all-university party organized by Tsinghua University for retired faculty and staff, where participants were recruited to participate in a health survey. Before the study began, the researcher introduced the purpose and procedures of the study to the participants. Those who agreed to participate signed an informed consent form and completed the questionnaire. The questionnaire collected information on the demographics and socioeconomic status of the retirees, their level of education, health behaviors, health conditions, and level of PA. As soon as participants submitted the questionnaire, trained graduate students checked the submitted questionnaire for completeness. Participation in the survey is voluntary and a gift of $1 will be given upon receipt of a completed questionnaire. In China, people aged 60 years and above are referred to as the older adults, so we included only retired faculty and staff aged 60 years and above in this study. All participants were able to engage in PA independently and had lived in their residence for more than one year, and data from a total of 1326 retired older adults were included in this study. The study protocol was approved by the local research ethics committee.

Measurement of street greenery

The eye-level street greenery was derived from Baidu street view images using the PSPNet technique29. Baidu Street View Map is one of the Chinese biggest street view image providers22. The street greenery measurement process is as follows. Firstly, the coordinates corresponding to the home address information of the older people in the questionnaire were obtained. Secondly, a buffer zone with a 500 m radius is delineated, with this coordinate as the center. The 500 m buffer zone was chosen mainly because, based on the review of prior literature and the characteristics of the study population30,31,32, the 500 m buffer zone may more closely reflect the real activity environment and behavioral habits of older adults. Thirdly, sampling points are set within the buffer zone, using ArcGIS software. Specifically, sampling points were generated at 50 m intervals and covered the entire road network within the 500 m buffer zone, in order to comprehensively capture the street greenery exposure experienced by the older adults. Fourthly, the sampling points are inputted into a Python script that utilized Baidu Maps’ API interface to download four Street View images with a 90° field of view for each point. Finally, these street view images are merged to construct a panoramic visual representation of each sampling point33.

The quantity of street greenery was measured by the GVI. Previous studies have confirmed the accuracy of deep learning models in image segmentation34,35. In this study, a deep learning model named PSPNet was used to obtain the GVI from street view images. After the training, PSPNet can accurately and stably segment the greenery in the street view images and calculate the GVI. As shown in the following equation, GVI calculates the proportion of street greenery pixels in the total pixels of the photo, which is the ratio of greenery pixels to total pixels in the four images22,36. The “i” in the equation is the streetscape image corresponding to each point. The GVI ranges from 0 to 1, with higher values indicating more street greenery.

$${\text{Green}}\;{\text{View}}\;{\text{Index}}\frac{{\sum\nolimits_{{{\text{i}} = 1}}^{4} {{\text{Area}}_{{{\text{greenery}}\_{\text{i}}}} } }}{{\sum\nolimits_{{{\text{i}} = 1}}^{4} {{\text{Area}}_{{{\text{total}}\_{\text{i}}}} } }}$$

Measurement of physical activity

In this study, the Physical Activity Scale for the Elderly (PASE) was mainly used to assess the PA level of older adults. The PASE is an extensively validated self-administered assessment tool for measuring PA in Chinese older adults37,38,39. This study assessed older adults’ leisure PA, transportation PA, and household PA in the past week.

Leisure PA refers to activities performed during leisure time, such as walking in the park, playing Tai Chi, and keeping fit. For Leisure PA, PASE categorizes it into three intensity levels, which are light physical activity (LPA), moderate physical activity (MPA), and vigorous physical activity (VPA). The total number of hours of LPA in the past week is based on responses to two questions in the PASE assessment tool38—"How many days in the past seven days have you engaged in the following LPA? For example, yoga, watering flowers, hiking, etc.?" and "On average, how many hours per day do you spend engaged in LPA? The same structure was used for MPA and VPA, with relevant activity examples such as table tennis for MPA, and tennis, or soccer for VPA. The total duration of each activity type was computed by multiplying the number of days by the average daily duration.

Household PA refers to activities performed to accomplish daily household chores, such as cooking, sweeping, and laundry. The total number of hours of household PA in the past week is based on responses to two questions in the PASE assessment tool38—"How many days in the past 7 days have you engaged in the following household physical activities? For example, cooking, dishes, laundry, cleaning, etc.?" and "On average, how many hours per day do you spend engaged in household PA? Multiply the average number of hours of household PA per day by the corresponding number of days to calculate the total number of hours of household PA for the last week.

Transportation PA refers primarily to activities undertaken to reach a destination, such as walking or cycling to shop, work, school, etc., and encompasses walking activities and cycling activities for transportation purposes. Total hours of walking in the last week were constructed based on the answers to the two questions from the PASE assessment tool38—“How many days over the past seven days did you take a walk for at least 10 min continuously to get to and from places? For example, for walking to shopping, walking to work, etc.?”, and “On average, how many hours per day did you spend walking?” Total hours of walking in the last week were calculated by multiplying the daily average number of hours spent walking by the corresponding number of days.

Total hours of cycling in the last week were constructed based on the answers to the two questions adapted from the U.S. Centers for Disease Control and Prevention’s Physical Activity Questionnaire40—“How many days over the past seven days did you bike for at least 10 min continuously to get to and from places?”, and “On average, how many hours per day did you bike?” Total hours of cycling in the last week were calculated by multiplying the daily average number of hours spent biking by the corresponding number of days.

We calculated last week’s leisure PA score, transportation PA score, household PA score, and total PA score for each survey participant based on their answers to the assessment questions. Higher scores represent higher levels of PA in older adults.

Statistical analyses

Descriptive statistics for the quantity of greenery, participant demographic information, and PA are listed. In this study, the quantity of greenery was referred to as the streetscape GVI within 500 m of the participant’s home address. Participants’ demographic information contained age, gender, height, weight, BMI, education level, and household economic income, smoking, drinking. PA contained transportation PA, leisure PA, household PA, and total PA. For quantitative variables, mean and standard deviation (SD) values were reported. For categorical variables, percentages were reported. ANOVA and Chi-square tests were performed to test whether the differences between variables are significant. The association between the street greenery and participants’ PA was analyzed by Spearman correlation. When the p-value was less than 0.05, it was considered to be correlational and significant.

Multilevel linear regression models were used to explore independent associations between street greenery around residences and PA among older adults. Two models were successively used for the analysis. Model 1 included only all individual covariates: age, gender, height, weight, smoking, drinking, household income, and education level, and Model 2 further added the quantity of street greenery. Standardized β, 95% confidence intervals (CI), and adjusted R2 were reported for the models. All statistical procedures were performed in SPSS 27.0 and significance was set at P < 0.05.

Results

Table 1 presents descriptive statistics for all participants. A majority of the participants were composed by females (60.94%). The mean age of the sample was 71.99 (SD = 7.06). The mean height and mean weight of all participants were 162.38 cm (SD = 7.78) and 63.52 kg (SD = 9.86), respectively. The mean body mass index (BMI) was 24.07 kg/m2 (SD = 3.20). In addition, a large percentage of participants (32.7%) had an annual household income of less than or equal to 10,000 yuan. Only 5.7% of the participants had annual household incomes greater than or equal to 160,000 yuan. More than one-half (n = 669; 50.5%) of the participants’ education level was college. A rather small proportions of these participants were current smokers (7.4%) and drinkers (8.0%). ANOVA showed that males were significantly higher than females in age, height, and weight (all p < 0.001), but BMI was not significantly different between genders (p = 0.896). Moreover, chi-square tests indicated that gender was significantly associated with annual household income, education level, smoking, and drinking status (all p < 0.001), suggesting notable demographic and socioeconomic differences by gender among this sample.

Table 1 Descriptive statistics of all participants.

Table 2 shows the descriptive information for the quantity of street greenery and PA. As shown in Table 2, the average quality of street greenery was 0.25 (SD = 0.07). Regarding PA, the total PA score among all participants was 102.99 (SD = 61.91), with the highest component being household PA (43.67 ± 34.50), followed by leisure PA (33.04 ± 32.17) and transportation PA (26.28 ± 23.80). Among leisure PA, LPA was the largest contributor (17.20 ± 19.81). Gender differences were evident in several PA dimensions. Males had significantly lower MPA and household PA compared to females (p < 0.001), but showed no significant differences in street greenery exposure. These patterns may reflect traditional gender roles in household labor and preferences for activity types.

Table 2 Descriptive information for quantity of street greenery and physical activity scores.

Table 3 presents the results of the correlation analysis between participants’ PA scores and street greenery. Street greenery was significantly and positively correlated with transportation PA (p < 0.05), particularly with cycling (p < 0.01). This relationship was more pronounced among female participants (p < 0.01), suggesting that women may be more sensitive to environmental aesthetics during cycling. However, no significant correlations were observed between street greenery and leisure PA, household PA, or total PA.

Table 3 Results of correlation analysis between physical activity and street greenery.

Table 4 shows the results of the multilevel linear regression models. Controlling for sociodemographic factors, street greenery was significantly associated with transportation PA (β = 0.08, p < 0.01), indicating that higher greenery levels may encourage walking or cycling as transport. No such associations were found for leisure PA (β = − 0.02, p > 0.05) or household PA (β = − 0.04, p > 0.05), suggesting that environmental greenery may have a selective effect on PA type. These results highlight the domain-specific role of street greenery in promoting transportation PA rather than recreational or domestic activities.

Table 4 Multilevel linear regression models for predicting different types of physical activity.

Among covariates, age was negatively associated with all PA types, while education level was inversely associated with both transportation and leisure PA, possibly reflecting more sedentary lifestyles among the more educated. Gender was positively associated with household PA, with females reporting significantly higher scores.

Discussion

This study objectively assessed street greenery exposure at eye level using Baidu Street View images and deep learning techniques. It investigated the association between street greenery and various types of PA among older adults. The results revealed a significant positive correlation between street greenery within a 500 m residential buffer and transportation PA among Chinese older adults. However, no significant associations were found between street greenery and leisure or household PA.

These findings reinforce the notion that urban green spaces positively influence PA in older adults41,42. A previous cross-sectional study conducted in Shanghai, China, demonstrated that higher street greenery levels were associated with increased total PA and active transportation among older adults43. Similarly, a study in Hong Kong used Google Street View images to evaluate both the quantity and quality of street greenery and found positive associations with time spent in recreational physical activities, such as walking, jogging, and cycling44. As another densely populated metropolis, Beijing shares similarities with Shanghai and Hong Kong. The present study further highlights the beneficial role of street greenery in promoting PA among older residents in high-density urban environments. Previous research has shown that well-designed green spaces can offer a safe and comfortable environment that encourages outdoor activity among older adults45. An international comparative study examining the relationship between green spaces and outdoor recreation among older adults in cities such as Sydney, Singapore, and Dhaka found a positive association between high-quality green spaces and walking activity46. These findings highlight the need to integrate green space planning into urban development strategies to support healthy aging. However, it is essential to consider that cultural factors, climatic conditions, and urban planning practices vary across countries and regions, potentially influencing how older adults utilize green spaces. Therefore, designing green spaces that are tailored to the local needs and behavioral habits of older adults is crucial to maximizing their potential to promote PA.

Regarding different types of PA, the main findings of this study revealed a significant association between exposure to street greenery and transportation PA among older adults. This aligns with the findings of Schoner et al.47 who reported that higher levels of tree cover are associated with increased engagement in active transportation, such as walking and cycling. In high-density urban areas like Beijing, cycling and walking are the primary modes of transportation PA and constitute the major sources of daily activity for older adults. Research has shown that tree-lined streets are more likely to promote active transportation behaviors, such as walking and biking, than parks48. Therefore, greater exposure to street greenery may be more effective in promoting transportation PA among this population. However, in the present correlation analysis, street greenery was significantly and positively associated with bicycling but not with walking. Moreover, a systematic review and meta-analysis found no significant association between greenery or aesthetically pleasing landscaping and transient walking49. One possible explanation is that older adults may choose different forms of transportation-based PA depending on the urban and cultural context. Variations in the methods used to assess green space and PA may also contribute to inconsistent findings.

The analyses in this study showed no significant correlation between street greenery and leisure PA among older adults. Similarly, a previous cross-sectional study conducted in the United Kingdom also reported no correlation between urban green space and leisure PA among middle-aged and older adults50. In contrast, Lu et al.44 observed a positive association between street greenery and leisure PA. These inconsistent findings may stem from factors such as differences in study populations, geographic regions, and the extent to which potential confounders were controlled across studies. Moreover, the leisure PA assessed in this study primarily included physical exercises such as running, swimming, and dancing. These activities are influenced by a variety of environmental factors, including perceived safety, environmental aesthetics, and the availability of fitness facilities, all of which can shape individuals’ engagement in PA51,52. Since this study focused solely on street greenery as an environmental factor, future research should incorporate additional environmental variables to provide a more comprehensive understanding of determinants influencing leisure PA.

Green spaces are not only linked to residents’ PA behaviors, but there is also growing evidence indicating their broader health benefits53,54,55. A systematic review demonstrated that green spaces are positively associated with both increased PA and improved health outcomes, such as reduced risks of mental health disorders, cardiovascular diseases, and mortality56. For mental health, Wang et al.57 found that higher residential greenery was associated with lower levels of depressive symptoms in older adults. Regarding physical health, Yang et al.58 reported that residing in greener areas was linked to healthier blood lipid profiles, particularly among women and older adults. Although the underlying mechanisms remain unclear, current research proposes that green spaces may improve health through various pathways, including improved air quality, increased PA, enhanced social cohesion, and stress reduction. Notably, PA may serve as a key mediator in the relationship between green space and health outcomes59. The results of the correlation between street greenery and PA in this study may also help to further explain the mechanism of green space on health. Future research could further analyze the mechanisms by which green space affects the health of older adults based on the PA perspective.

The strength of this study is the use of Baidu Street View images combined with deep learning techniques to assess street greenery around participants’ residences. This method provides a more realistic and human-centered measure of green space exposure, aligning closely with pedestrians’ visual perception, and offers improved accuracy and reliability compared to traditional assessment methods. Future studies could incorporate multi-source data (e.g., NDVI) to examine how perceived and objective measures of greenery differentially affect PA. This approach could enhance our understanding of environmental influences and inform more effective urban planning strategies. Moreover, this study comprehensively explored the association between street greenery and various types of PA among older adults. These findings are valuable for the targeted design of green streetscapes to promote PA and enhance the quality of life in aging populations.

However, several limitations should be acknowledged. First, the cross-sectional design prevents causal inference and only allows for the identification of associations. Longitudinal cohort studies and experimental research are needed to further explore the mechanisms underlying the relationship between street greenery and PA. Second, the study focused exclusively on older adults aged 60 years and above, without including other age groups. Additionally, the reliance on self-reported PA is another limitation. Future studies should consider expanding the sample size and incorporating objective measures of PA to examine the association between street greenery and PA across different age groups. Third, the exposure assessment may be affected by the Uncertain Geographic Context Problem60, as it relies solely on a 500-m residential buffer, which may not capture the full range of participants’ environmental exposures due to their mobility beyond the home area. Future studies should consider activity space–based approaches to more accurately measure environmental exposure.

Conclusion

This study revealed a significant association between residential street greenery and transportation PA among older adults in China. Specifically, enhancing street-level greenery, such as planting trees along sidewalks and creating safe and pleasant walking and cycling environments, may effectively promote active transportation behaviors among older adults. Unlike traditional studies that focus on parks or use coarse vegetation indices, this study employed street-level greenery data derived from Baidu Street View images and deep learning techniques, providing a more accurate representation of older adults’ actual visual exposure to greenery. These findings highlight the importance of distinguishing between different PA domains when evaluating environmental influences and suggest that street greenery plays a particularly critical role in facilitating transportation PA. The results provide novel evidence to support urban planning initiatives aimed at developing age-friendly environments.