Next Article in Journal
Prescription of Opioid Analgesics for Chronic Non-Cancer Pain in Germany despite Contraindications: Administrative Claims Data Analysis
Previous Article in Journal
The Relationship between Patients’ Demands and Workplace Violence among Healthcare Workers: A Multilevel Look Focusing on the Moderating Role of Psychosocial Working Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Impact of Environment on Pain among the Working Poor: Making Use of Random Forest-Based Stratification Tool to Study the Socioecology of Pain Interference

1
JC School of Public Health and Primary Care, The Chinese University of Hong Kong, Hong Kong SAR, China
2
Department of Rehabilitation Science, Hong Kong Polytechnic University, Hong Kong SAR, China
3
Centre for Health Education and Health Promotion, JC School of Public Health and Primary Care, The Chinese University of Hong Kong, Hong Kong SAR, China
4
Hong Kong Health Education and Health Promotion Foundation, Hong Kong SAR, China
5
Centre for Health Systems and Policy Research, The Chinese University of Hong Kong, Hong Kong SAR, China
6
Health in Action Limited, Hong Kong SAR, China
7
Faculty of Medicine and Health, The University of Sydney, Sydney 2006, Australia
8
Epitelligence, Hong Kong SAR, China
*
Authors to whom correspondence should be addressed.
Int. J. Environ. Res. Public Health 2024, 21(2), 179; https://doi.org/10.3390/ijerph21020179
Submission received: 16 December 2023 / Revised: 26 January 2024 / Accepted: 30 January 2024 / Published: 5 February 2024
(This article belongs to the Section Environmental Health)

Abstract

:
Pain interferes with one’s work and social life and, at a personal level, daily activities, mood, and sleep quality. However, little research has been conducted on pain interference and its socioecological determinants among the working poor. Noting the clinical/policy decision needs and the technical challenges of isolating the intricately interrelated socioecological factors’ unique contributions to pain interference and quantifying the relative contributions of each factor in an interpretable manner to inform clinical and policy decision-making, we deployed a novel random forest algorithm to model and quantify the unique contribution of a diverse ensemble of environmental, sociodemographic, and clinical factors to pain interference. Our analyses revealed that features representing the internal built environment of the working poor, such as the size of the living space, air quality, access to light, architectural design conducive to social connection, and age of the building, were assigned greater statistical importance than other more commonly examined predisposing factors for pain interference, such as age, occupation, the severity and locations of pain, BMI, serum blood sugar, and blood pressure. The findings were discussed in the context of their benefit in informing community pain screening to target residential areas whose built environment contributed most to pain interference and informing the design of intervention programs to minimize pain interference among those who suffered from chronic pain and showed specific characteristics. The findings support the call for good architecture to provide the spirit and value of buildings in city development.

1. Introduction

The estimation of pain prevalence adjusted for age and sex is found to be 27.5% across 52 countries [1], which is even more prevalent among low-income countries according to a recent meta-analysis, reporting that 33% of their adult populations and 56% of their elderly populations suffered from chronic pain [2]. In addition, even among studies published from populations of high-income countries, respondents with lower income suffered from chronic pain, and they were more likely to report pain interfering with different aspects of their lives [3,4,5]. However, those with lower income also showed greater variability in whether, and to what extent, pain interference was experienced compared with those with higher income [6]. Yet, systematic research into what factors are responsible for such variability is lacking, despite its potential role in identifying targets for interventions that can yield the greatest return on investment.
A recent update by Trachsel et al. has highlighted that the activation of peripheral and central sensitization pathways involves several mechanisms sensitizing the peripheral nociceptors and altering the spinal dorsal horn neurons and central nervous system (CNS) brain areas to trigger a pathogenetic cascade that ends with the development of chronic pain [7]. Again, pieces of evidence suggest the paramount role of the environment (i.e., epigenetics) and genetics [7]. Pain interference [8], commonly operationalized by averaging the rating of pain interference across areas such as daily activities, professional duties, social relationships, mood, and sleeping quality [9,10], is predisposed by the demographical, clinical, psychological, and behavioral characteristics, e.g., the intensity and locations of pain, and the chronic conditions to which the pain in question was linked, which have been associated with the averaged rating of pain interference [11,12]. Interference by pain has been shown to link with demographic factors and psycho-social factors [13], pain-related catastrophizing [14,15], and pain acceptance [16,17], and behavioral and bio-medical factors, such as obesity [11] (for linkage between pain interference and obesity-related arthrometries and biometrics such as BMI, blood pressure, and blood glucose [18]) and tobacco use [19].
A recent study has shown that people with a lower income experience greater pain than those with a higher one, highlighting the role of psychosocial factors in physical pain [20]. In addition, studies also suggest that those with lower income experience relative deprivation [21] and social subordination [22], which may result in depression, anxiety, distress and other negative emotions such as anger, stress, and resentment—which has been linked to greater levels of pain [23] and pain interference [24] perceived compared to those with better psychological well-being.
Built-in environmental-level factors also hold significant importance for pain and pain interference, even though they are often overlooked. Patterns of co-residence [25] and housing environment [26] have been linked to pain interference in daily activities. A systematic review has found a relationship between numerous aspects of healthy building determinants and back and neck pain [27]. A study has shown that the presence of nature in the urban residential environment reduces pain intensity among community-dwelling middle-aged and older adults living with chronic pain by buffering the impact of pain catastrophizing and rumination. [28]. A built environment characterized by sufficient lighting [29,30], large space [31], good indoor air quality [32], and accessibility to activity [26] can effectively improve pain and pain interference with sleeping quality, vitality, and mood. Quality of built environment, such as construction type [33], age [34], design [35] and size of living area [36], had been linked to health. Moreover, these built-environmental characteristics can affect health through biological connectivity, such as indoor mold [37], dust [37], and microorganisms [38]. For instance, building design can impact microbiome load, which is associated with the risk of disease [39]. Notwithstanding the knowledge about the impacts and mechanisms of built environments on health, the association between housing environments and pain interference remains inadequately explored, with little attention paid to investigating this relationship in conjunction with individual-level factors, even though the effects of built environments on its residents are usually compounded by the residents’ age, sociodemographic, and personal behavior [40]. Furthermore, the linear model-driven approach commonly applied to analyze factors that predispose to pain interference is unable to tease apart the unique contribution of different individual- and environmental-level factors that are intricately interrelated.
Isolated studies have also linked pain interference with individual aspects of one’s living environment, such as small living areas [26] (operationalized here as the number of non-functional rooms being two or less), poor air quality [26] (operationalized here as the buildings lacking re-entrant bay [41]), poor access to light [42] (cardinal orientation, and specifically in the local setting, those residential buildings facing south have better access to light [43,44]; and the number of light wells in the building [45]), social connectivity [5,27,46] (operationalized here as the buildings’ numbers of corridors and lifts [47,48,49,50]), and the age of the building.
Hence, to model and risk-score the unique and combined contribution of a diverse ensemble of environmental, sociodemographic, and clinical factors to pain interference among the working poor, a novel application of the random forest algorithm was reported here. The random forest is a commonly used machine learning algorithm to combine the output of multiple decision trees to enhance their performance, lower the requirement for sample sizes, and maintain the interpretability of the findings. Here, to further enhance random forest interpretability and our findings’ implementability in the context of community-based screening, a risk-scoring system was subsequently developed from the result of the random forest model with validation. Details are described under Section 2.3.

2. Method

2.1. Participants

A retrospective observational study was conducted among members of a community service of a Non-Government Organization (NGO) providing self-management interventions that focus on pain, physical therapy, and mind–body wellness counselling to residents of a Hong Kong district living in working poverty, as defined by having spent at least 27 weeks in a year working or looking for employment, yet household income falls below the poverty line [51], which is 50% of the median monthly household income before policy intervention [52].
Full data were ascertained from 568 members of the community service who were (1) deemed to be suffering from pain by healthcare professionals of the community service, (2) had received between June 2021 and October 2022 assessments on pain, pain interferences, BMI, blood pressure, and blood glucose by healthcare professionals of the studied community service, and (3) reported their demographics and smoking and drinking habits. Of the 568 members, 335 were also residents of public housing and were included in the study cohort.
Members of the community service consented to the data collection for quality improvement and dissemination purposes. (ICPC-2). Ethics approval for secondary data analysis was obtained from the Joint Chinese University of Hong Kong-New Territories East Cluster Clinical Research Ethics Committee. The study subjects were clients of the studied NGO who gave consent for the analysis and reporting of their data in an anonymized aggregated form for the purposes of service quality improvement, education and research. The studied NGO has consented to our analysis and reporting of the data under their custodianship under strict confidentiality agreements safeguarding the anonymity of their clients while performing service quality improvement, education and research. This study has been approved by the Chinese University of Hong Kong Research Committee—the Human Subjects Ethics Sub-Committee.

2.2. Predictive Features and Pain Interference Outcome

The predictive features and outcomes of the current study were extracted from two main sources of data, including those that were available in the public domain (i.e., the Housing Authority’s database on the architectural elements of public housing buildings in the studied district) and those that were collected by the studied community service, such as data on its clients’ demographics, anthropometric and biometric measures (i.e., BMI, blood pressure, and blood glucose), and the presence, location, pain severity and interference assessed by the Brief Pain Inventory (BPI) [53]. Specifically, BPI is a validated tool designed for assessment of the nature of pain and its interference in the following areas: daily activities, professional duties, social relationships, mood, and sleeping quality. While most studies operationalized pain interference by averaging the mean scores across the five above-mentioned areas as a single index, this study examined the presence of pain interference in each area as separate binary outcomes and the number of areas suffering from pain interference as ordinal counts to reflect the severity and pervasiveness of pain interference in the lives of the study participants. The PBI was administered during the same session as when biometrics were assessed.
The literature has linked abnormal BMI, blood glucose, and blood pressure values to pain interference. However, those in our sample who reported abnormal BMI (23.8%, 32.4% and 9.5% fell into the categories of pre-obesity, mild obesity, and severe obesity, respectively) did not always show abnormal levels of blood pressure (21.4%) or blood glucose (16.2%), despite the relationships among the three. The discrepancy may be attributable to the use of medication for managing blood pressure and glucose, which had not been collected in the current study.
The following features were adjusted in the random forest model due to their potential contributions to pain and/or pain interference: residential population density [49,54], number of distinct households in the building (operationalized as the number of flats in the building—for the relationship between social connectivity and the number of district household in the building [55,56], living in subdivided flats (reflecting adverse living conditions in the local context; for the relationship between sub-divided flats and physical and mental health) [57,58], behavioral risk factors such as drinking [59] and smoking [24], whether or not the participants had been assigned any pain management care plan (whereby such assignment decision may be associated with differences in participants’ conditions that were not captured in the community service’s database), the severity of pain experienced [12,13], and whether the pain assessment was performed during wave five of the COVID-19 pandemic or during the period between wave four and five when COVID-19 was laid dormant (as pain and its interference is affected by COVID-19 [60,61] as the different in the social and public health measures against COVID-19 during wave five and the period leading up to it may affect participants’ professional and daily activities and how pain might affect them).

2.3. Analytic Models: Model-Based Feature Selections and Scoring

The current study applied a random forest-based algorithm [62,63] to: (1) model the study outcomes; (2) select features by integrating individual decision trees’ rank-ordering of features, which are based on each feature’s unique and combined contribution to the study outcomes; and (3) optimize the cutoff values that define the response levels of selected features and the weights to assign to the corresponding response levels of the selected features. Below, the process with which random forest selects and rank order features for splitting the sample will first be described, followed by a justification for our using the random forest-based algorithm here instead of other more traditional analytics. For example, the data preparation process for constructing our pool of predictive features is minimized with the algorithm presented here. Finally, the criteria by which the performance of our models will be evaluated are laid out.
Specifically, features were selected for the final scoring system by a sequence of modeling steps. Please refer to Figure 1 for a schematic illustration and the corresponding pseudo-code for a high-level comparison of the process of feature selection and splitting between decision trees and random forests when performing classification tasks.
Firstly, multiple decision tree models were performed (when the number of models reached 500 or the performance of models converged at maximum, whichever came first). With a recursive splitting process, each decision tree compares all predictive features’ unique and combined contributions to the studied outcome with each other and then selects predictive features in an order that reflects the magnitude of their respective contributions to the studied outcome. The decision tree’s recursive splitting process stops when additional splits on previously unselected features fail to differentiate the remaining participants with respect to the studied outcome.
Secondly, the results of individual decision trees were combined via an ensembling process, whereby features selected by individual trees (i.e., subsets of features drawn from the original feature pool) were integrated and bootstrapped randomly to create samples of data from which the unique statistical importance of each feature was estimated according to the corresponding drop in predictive accuracy when one feature’s value is replaced with its random permutation value given the supervisory outcome.
There are a number of advantages that the random forest algorithm reported here has over individual decision trees or even random forest algorithms more generally. A non-regression-based decision tree can model the unique and combined contributions of intricately interrelated predictors, which generally violates the assumption of traditional linear models with high performance while achieving greater interpretability compared to other machine learning and deep learning models. Nevertheless, while the random forest model maximizes the differentiability of individual decision trees to enhance its accuracy in model prediction and variable ranking and optimize the estimation of classification probabilities with ensemble logistics functions [64,65,66,67,68,69], the novel random forest algorithm deployed here yields more interpretable results than random forest models in general or individual decision trees due to its enabling the assignment of weights that maximize outcome differentiability to each response level of the selected features.
In addition, unlike traditional regression models or decision tree models, where extensive data preparation and feature transformation are required. The random forest-based algorithm deployed here can incorporate mixed data modes that include continuous, ordinal and categorical features. For example, continuous variables are first transformed into ordinal ones before assigning weights to each ordinal level according to the quantiles of the variable’s value (e.g., 0%, 5%, 20%, 80%, 95%, 100%). Consequently, every response level of each of the selected features was assigned a partial (marginal) weight, which is derived from the resulting coefficients through a two-step procedure. In the reference category, we assigned the smallest coefficient, and then the coefficients assigned to the non-reference response level were divided by the reference coefficients and rounded to the nearest integer. Notably, the level of a feature with lower importance may be assigned a greater weight than the level of another feature with higher importance. Hence, the model-based weight assignment further enhances the added interpretability that the common measures of statistical importance have brought to machine learning or deep learning models.
The validation dataset reported the model performance, and 95% confidence intervals (CI) were calculated by applying 100 boot-strapped samples [70]. The model’s discriminatory performance was considered poor if Area Under Curve < 0.70 [71], acceptable when AUC = 0.70 to < 0.80, excellent when AUC = 0.80–0.90, and outstanding when AUC > 0.90 [72].

3. Result

When applied to a feature pool consisting only of individual-level features, the random forest models supervised by mood, daily activities, sleeping quality, social life, and work performance yielded AUCs of 0.76, 0.78, 0.78, 0.79, and 0.84, respectively.
Table 1 lists and provides descriptive statistics for the predictive features and the model-supervising outcomes examined in the current study. As Table 1 shows, 77.8% of the study participants were female, aged 55.58 on average (SD = 12.1). The top three occupations were domestic helpers (37.1%), cleaning workers (25.9%), and catering staff (10.3%). Notably, 36.2%, 32.4%, and 29.5% of the participants reported pain in their knees, shoulders, and hands, respectively (pain can appear across multiple locations for any participant). The majority of the participants reported pain interference with their daily activities (72.9%), sleeping quality (50.0%), and work performance (46.7%), with 75.2% of the participants reporting at least two areas of pain interference (46.2% reporting three or more areas).
Table 2a shows the features selected and the order in which they were selected, by an individual-level random forest model supervised by binary outcomes of whether pain interference was present in areas such as mood, daily activities, sleeping quality, social life, and work performance. The summative score derived from aggregating the reverse-coded ranks of each feature with respect to the five outcomes assigned was tabulated (Table 2a).
In addition to age, occupation, and the intensity and location of pain, the BMI and blood glucose of those suffering from pain were consistently the top-ten features contributing to pain interference across all areas studied. In contrast, the rest of the selected features were found to have less consistency across the different areas of pain interference with abnormal blood glucose levels, and different pain positions ranked sixth and the rest of the top ten, respectively, when the summative score is concerned.
On the other hand, when applied to a feature pool consisting of both individual- and building-level features, the random forest models supervised by mood, daily activities, sleeping quality, social life, and work performance yielded AUCs of 0.96, 0.98, 0.94, 0.99, and 0.99, respectively.
Table 2b shows the features selected and the order in which they were selected by an individual- and building-level random forest model supervised by binary outcomes of whether pain interference was present in areas such as mood, daily activities, sleeping quality, social life, and work performance. Table 2b shows the summative score derived from aggregating the reverse-coded ranks of each feature with respect to the five outcomes assigned.
Features such as age, occupation, pain intensity and BMI were found to remain in the top ten in terms of their summative scores. With respect to the five studied areas of pain interference, the rankings of their importance were less consistent and lower (except age) compared to those received from individual-level-only models. Instead, the cardinal orientation of the building, the proportion of flats with less than three non-functional rooms, the building age, and the number of corridors and lifts were found to be the top-ten areas of importance according to the summative scores, and for most of the individual studied, these were areas of pain interference.
Table 3 shows the weights assigned to each level of every feature selected by the models whose supervisory outcomes were the total number of areas each member suffered from pain interference. What’s shown in Table 3 demonstrates how the random forest-based tool stratifies individual members of the working poor according to their respective risk of pain interference. The total number of areas inferred by pain was used as the supervisory outcome rather than the binary outcome of whether pain interference was present in individual areas. Table 3 reports the weights assigned to features selected by ordinal count-supervised random forest models when applied to a pool of individual-level features (left panel) and a pool of mixed individual- and building-level features (right panel).
Table 4a,b report the number of areas suffering from pain interference across the different ranges of values of the total score that was tallied from the weights assigned to individual-level features and individual- and building-level features, respectively.
As shown in Table 3, when applied to a feature pool consisting of only individual-level features, the ordinal count-supervised model (the left panel) and binary outcome-supervised models (as shown in Table 2a) assigned top-ten importance to similar sets of features, such as age, occupation, pain intensity, BMI, blood glucose, and locations of pain. In addition, the weights assigned to features selected by the individual-level model further enhanced the interpretability of the relative contributions of different response levels of a single feature and among all selected features. Among the working poor suffering from chronic pain aged between 44 and <73 and working as a clerk, reported pain interference in the largest number of areas (Table 3 left panel). The greater the number of areas of reported pain interference, the greater the pain intensity. Pain interference was also reported in a greater number of areas when the remaining top-ten individual-level features were present, i.e., BMI that was pre-obese or obese, abnormal blood glucose level, or pain located in the knee, lower back, or foot.
However, the weights assigned to the response levels corresponding to these features were found to be lower with modeling the ordinal count as an outcome with mixed building- and individual-level features (right-side panel of Table 3) than without building features (left-side panel of Table 3). While the rankings of pain intensity were found to be similar between the individual-level model and the mixed individual- and building-level model, the weights assigned to the response levels of pain intensity features in the mixed individual- and building-level model were found to be lower in value, thus contributing less to having multiple areas of pain interference. In addition, the same individual-level features can also be assigned a lower ranking, and their corresponding response level, the lesser weights (or different distributions of weights), in the mixed model, such as BMI, age, and occupation. Instead, the following building-level features’ response levels were assigned the greatest weights, contributing to the risk of having a greater number of areas interfered with by pain: cardinal orientation other than the south (south, southwest, and southwest) side, lower than 12.5% of flats having three or more non-functional rooms in the studied buildings, buildings having 564 or more flats, and years of building being 17 years or more.

4. Discussion

The study has revealed that the working poor’s internal built environment, such as the size of the living area (parameterized as the number of non-functional rooms in the flat), the building’s access to light, the quality of air, and the age of the building, were assigned as much (and sometimes higher, depending on the supervisory outcomes) statistical importance than other more commonly examined predisposing factors for pain interference, such as age, occupation, the severity and locations of pain, BMI, serum blood sugar, and blood pressure. It is of note that the effects of one’s internal built environment remain dominant even after the unique and combined effects on pain interference have been accounted for in our random forest model. The severity and locations of pain, BMI, serum blood sugar, and blood pressure are often studied in the literature in terms of their unique contribution to pain interference. However, the literature has rarely examined these factors systematically among the working poor. Nor were these factors examined in relation to the contribution of one’s age, occupations, and living environment. In fact, given that their effects on pain interference are multileveled and potentially non-monotonic, they had not been examined systematically in a single study with other more well-studied determinants.
Notably, the current study adds value to the literature on the social determinants of pain interference. Many studies have emphasized the association between age and pain interference [73,74]. Our study suggested that those aged between 44 and 73 suffered from the most pain interference, followed by those younger than 44, yet no significant effect was observed among those aged over 73. Hence, findings reported here is in congruent with that of other studies who found elders reported less pain interference with daily activities [75] and mood [74]. Yet, our findings are different that of Thomas et al., which indicated that the occurrence of pain interference with activities increased monotonically with age [73]. The potential reason for the difference could be that we examined the presence of pain interference in professional activities and social relationships, which might be less affected among those who were above 73 despite their working status. It has been shown that manual work is often associated with greater pain interference, with construction workers reporting the most interference in their daily activities, according to a local report [76]. Catering employees and grocery clerks were found to be more likely to report pain inference, and this would be due to no consecutive days of rest and stress at work [77]. Our findings also resonate with another recent study suggesting that workers engaging in physical activity related to transportation experienced less pain interference, whereas those performing household physical activity reported higher pain interference [78]. While our findings are consistent with the results reported in isolated studies, we add value to the body of literature by quantifying the relative contributions of different levels across all selected features to enable a comparison to be made with the intricately interrelated effects of all determinants adjusted and by examining these effects in a sample of working poor.
Significantly, our having identified that aspects of one’s built environment are linked to one’s experience of pain interference enable one to target key environmental factors prevention or mitigation, as brain imaging studies has shown with rodent pain models and among pain patients that environmental factors can reverse the changes in brain’s gray matter volume, white matter integrity, and epigenesis linked to the experience of pain’s impact [79,80]. In addition to brain imaging studies, our findings also resonate with other population studies’ findings in how environmental factors reverse pain-related outcome. For example, it has been shown that having nature nearby can buffer the relation between catastrophizing and pain intensity, as the nearby nature moderates the association between pain-related rumination and pain intensity but not the helplessness-pain intensity or the magnification-pain intensity associations [28]. Hence, healthcare professionals might look for community resources, such as nearby nature, for pain management [28]. In addition, a study in China has shown that people who lived in moderate and unfavorable environments had higher risks of arthritis in cross-sectional analysis and follow-up studies. An inferior living environment might promote the development of arthritis, so improvement of the living environment can be a good strategy for the primary prevention of arthritis [81]. Similarly, a study examined the context of environmental life spaces with chronic osteoarthritis pain among older African Americans aged 61–81 living in income-adjusted housing [26]. Their housing environments lacked age-friendly amenities, and specific enhancements to assist aging individuals with everyday function and reduce pain were identified [26]. This further illustrates the importance of understanding the impact of environments (macro, meso, and micro) on pain management [26].
One of the potential factors identified as being a key mediator of the effect of environmental factors on the experience of pain and its interference is one’s psychological well-being [82]. For example, a UK Biobank study (with over 150,000 participants) has shown that distinct neurobiological changes associated with specific psychiatric symptoms are linked to certain environmental factors [83]. In particular, the study found that air pollution and social deprivation of one’s living conditions were linked to affective symptoms and a concurrent shrinkage in the brain area that processes reward and heightened expression of stress-responding genes. On the other hand, the study also found that accessibility to nature can protect one against anxiety symptoms, with differences in the activity level of the brain regions necessary for emotional regulation mediating such protective effect.
On the other hand, the associations between built-environment quality and people’s mental health were previously not found to be strong in Hong Kong [84]. The impact of housing characteristics on mental health would be more direct in communities with relatively poor housing conditions, and the effect might be indirect in communities with relatively good housing conditions [84]. Hence, it is more important to improve the living environment of the working poor and hope to improve their mental health to avoid aggravation of their perception of pain. Notwithstanding the well-documented association between the built environment and pain, or health and mental health in general [27,84,85], there are not many studies examining the impact of the built environment on pain interference specifically. The effect of age of the buildings on pain interference had not been examined directly in the literature, and previous studies have suggested older buildings are usually found in improvised neighborhoods lacking well-organized facilities, and the inconveniences would cause the residents suffering from pain and limiting their socialization, thus further aggravating their perception of pain interference [5,86]. While density of residential population, social connectivity in residential building layout, and poor ventilation have separately been linked to poor health [87], and particularly the building’s poor ventilation has been linked to a higher risk of pain [32,88], their linkages to pain interference have never been studied. Nor have their collective effects embodied in particular public housing designs ever been explored in the context of pain interference. The prevalence is nevertheless highest among low-income populations, who were more likely to populate public housing compared to middle- and high-income populations.
In addition to isolating individual determents’ effects from an intricately related ensemble of factors with a novel machine learning model, we have applied an interpretable approach to quantifying the relative weights of the unique and combined contribution of each factor selected by random forest models to enable decision-makers to target the allocation of resources at the frontline and the development of policies to address long-term needs. For example, when cross-referencing the model-based assignment of weights to the mixed building- and individual-level features reported in the right column of Table 2 with the scoring system shown in Table 3. On the one hand, the decision-makers can narrow the perimeter of the community screening for pain and its interference to older buildings with smaller living areas that were built with the construction models that received the greater weights (or, more broadly speaking, those with poor ventilation, high connectivity, and a social mix) and target building residents who are working poor and age between 44 and 73 with clerical or catering jobs for more in-depth assessment and intervention. The decision-makers can also put in place occupational health policies targeting low-income middle-aged individuals working in specific jobs for pain management programs, as well as housing policies to mitigate the adverse effects of poor ventilation and high connectivity in current and future public housing.
In addition, the current study is in alignment with a small but emerging body of literature that classifies clinical outcomes by modeling the unique and combined contributions of an ensemble of comprehensive and intricately related features with a random frost algorithm. One example of using a random forest algorithm is to investigate important variables for patient safety, as researchers can predict accurate and stable relationships between variables, and healthcare quality knowledge, organizational factors, and top management objectives were found to play a crucial role in determining patient safety grades [89]. The algorithm can automatically handle interactions with accurate predictions even when a large number of variables are present. Random forest algorithms have built-in cross-validation capability to enable the independent variables to be ranked according to their association with the outcome variable, from most effective to least effective [90]. There are many variables associated with health outcomes in the real world of healthcare delivery, and it is not easy to predict the relationship between variables even with advanced statistics. The random forest algorithm is useful for the investigation of risk predictors of different health outcomes in a complex healthcare environment. On the other hand, the current study adds additional value to the literature with its novel application of the random forest algorithm to drive the development of a scoring system whose purpose is to identify in community settings the working poor at risk of pain interference across different areas.
The limitations of the current study include that its participants were recruited from only one NGO, and the sample size is not very large. The study subjects are from grass roots, mainly living in poor conditions, which fits the criteria of working poor. The random forest-based algorithm can select features by integrating individual decision trees’ rank-ordering of features based on each feature’s unique and combined contribution to the study outcomes and optimizing the cutoff values defining the response levels of selected features and assigning the weights to the corresponding response levels of the selected features. The method can accommodate the current sample size. It would further enrich the findings if future studies could recruit members from the local District Health Center (a hub for primary healthcare services), and the Center would conduct pain assessments into different categories of severity. Similar studies would be conducted in other districts, including those with better living conditions and higher socio-economic status. This would enable a more detailed comparative analysis of the impact of the environment on pain for people of different socio-economic statuses.

5. Conclusions

There is a benefit to informing community pain screening to target residential areas whose built environment contributed most to pain interference and informing the design of intervention programs to minimize pain interference among those suffering from chronic pain and showing specific characteristics. Pain interference among the working poor has a significant impact on their livelihood, such as decreased productivity, impaired job performance, and limitations on daily activities. The findings of this study can serve as a reminder for primary care physicians to obtain a detailed social history of their patients to identify those patients with high living environmental risks to assess pain and its interference for effective prevention. Early intervention would empower patients with pain management skills to minimize pain and suffering, prevent further deterioration, and restore functional activity as far as possible. The findings support the call for good architecture to provide spirit and value to buildings, which are the nodes of a city, as described by Woo and Ko in a chapter on city development in Hong Kong [91].

Author Contributions

Conceptualization: E.L., J.G., A.L. and N.F.; methodology: E.L. and J.G.; formal analysis: S.C.C.C.; data extraction: S.C.C.C., H.Y. and Y.H.; data wrangling: Y.L. and Y.H.; writing—original draft preparation E.L., J.G., Y.L., A.L. and C.-T.H.; writing—review and editing: H.W.H.T., R.X. and H.Y.; visualization: S.C.C.C.; supervision: A.L. and H.W.H.T.; funding acquisition: A.L. and E.L. All authors have read and agreed to the published version of the manuscript.

Funding

Supported by the Strategic Public Policy Research Funding Scheme (project No.: S2019.A4.015.19S). The funder had no role in study design, data collection/analysis/interpretation or manuscript preparation.

Institutional Review Board Statement

Ethics approval—approved by Chinese University of Hong Kong Research Committee—the Human Subjects Ethics Sub-Committee.

Informed Consent Statement

Clients of the studied NGO have provided consent to the studied NGO to analyze and report their data in an anonymized and aggregated form for the purposes of service quality improvement, education and research. The studied NGO has consented to our analyzing and reporting of the data under their custodianship under strict confidentiality agreements that safeguard the anonymity of their clients while performing service quality improvement, education and research.

Data Availability Statement

The studied NGO owns the data, and hence we cannot share it publicly. The datasets generated and/or analyzed during the current study are not publicly available due to restrictions being put on data sharing by Hong Kong’s Personal Data (Privacy) Ordinance (Cap. 486) (PDPO), including, but not exclusive to, PDPO’s Guidance Note in Cross-border Data Transfer. In addition, the Research Ethics Committees of the Chinese University of Hong Kong did not give the PI permission to make public the data concerning recipients of any social services.

Conflicts of Interest

The authors declare no conflicts of interests.

References

  1. Zimmer, Z.; Fraser, K.; Grol-Prokopczyk, H.; Zajacova, A. A global study of pain prevalence across 52 countries: Examining the role of country-level contextual factors. Pain 2022, 163, 1740–1750. [Google Scholar] [CrossRef]
  2. Jackson, T.; Thomas, S.; Stabile, V.; Han, X.; Shotwell, M.; McQueen, K. Prevalence of chronic pain in low-income and middle-income countries: A systematic review and meta-analysis. Lancet 2015, 385, S10. [Google Scholar] [CrossRef]
  3. Saastamoinen, P.; Leino-Arjas, P.; Laaksonen, M.; Lahelma, E. Socio-economic differences in the prevalence of acute, chronic and disabling chronic pain among ageing employees. Pain 2005, 114, 364–371. [Google Scholar] [CrossRef]
  4. Macfarlane, T.V.; Beasley, M.; Macfarlane, G.J. Self-Reported Facial Pain in UK Biobank Study: Prevalence and Associated Factors. J. Oral. Maxillofac. Res. 2014, 5, e2. [Google Scholar] [CrossRef] [PubMed]
  5. Wright, M.A.; Adelani, M.; Dy, C.; O’Keefe, R.; Calfee, R.P. What is the Impact of Social Deprivation on Physical and Mental Health in Orthopaedic Patients? Clin. Orthop. Relat. Res. 2019, 477, 1825–1835. [Google Scholar] [CrossRef] [PubMed]
  6. McDougall, J.A.; Blair, C.K.; Wiggins, C.L.; Goodwin, M.B.; Chiu, V.K.; Rajput, A.; Kinney, A.Y. Socioeconomic disparities in health-related quality of life among colorectal cancer survivors. J. Cancer Surviv. 2019, 13, 459–467. [Google Scholar] [CrossRef]
  7. Trachsel, L.A.; Munakomi, S.; Cascella, M. Pain Theory. In StatPearls; StatPearls Publishing: Treasure Island, FL, USA, 2023. Available online: https://www.ncbi.nlm.nih.gov/books/NBK545194/ (accessed on 17 April 2023).
  8. Belgen Kaygısız, B.; Elibol, N.; Acaröz Candan, S. Pain coping strategies and related factors including demographics, pain characteristics, functional mobility in postmenopausal women with chronic musculoskeletal pain. Women Health 2022, 62, 245–253. [Google Scholar] [CrossRef] [PubMed]
  9. Broderick, J.E.; Schneider, S.; Schwartz, J.E.; Stone, A.A. Interference with activities due to pain and fatigue: Accuracy of ratings across different reporting periods. Qual. Life Res. 2010, 19, 1163–1170. [Google Scholar] [CrossRef] [PubMed]
  10. Martin, S.; Nelson Schmitt, S.; Wolters, P.L.; Abel, B.; Toledo-Tamula, M.A.; Baldwin, A.; Wicksell, R.K.; Merchant, M.; Widemann, B. Development and Validation of the English Pain Interference Index and Pain Interference Index-Parent Report. Pain Med. 2015, 16, 367–373. [Google Scholar] [CrossRef]
  11. Basem, J.I.; White, R.S.; Chen, S.A.; Mauer, E.; Steinkamp, M.L.; Inturrisi, C.E.; Witkin, L.R. The effect of obesity on pain severity and pain interference. Pain Manag. 2021, 11, 571–581. [Google Scholar] [CrossRef]
  12. Barry, D.T.; Pilver Glenn, C.E.; Hoff, R.A.; Potenza, M.N. Pain Interference and Incident Medical Disorders in the General Population. Pain Med. 2016, 18, 1209–1217. [Google Scholar] [CrossRef]
  13. Osborne, T.L.; Jensen, M.P.; Ehde, D.M.; Hanley, M.A.; Kraft, G. Psychosocial factors associated with pain intensity, pain-related interference, and psychological functioning in persons with multiple sclerosis and pain. Pain 2007, 127, 52–62. [Google Scholar] [CrossRef]
  14. Turner, J.A.; Jensen, M.P.; Romano, J.M. Do beliefs, coping, and catastrophizing independently predict functioning in patients with chronic pain? Pain 2000, 85, 115–125. [Google Scholar] [CrossRef]
  15. Nicholson Perry, K.; Nicholas, M.K.; Middleton, J. Spinal cord injury-related pain in rehabilitation: A cross-sectional study of relationships with cognitions, mood and physical function. Eur. J. Pain 2009, 13, 511–517. [Google Scholar] [CrossRef] [PubMed]
  16. Lillis, J.; Graham Thomas, J.; Seng, E.K.; Lipton, R.B.; Pavlović, J.M.; Rathier, L.; Roth, J.; O’Leary, K.C.; Bond, D.S. Importance of Pain Acceptance in Relation to Headache Disability and Pain Interference in Women With Migraine and Overweight/Obesity. Headache J. Head Face Pain 2017, 57, 709–718. [Google Scholar] [CrossRef] [PubMed]
  17. Salamon, K.S.; Dutta, R.A.; Hildenbrand, A.K. Improved pain acceptance and interference following outpatient interdisciplinary pediatric chronic pain treatment. Psychol. Health 2023, 38, 1184–1193. [Google Scholar] [CrossRef]
  18. Mäntyselkä, P.; Miettola, J.; Niskanen, L.; Kumpusalo, E. Glucose regulation and chronic pain at multiple sites. Rheumatology 2008, 47, 1235–1238. [Google Scholar] [CrossRef] [PubMed]
  19. Weingarten, T.N.; Moeschler, S.M.; Ptaszynski, A.E.; Hooten, W.M.; Beebe, T.J.; Warner, D.O. An assessment of the association between smoking status, pain intensity, and functional interference in patients with chronic pain. Pain Physician 2008, 11, 643–653. [Google Scholar] [CrossRef]
  20. Macchia, L. Having Less Than Others is Physically Painful: Income Rank and Pain Around the World. Soc. Psychol. Personal. Sci. 2024, 15, 215–224. [Google Scholar] [CrossRef]
  21. Beshai, S.; Mishra, S.; Meadows, T.J.; Parmar, P.; Huang, V. Minding the gap: Subjective relative deprivation and depressive symptoms. Soc. Sci. Med. 2017, 173, 18–25. [Google Scholar] [CrossRef]
  22. Slavich, G.M.; Irwin, M.R. From stress to inflammation and major depressive disorder: A social signal transduction theory of depression. Psychol. Bull. 2014, 140, 774–815. [Google Scholar] [CrossRef]
  23. Wiech, K.; Tracey, I. The influence of negative emotions on pain: Behavioral effects and neural mechanisms. NeuroImage 2009, 47, 987–994. [Google Scholar] [CrossRef]
  24. Axon, D.R.; Kim, A. Relationship between Perceived Pain Interference and Poor Psychological Wellbeing among United States Adults. Behav. Sci. 2023, 13, 240. [Google Scholar] [CrossRef]
  25. Vigil, J.M.; Pendleton, P.; Coulombe, P.; Vowles, K.E.; Alcock, J.; Smith, B.W. Pain patients and who they live with: A correlational study of coresidence patterns and pain interference. Pain Res. Manag. 2014, 19, e109–e114. [Google Scholar] [CrossRef]
  26. Booker, S.Q. Living with pain in ‘age-(un)friendly’ housing environments: A qualitative study with African American older adults. Geriatr. Nurs. 2021, 42, 1294–1302. [Google Scholar] [CrossRef]
  27. Gherscovici, E.D.; Mayer, J.M. Relationship of Healthy Building Determinants with Back and Neck Pain: A Systematic Review. Am. J. Health Promot. 2023, 37, 103–131. [Google Scholar] [CrossRef] [PubMed]
  28. Wells, N.M.; Rollings, K.A.; Ong, A.D.; Reid, M.C. Nearby Nature Buffers the Pain Catastrophizing–Pain Intensity Relation Among Urban Residents with Chronic Pain. Front. Built Environ. 2019, 5, 142. [Google Scholar] [CrossRef]
  29. Bernatchez, M.S.; Savard, J.; Aubin, M.; Ivers, H. Correlates of disrupted sleep–wake variables in patients with advanced cancer. BMJ Support. Palliat. Care 2020, 10, 55–63. [Google Scholar] [CrossRef] [PubMed]
  30. Martin, L.; Porreca, F.; Mata, E.I.; Salloum, M.; Goel, V.; Gunnala, P.; Killgore, W.D.S.; Jain, S.; Jones-MacFarland, F.N.; Khanna, R.; et al. Green Light Exposure Improves Pain and Quality of Life in Fibromyalgia Patients: A Preliminary One-Way Crossover Clinical Trial. Pain Med. 2020, 22, 118–130. [Google Scholar] [CrossRef] [PubMed]
  31. Gabriel, A.F.; Paoletti, G.; Seta, D.D.; Panelli, R.; Marcus, M.A.E.; Farabollini, F.; Carli, G.; Joosten, E.A.J. Enriched environment and the recovery from inflammatory pain: Social versus physical aspects and their interaction. Behav. Brain Res. 2010, 208, 90–95. [Google Scholar] [CrossRef]
  32. Pisinger, C.; Aadahl, M.; Toft, U.; Birke, H.; Zytphen-Adeler, J.; Jørgensen, T. The association between active and passive smoking and frequent pain in a general population. Eur. J. Pain 2011, 15, 77–83. [Google Scholar] [CrossRef]
  33. Yazzie, S.A.; Davis, S.; Seixas, N.; Yost, M.G. Assessing the Impact of Housing Features and Environmental Factors on Home Indoor Radon Concentration Levels on the Navajo Nation. Int. J. Environ. Res. Public Health 2020, 17, 2813. [Google Scholar] [CrossRef]
  34. Jacobs, D.E.; Wilson, J.; Dixon, S.L.; Smith, J.; Evens, A. The Relationship of Housing and Population Health: A 30-Year Retrospective Analysis. Environ. Health Perspect. 2009, 117, 597–604. [Google Scholar] [CrossRef] [PubMed]
  35. Jatta, E.; Jawara, M.; Bradley, J.; Jeffries, D.; Kandeh, B.; Knudsen, J.B.; Wilson, A.L.; Pinder, M.; D’Alessandro, U.; Lindsay, S.W. How house design affects malaria mosquito density, temperature, and relative humidity: An experimental study in rural Gambia. Lancet Planet. Health 2018, 2, e498–e508. [Google Scholar] [CrossRef] [PubMed]
  36. Foye, C. The Relationship between Size of Living Space and Subjective Well-Being. J. Happiness Stud. 2017, 18, 427–461. [Google Scholar] [CrossRef]
  37. Seguel, J.M.; Merrill, R.; Seguel, D.; Campagna, A.C. Indoor Air Quality. Am. J. Lifestyle Med. 2017, 11, 284–295. [Google Scholar] [CrossRef]
  38. Shan, Y.; Wu, W.; Fan, W.; Haahtela, T.; Zhang, G. House dust microbiome and human health risks. Int. Microbiol. 2019, 22, 297–304. [Google Scholar] [CrossRef] [PubMed]
  39. Kembel, S.W.; Jones, E.; Kline, J.; Northcutt, D.; Stenson, J.; Womack, A.M.; Bohannan, B.J.M.; Brown, G.Z.; Green, J.L. Architectural design influences the diversity and structure of the built environment microbiome. ISME J. 2012, 6, 1469–1479. [Google Scholar] [CrossRef] [PubMed]
  40. Lowry, S. Housing. Br. Med. J. 1991, 303, 838. [Google Scholar] [CrossRef] [PubMed]
  41. Cheng, C.K.C.; Lam, K.M.; Leung, Y.T.A.; Yang, K.; Li Danny, H.W.; Cheung Sherman, C.P. Wind-induced natural ventilation of re-entrant bays in a high-rise building. J. Wind Eng. Ind. Aerodyn. 2011, 99, 79–90. [Google Scholar] [CrossRef]
  42. Wang, C.H.; Kuo, N.W.; Anthony, K. Impact of sunlight on pain interference-natural energy and recovery. In Proceedings of the International Conference on Energy Equipment Science and Engineering (ICEESE), Guangzhou, China, 30–31 May 2015; pp. 1781–1785. [Google Scholar]
  43. Lu, J. The value of a south-facing orientation: A hedonic pricing analysis of the Shanghai housing market. Habitat Int. 2018, 81, 24–32. [Google Scholar] [CrossRef]
  44. Boon-Ying, L. Weather Feng Shui. 2022. Available online: https://www.hko.gov.hk/en/education/weather/weather-and-life/00143-weather-feng-shui.html (accessed on 24 October 2023).
  45. Kotani, H.; Satoh, R.; Yamanaka, T. Natural ventilation of light well in high-rise apartment building. Energy Build. 2003, 35, 427–434. [Google Scholar] [CrossRef]
  46. Okabe, D.; Tsuji, T.; Hanazato, M.; Miyaguni, Y.; Asada, N.; Kondo, K. Neighborhood Walkability in Relation to Knee and Low Back Pain in Older People: A Multilevel Cross-Sectional Study from the JAGES. Int. J. Environ. Res. Public Health 2019, 16, 4598. [Google Scholar] [CrossRef]
  47. Cao, Y.; Heng, C.K.; Fung, J.C. Using Walk-Along Interviews to Identify Environmental Factors Influencing Older Adults’ Out-of-Home Behaviors in a High-Rise, High-Density Neighborhood. Int. J. Environ. Res. Public Health 2019, 16, 4251. [Google Scholar] [CrossRef] [PubMed]
  48. Hua, J.; Mendoza-Vasconez, A.S.; Chrisinger, B.W.; Conway, T.L.; Todd, M.; Adams, M.A.; Sallis, J.F.; Cain, K.L.; Saelens, B.E.; Frank, L.D.; et al. Associations of social cohesion and quality of life with objective and perceived built environments: A latent profile analysis among seniors. J. Public Health 2020, 44, 138–147. [Google Scholar] [CrossRef]
  49. Gao, M.; Ahern, J.; Koshland, C.P. Perceived built environment and health-related quality of life in four types of neighborhoods in Xi’an, China. Health Place 2016, 39, 110–115. [Google Scholar] [CrossRef] [PubMed]
  50. Black, X.M.; Neill, C. Experience and expression of social isolation by inner-city high-rise residents. Hous. Care Support 2014, 17, 151–166. [Google Scholar] [CrossRef]
  51. Sykes, J.; Križ, K.; Edin, K.; Halpern-Meekin, S. Dignity and Dreams: What the Earned Income Tax Credit (EITC) Means to Low-Income Families. Am. Sociol. Rev. 2015, 80, 243–267. [Google Scholar] [CrossRef]
  52. Government of the Hong Kong Special Administrative Region. Main Analysis of the Poverty Situation in 2020; Commission on Poverty: Hong Kong, China, 2021. [Google Scholar]
  53. Poquet, N.; Lin, C. The Brief Pain Inventory (BPI). J. Physiother. 2016, 62, 52. [Google Scholar] [CrossRef]
  54. Husky, M.M.; Farin, F.F.; Compagnone, P.; Fermanian, C.; Kovess-Masfety, V. Chronic back pain and its association with quality of life in a large French population survey. Health Qual. Life Outcomes 2018, 16, 195. [Google Scholar] [CrossRef]
  55. Mellen, H.; Short, M. Designing for social interaction in high-density housing: A multiple case analysis of recently completed design-led developments in London. Front. Sustain. Cities 2023, 4, 1043701. [Google Scholar] [CrossRef]
  56. Su, M.; Tan, Y.-Y.; Liu, Q.-M.; Ren, Y.-J.; Kawachi, I.; Li, L.-M.; Lv, J. Association between perceived urban built environment attributes and leisure-time physical activity among adults in Hangzhou, China. Prev. Med. 2014, 66, 60–64. [Google Scholar] [CrossRef]
  57. Yau, H. Subdivided Flats: The Issue & Our Proposed Solutions. Available online: https://www.okokhk.org/post/subdivided-flats-the-issue-potential-solutions (accessed on 25 August 2023).
  58. Nouri, M.; Holden, M.; Sones, M. Social Quality of Life in High-Density Built Environments. In Knowledge Synthesis for the Emerging Asocial Society; Simon Fraser University: Burnaby, BC, Canada, 2022. [Google Scholar]
  59. Brennan, P.L.; Schutte, K.K.; Moos, R.H. Pain and use of alcohol to manage pain: Prevalence and 3-year outcomes among older problem and non-problem drinkers. Addiction 2005, 100, 777–786. [Google Scholar] [CrossRef]
  60. Serrano-Ibáñez, E.R.; Ramírez-Maestre, C.; Ruiz-Párraga, G.T.; Esteve, R.; López-Martínez, A.E. Pain Interference, Resilience, and Perceived Well-Being During COVID-19: Differences between Women with and without Trauma Exposure Prior to the Pandemic. Int. J. Public Health 2022, 67, 1604443. [Google Scholar] [CrossRef] [PubMed]
  61. Sahin, T.; Ayyildiz, A.; Gencer-Atalay, K.; Akgün, C.; Özdemir, H.M.; Kuran, B. Pain Symptoms in COVID-19. Am. J. Phys. Med. Rehabil. 2021, 100, 307–312. [Google Scholar] [CrossRef]
  62. Xie, F.; Chakraborty, B.; Ong, M.E.H.; Goldstein, B.A.; Liu, N. AutoScore: A Machine Learning–Based Automatic Clinical Score Generator and Its Application to Mortality Prediction Using Electronic Health Records. JMIR Med. Inform. 2020, 8, e21798. [Google Scholar] [CrossRef]
  63. Xie, H.; Mahoney, D.W.; Foote, P.H.; Burger, K.N.; Doering, K.A.; Taylor, W.R.; Then, S.S.; Cao, X.; McGlinch, M.; Berger, C.K.; et al. Novel Methylated DNA Markers in the Surveillance of Colorectal Cancer Recurrence. Clin. Cancer Res. 2021, 27, 141–149. [Google Scholar] [CrossRef]
  64. Segal, M.R. Regression Trees for Censored Data. Biometrics 1988, 44, 35–47. [Google Scholar] [CrossRef]
  65. Bland, J.M.; Altman, D.G. The logrank test. BMJ 2004, 328, 1073. [Google Scholar] [CrossRef] [PubMed]
  66. Leblanc, M.; Crowley, J. Survival Trees by Goodness of Split. J. Am. Stat. Assoc. 1993, 88, 457–467. [Google Scholar] [CrossRef]
  67. Hamidi, O.; Poorolajal, J.; Farhadian, M.; Tapak, L. Identifying Important Risk Factors for Survival in Kidney Graft Failure Patients Using Random Survival Forests. Iran. J. Public Health 2016, 45, 27–33. [Google Scholar] [PubMed]
  68. Hsich, E.; Gorodeski, E.Z.; Blackstone, E.H.; Ishwaran, H.; Lauer, M.S. Identifying important risk factors for survival in patient with systolic heart failure using random survival forests. Circ. Cardiovasc. Qual. Outcomes 2011, 4, 39–45. [Google Scholar] [CrossRef] [PubMed]
  69. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  70. Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap, 1st ed.; Chapman and Hall/CRC: Boca Raton, FL, USA, 1994. [Google Scholar]
  71. Evans, P.L.; McMillin, S.L.; Weyrauch, L.A.; Witczak, C.A. Regulation of Skeletal Muscle Glucose Transport and Glucose Metabolism by Exercise Training. Nutrients 2019, 11, 2432. [Google Scholar] [CrossRef] [PubMed]
  72. Hosmer, D.W., Jr.; Lemeshow, S.; Sturdivant, R.X. Applied Logistic Regression; John Wiley & Sons: Hoboken, NJ, USA, 2013. [Google Scholar]
  73. Thomas, E.; Mottram, S.; Peat, G.; Wilkie, R.; Croft, P. The effect of age on the onset of pain interference in a general population of older adults: Prospective findings from the North Staffordshire Osteoarthritis Project (NorStOP). Pain 2007, 129, 21–27. [Google Scholar] [CrossRef]
  74. Boggero, I.A.; Geiger, P.J.; Segerstrom, S.C.; Carlson, C.R. Pain Intensity Moderates the Relationship between Age and Pain Interference in Chronic Orofacial Pain Patients. Exp. Aging Res. 2015, 41, 463–474. [Google Scholar] [CrossRef] [PubMed]
  75. Allen, S.A.; Dal Grande, E.; Abernethy, A.P.; Currow, D.C. Two colliding epidemics—Obesity is independently associated with chronic pain interfering with activities of daily living in adults 18 years and over; a cross-sectional, population-based study. BMC Public Health 2016, 16, 1034. [Google Scholar] [CrossRef] [PubMed]
  76. Chung, J.W.Y.; So, H.C.F.; Yan, V.C.M.; Kwok, P.S.T.; Wong, B.Y.M.; Yang, J.Y.; Chan, A.P.C. A Survey of Work-Related Pain Prevalence Among Construction Workers in Hong Kong: A Case-Control Study. Int. J. Environ. Res. Public Health 2019, 16, 1404. [Google Scholar] [CrossRef]
  77. Kerckhove, N.; Lambert, C.; Corteval, A.; Pereira, B.; Eschalier, A.; Dualé, C. Cross-Sectional Study of Prevalence, Characterization and Impact of Chronic Pain Disorders in Workers. J. Pain 2021, 22, 520–532. [Google Scholar] [CrossRef]
  78. Swain, C.T.V.; Bassett, J.K.; Hodge, A.M.; Bruinsma, F.J.; Mahmood, S.; Jayasekara, H.; Macinnis, R.J.; Giles, G.G.; Milne, R.L.; English, D.R.; et al. Domain-Specific Physical Activity, Pain Interference, and Muscle Pain after Activity. Med. Sci. Sports Exerc. 2020, 52, 2145–2151. [Google Scholar] [CrossRef]
  79. Bushnell, M.C.; Case, L.K.; Ceko, M.; Cotton, V.A.; Gracely, J.L.; Low, L.A.; Pitcher, M.H.; Villemure, C. Effect of environment on the long-term consequences of chronic pain. Pain 2015, 156 (Suppl. S1), S42–S49. [Google Scholar] [CrossRef]
  80. Bushnell, M.C.; Ceko, M.; Low, L.A. Cognitive and emotional control of pain and its disruption in chronic pain. Nat. Rev. Neurosci. 2013, 14, 502–511. [Google Scholar] [CrossRef]
  81. Liu, R.; Zhou, Y.; Liu, Y.; Guo, R.; Gao, L. Association between living environmental quality and risk of arthritis in middle-aged and older adults: A national study in China. Front. Public Health 2023, 11, 1181625. [Google Scholar] [CrossRef] [PubMed]
  82. Main, C.J. The importance of psychosocial influences on chronic pain. Pain Manag. 2013, 3, 455–466. [Google Scholar] [CrossRef] [PubMed]
  83. Xu, J.; Liu, N.; Polemiti, E.; Garcia-Mondragon, L.; Tang, J.; Liu, X.; Lett, T.; Yu, L.; Nöthen, M.M.; Feng, J.; et al. Effects of urban living environments on mental health in adults. Nat. Med. 2023, 29, 1456–1467. [Google Scholar] [CrossRef]
  84. Kan, Z.; Kwan, M.-P.; Ng, M.K.; Tieben, H. The Impacts of Housing Characteristics and Built-Environment Features on Mental Health. Int. J. Environ. Res. Public Health 2022, 19, 5143. [Google Scholar] [CrossRef] [PubMed]
  85. Nagasawa, N.; Yamaguchi, R.; Kato, R.; Tanabe, S.-I. Longitudinal study of housing for the promotion of health and well-being using a covariance structure model to identify the causal relationships between satisfaction with living environment, stress, and chronic low back pain. Jpn. Archit. Rev. 2018, 1, 154–166. [Google Scholar] [CrossRef]
  86. Green, C.R.; Hart-Johnson, T. The Association Between Race and Neighborhood Socioeconomic Status in Younger Black and White Adults with Chronic Pain. J. Pain 2012, 13, 176–186. [Google Scholar] [CrossRef] [PubMed]
  87. WHO. Household Air Pollution. 2023. Available online: https://www.who.int/news-room/fact-sheets/detail/household-air-pollution-and-health (accessed on 20 December 2023).
  88. Schneider, S.; Schmitt, H.; Zoller, S.; Schiltenwolf, M. Workplace stress, lifestyle and social factors as correlates of back pain: A representative study of the German working population. Int. Arch. Occup. Environ. Health 2005, 78, 253–269. [Google Scholar] [CrossRef] [PubMed]
  89. Haripriya, G.; Abinaya, K.; Aarthi, N.; Kumar, P.; Darbari, S. Random Forest Algorithms in Health Care Sectors: A Review of Applications. Int. J. Recent Dev. Comput. Technol. Softw. Appl. 2012, 5, 1. [Google Scholar]
  90. Swarn, A.K.; Harsh, K.; Vishal, D.; Pooja, D. The Role of MachineLearning in COVID-19 in Medical Domain: A Survey. J. Recent Innov. Cloud Comput. Virtualiz. Web Appl. 2020, 4, 1–12. [Google Scholar]
  91. Woo, J.; Ko, R. Fifty New Home: How to build an age friendly city. In Hong Kong City Development: Review and Way Forward; Chan, C., Ed.; Joint Publishing (HK): Hong Kong, China, 2023; pp. 296–313. [Google Scholar]
Figure 1. Schematic illustration comparing the selection and splitting mechanism between single decision tree and random forest. Note: The schematic represents the steps of random forest algorithms at a high-level: (1) Take the original dataset and create N subsample of size n, with n smaller than the size of the original dataset. (2) Train a decision tree with each of the N subsamples’ datasets as input. But when doing a node split, do not explore all features in the dataset. Randomly select a smaller number of features (M) from all the features in the training set. Then, pick the best split using impurity measures, like Gini Impurity or Entropy. (3) Aggregate the results of the individual decision trees into a single output. (4) Preform the classification task by taking a majority vote across all trees, for each observation.
Figure 1. Schematic illustration comparing the selection and splitting mechanism between single decision tree and random forest. Note: The schematic represents the steps of random forest algorithms at a high-level: (1) Take the original dataset and create N subsample of size n, with n smaller than the size of the original dataset. (2) Train a decision tree with each of the N subsamples’ datasets as input. But when doing a node split, do not explore all features in the dataset. Randomly select a smaller number of features (M) from all the features in the training set. Then, pick the best split using impurity measures, like Gini Impurity or Entropy. (3) Aggregate the results of the individual decision trees into a single output. (4) Preform the classification task by taking a majority vote across all trees, for each observation.
Ijerph 21 00179 g001
Table 1. Descriptive statistics of patients’ features and distribution of reported areas of pain interference.
Table 1. Descriptive statistics of patients’ features and distribution of reported areas of pain interference.
Pain Interference Outcome/Feature Prevalence
MoodNo58.1%
Yes41.9%
Daily ActivityNo27.1%
Yes72.9%
Sleeping QualityNo50.0%
Yes50.0%
Social RelationshipsNo74.8%
Yes25.2%
Work PerformanceNo53.3%
Yes46.7%
The ordinal counts of how many areas suffered from pain interference0–1 item24.8%
2 items29.0%
3 items31.0%
4+ items15.2%
Predictive Features
AgeMean (SD)55.58 (12.08)
SexF77.8%
M22.2%
Main OccupationCatering Staff10.3%
Cleaning Worker25.9%
Clerk6.0%
Driver1.1%
Domestic Helper37.1%
Sales4.3%
Security Guard/Watchman10.3%
Technician2.5%
Construction/Manual Worker2.5%
Blood Pressure (WHO standard)Low0%
Normal78.6%
High21.4%
BMI (HA Asian standard)Underweight3.3%
Normal weight31.0%
Pre-obesity 23.8%
Obesity class (mid)32.4%
Obesity class [18] 9.5%
Blood Glucose (WHO HK standard)Low10.5%
Normal83.8%
High5.7%
DrinkerNo93.7%
Yes6.3%
SmokerNo92.6%
Yes7.4%
Pain Position: ElbowNo95.7%
Yes4.3%
Pain Position: FootNo79.5%
Yes20.5%
Pain Position: HandNo70.5%
Yes29.5%
Pain Position: KneeNo63.8%
Yes36.2%
Pain Position: Lower backNo57.6%
Yes42.4%
Pain Position: NeckNo79.5%
Yes20.5%
Pain Position: ShoulderNo67.6%
Yes32.4%
Pain Position: Upper backNo92.4%
Yes7.6%
Pain Position: OtherNo91.9%
Yes8.1%
Pain intensity: mild conditionMean (SD)3.0 (2.4)
Pain intensity: severe conditionMean (SD)6.5 (1.9)
Residential Population DensityMean (SD)1970.9 (731.0)
Subdivided unitsNo96.2%
Yes3.8%
Indication of re-entrant bayNo10.7%
Yes89.3%
Presence of TerraceNo63.1%
Yes36.9%
Cardinal OrientationEast8.10%
North11.90%
Northeast14.40%
Northwest15.70%
South13.10%
Southeast10.60%
Southeast and Northwest2.50%
Southwest12.50%
West11.30%
Number of light wellsMean (SD)12.71 (7.95)
Number of LiftsMean (SD)5.02 (1.31)
Number of corridors of the buildingMean (SD)3.79 (1.93)
Age of the buildingMean (SD)26.04 (9.66)
Number of flatsMean (SD)695.98 (238.34)
Proportion of flat with 1–2 non-functional rooms in the building (vs. 3+ non-functional rooms) 36%
Follow-up Plan assignedNo11.4%
Yes88.6%
COVID periodwave 4–547.6%
wave 552.4%
Table 2. (a) A Feature Importance ranking and overall scores for individual-level model without built environment features. (b) Feature Importance ranking for model with built environment related features.
Table 2. (a) A Feature Importance ranking and overall scores for individual-level model without built environment features. (b) Feature Importance ranking for model with built environment related features.
(a)
DescriptionMoodDaily ActivitiesSleeping QualitySocial LifeWork PerformanceScore
Age1111299
Main Occupation4234191
Pain intensity: mild condition2323491
Pain intensity: severe condition3442389
BMI5555580
Blood Glucose76912665
Pain Position: Shoulder89861064
Pain Position: Lower back97781163
Pain Position: Knee1081010859
Pain Position: Hand121169958
Pain Position: Neck61311131250
Blood Pressure14121311748
Pain Position: Foot13141271445
Sex111015141342
Pain Position: Other151616161527
Pain Position: Upper back181514 1621
Drinker16 18151718
Smoker 1717 1811
Pain Position: Elbow17 17 8
Sub-divided flat 18 18 6
(b)
DescriptionMoodDaily ActivitiesSleeping QualitySocial LifeWork PerformanceScore
Cardinal orientation1141197
Age3212394
Main Occupation5337285
Pain intensity: mild condition2454783
Pain intensity: severe condition4825680
Proportion of flat with <3 non-functional room7763478
Age of the building6576873
BMI8688570
Number of corridors of the building11111013951
Number of lifts121213151142
Number of light wells99 9 36
Pain Position: Lower back141414101439
Pain Position: Knee13101117 33
Blood Pressure151516141233
Pain Position: Hand16179181629
Pain Position: Neck101615 1726
Blood Glucose17 12 1024
Presence of terrace18 121518
Pain Position: Shoulder 18 11 13
Pain Position: Foot19 17191316
Pain Position: Other 13 8
Pain Position: Upper back 16 5
Sex 183
Table 3. Weights assigned to features selected by individual-level vs. individual-and-building-level models.
Table 3. Weights assigned to features selected by individual-level vs. individual-and-building-level models.
Model without Built Environment Related Features Model with Built Environment Related Features
(AUC: 0.7129)(AUC: 0.9085)
FeatureFeature LevelRankScoreFeature LevelRankScore
Age<3613<34.265
[36, 44)3[34.2, 42)3
[44, 67)6[42, 66.4)3
[67, 73)6[66.4, 70)0
≥730≥700
OccupationCatering211Catering56
Cleaner9Cleaner8
Clerk12Clerk6
Driver4Driver0
Housewife10Domestic Helper6
Sales11Sales4
Security0Security4
Technician2Technician3
Construction/manual work8Construction/manual work9
Pain intensity: mild condition<530<120
[5, 7.55)5[1, 5)2
≥7.5512[5, 6.85)7
≥6.857
Pain intensity: severe condition<343<440
[3, 5)3[4, 5)0
[5, 8)9[5, 8)3
[8, 9.55)9[8, 9)3
≥9.5521≥96
BMI(1) Underweight50(1) Underweight90
(2) Normal weight0(2) Normal weight0
(3) Pre-obesity9(3) Pre-obesity0
(4) Obesity class (mid)9(4) Obesity class (mid)1
(5) Obesity class (severe)9(5) Obesity class (severe)1
Blood Glucose(1) Low60(1) Low
(2) Normal0(2) Normal
(3) Abnormal5(3) Abnormal
Pain Position: KneeNo70No140
Yes2Yes4
Pain Position: Lower backNo80
Yes3
Pain Position: FootNo90
Yes1
Pain Position: ShoulderNo100No150
Yes2Yes1
Pain Position: HandNo110No110
Yes2Yes3
Pain Position: NeckNo120
Yes2
SexF131
M0
Blood Pressure(1) Normal150(1) Normal
(2) High2(2) High
Pain Position: Upper backNo170No
Yes4Yes
Cardinal Orientation East17
North9
Northeast6
Northwest12
South5
Southeast0
Southeast and Northwest7
Southwest6
West5
Proportion of flat with >2 non-functional room <0.032637
[0.0326, 0.125)7
[0.125, 0.461)3
[0.461, 0.709)3
≥0.7090
Number of flat <26770
[267, 564)3
[564, 799)10
[799, 1140)10
≥114010
Age of the building <1180
[11, 17)0
[17, 31)8
[31, 37.8)8
≥37.88
# of light wells <2.3105
[2.3, 5)5
[5, 16)0
[16, 27)0
≥270
Number of corridors of the building <2124
[2, 4)10
≥410
Number of lifts <3130
[3, 4)4
≥410
Table 4. (a) The number of pain-interfered areas across different range of total score tallied from weights assigned to features selected from an individual-level-only model. (b) The number of pain-interfered areas across different range of total score tallied from weights assigned to features selected from a mixed individual- and building-level model.
Table 4. (a) The number of pain-interfered areas across different range of total score tallied from weights assigned to features selected from an individual-level-only model. (b) The number of pain-interfered areas across different range of total score tallied from weights assigned to features selected from a mixed individual- and building-level model.
(a)
Total Score0–1 Area2 Areas3 Areas4+ Areas
[21, 40]0.6000.2500.0750.075
[41, 60]0.1040.2940.3620.239
[61, 80]0.0380.1920.3080.462
[81, 100]0.0000.0000.0001.000
(b)
Total Score0–1 Area2 Areas3 Areas4+ Areas
[31, 40]1.0000.0000.0000.000
[41, 50]0.6360.3640.0000.000
[51, 60]0.2140.2710.3570.157
[61, 100]0.0000.0000.0001.000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Leung, E.; Lee, A.; Liu, Y.; Hung, C.-T.; Fan, N.; Ching, S.C.C.; Yee, H.; He, Y.; Xu, R.; Tsang, H.W.H.; et al. Impact of Environment on Pain among the Working Poor: Making Use of Random Forest-Based Stratification Tool to Study the Socioecology of Pain Interference. Int. J. Environ. Res. Public Health 2024, 21, 179. https://doi.org/10.3390/ijerph21020179

AMA Style

Leung E, Lee A, Liu Y, Hung C-T, Fan N, Ching SCC, Yee H, He Y, Xu R, Tsang HWH, et al. Impact of Environment on Pain among the Working Poor: Making Use of Random Forest-Based Stratification Tool to Study the Socioecology of Pain Interference. International Journal of Environmental Research and Public Health. 2024; 21(2):179. https://doi.org/10.3390/ijerph21020179

Chicago/Turabian Style

Leung, Eman, Albert Lee, Yilin Liu, Chi-Tim Hung, Ning Fan, Sam C. C. Ching, Hilary Yee, Yinan He, Richard Xu, Hector Wing Hong Tsang, and et al. 2024. "Impact of Environment on Pain among the Working Poor: Making Use of Random Forest-Based Stratification Tool to Study the Socioecology of Pain Interference" International Journal of Environmental Research and Public Health 21, no. 2: 179. https://doi.org/10.3390/ijerph21020179

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop