Cold region city street space healing evaluation method based on deep learning
By processing street space image data with deep learning technology, and combining psychological and physiological indicators, a therapeutic evaluation model of street space in cold regions is constructed, which solves the problems of large-scale evaluation and low accuracy of winter prediction in the existing technology, and achieves cold weather forecasting. Efficient assessment and accurate prediction of urban street space.
Patent Information
- Application Number
- CN202410768699.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-11
AI Technical Summary
Existing methods for evaluating the healing properties of street spaces cannot conduct large-scale evaluations, and the accuracy of predicting the healing properties of winter street spaces in cold cities is low.
Using a method based on deep learning, by acquiring and processing street space image data, using the Enet semantic segmentation model to extract features, and combining psychological healing factors and physiological indicators, a street space healing evaluation model is constructed to conduct large-scale street space quality assessment. Forecasting and evaluation.
It improves the accuracy and efficiency of the therapeutic evaluation of street space, breaks through the single perspective and weather factor interference of traditional methods, is suitable for different seasonal scenes in cold cities, and achieves an efficient evaluation of the therapeutic effect of street spaces in cold cities. .
Smart Images

Figure CN118762255A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of street space evaluation, and in particular to a method for evaluating the therapeutic properties of street spaces in cold-region cities based on deep learning. Background Art
[0002] With the advancement of urbanization, the health problem of "urban diseases" has gradually become prominent. Under the influence of the high-density human settlement environment in cold-region cities, people's lifestyles are moving towards high calories and low physical activity. At the same time, the huge pressure of life and work has a negative impact on the mental health of residents. In addition to the basic function of traffic connection, street space also carries people's daily social activities and can provide people in busy and high-pressure lives with the most direct external space to perceive the natural environment. Therefore, giving full play to the health-promoting role of street space in cold-region cities and improving the health benefits of residents by basic means are important goals of cold-region healthy city construction.
[0003] At present, the research environment of restorativeness is mainly based on natural environments such as urban parks and green spaces. There are few evaluation studies on healing streets. At the research method level, it usually includes physiological instrument measurement methods and subjective restorative scale evaluation methods. However, traditional evaluation methods are still used, which can only evaluate the healing of a small number of street space samples, making it difficult to conduct large-scale spatial evaluation. In addition, the streetscape of cold-region cities changes significantly throughout the year, and the bleak and long winter is extremely likely to induce seasonal depression (Seasonal Affective Disorder, SAD). However, the current street healing evaluation method is not applicable to winter street spaces in cold-region cities, resulting in low accuracy in predicting the healing of winter street spaces in cold-region cities. Summary of the invention
[0004] The purpose of the present invention is to solve the problem that the existing street space therapeutic evaluation method cannot be used for large-scale evaluation and has low accuracy in predicting the therapeutic properties of street spaces in cold-region cities in winter, and proposes a cold-region city street space therapeutic evaluation method based on deep learning.
[0005] A method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning. The specific process is as follows:
[0006] Step 1: Obtain the street space image dataset to be evaluated;
[0007] Step 2: Input the street space image dataset to be evaluated into the trained Enet semantic segmentation model to obtain the street image features to be evaluated;
[0008] Step 3: Input the characteristics of the street image to be evaluated into the street space healing evaluation model to obtain the psychological healing factor value and the difference before and after physiological indicators of each street space image to be evaluated;
[0009] The psychological healing factor values include: forget trouble score B1, forget stress score B2, forget responsibility score B3, connection score E1, integration score E2, coherence score E3, exploration score F1, curiosity score F2, attraction score F3, nostalgia score F4, immersion score F5, opportunity score C1, problem solving score C2, adaptation score C3, realization score C4;
[0010] The physiological indicators include: heart rate mean, RR interval standard deviation, skin electrical index, respiratory amplitude, and respiratory frequency;
[0011] Step 4: Obtain the distance score, ductility score, charm score, and compatibility score of each street space image to be evaluated according to the psychological healing factor value of each street space image to be evaluated;
[0012] The distance score is the average value of B1, B2, and B3; the ductility score is the average value of E1, E2, and E3; the charm score is the average value of F1, F2, F3, F4, and F5; the compatibility score is the average value of C1, C2, C3, and C4;
[0013] Step 5, using the distance score, ductility score, charm score, compatibility score of each street space image to be evaluated obtained in step 4 and the difference between the physiological indicators before and after obtained in step 3 to obtain the total healing score of the street space to be evaluated;
[0014] Among them, the higher the total score of the therapeutic properties of the street space to be evaluated, the better the therapeutic properties of the street space to be evaluated.
[0015] Furthermore, the street space image data set to be evaluated includes: image data of each preset observation point of the street space to be evaluated.
[0016] Furthermore, the street image features to be evaluated in step 2 include: green view rate, sky openness, walkability, interface closure, visual complexity, pedestrian congestion, motor traffic impact, slow traffic occurrence rate, facility distribution rate, snow carrying capacity index, street building warm color index;
[0017] Green view rate = green plant area in the current street image to be evaluated / area of the current street image to be evaluated;
[0018] Sky openness = sky area in the current street image to be evaluated / area of the current street image to be evaluated;
[0019] Walkability = pedestrian road area in the current street image to be evaluated / area of the current street image to be evaluated;
[0020] Visual complexity = the number of object types identified and segmented in the current street image to be evaluated;
[0021] Pedestrian congestion degree = the pixel area of pedestrians in the street in the current street image to be evaluated / the area of the current street image to be evaluated;
[0022] Motor traffic impact = motor vehicle pixel area in the street in the current street image to be evaluated / area of the current street image to be evaluated;
[0023] Slow-moving appearance rate = pixel area of electric vehicles, bicycles and people in the current street image to be evaluated and / the area of the current street image to be evaluated;
[0024] Facility distribution rate = total pixel area of street lamps, street signs, trash cans, and seats in the current street image to be evaluated / area of the current street image to be evaluated;
[0025] Snow carrying capacity index = plant and shrub soil coverage area in the current street image to be evaluated / (area of the current street image to be evaluated*0.5);
[0026] Street building warm color index = warm color RGB pixel area in the building area in the current street image to be evaluated / current street image area to be evaluated.
[0027] Furthermore, the street space healing evaluation model is obtained by:
[0028] S1, obtaining a street view image database, and performing data cleaning on the street view image database to obtain a cleaned street view image database, and dividing the images in the cleaned street view image database into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time;
[0029] S2, using the cleaned street view image database to obtain a sample data set, and dividing the sample data set into a training set and a test set;
[0030] S3, using the training set to train the scoring model to obtain a trained scoring model;
[0031] S4. Use the test set to test the trained scoring model to obtain the street space therapeutic evaluation model.
[0032] Furthermore, the step S1 of acquiring a street view image database and performing data cleaning on the street view image database to obtain a cleaned street view image database is to divide the images in the cleaned street view image database into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time, specifically:
[0033] S101, setting an observation point at a preset distance for the streets of the cold region city to be studied, and using street view images of each observation point at different times to form a street view image database;
[0034] The cold city is a city with an average temperature below 0°C in January;
[0035] S102, cleaning the street view image database:
[0036] Delete empty images, duplicate images, completely black images, and street view images exceeding a preset exposure value in the street view image database;
[0037] S103, classifying the street view images in the street view image database after data cleaning into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time, and setting them as image labels;
[0038] The winter in cold-region cities is from December to February, the summer in cold-region cities is from June to August, and the remaining months are the transition season for cold-region cities.
[0039] Furthermore, in S2, the cleaned street view image database is used to obtain a sample data set, and the sample data set is divided into a training set and a test set, specifically:
[0040] S201, importing the cleaned street view image database into the VR panoramic device according to the image labels, and the experiencer answers the healing factor evaluation questions after the experience to obtain the psychological healing factor score, and all the psychological healing factor scores constitute the psychological index data set; at the same time, the physiological recorder is used to obtain the difference of physiological indicators before and after the VR experience, and all the differences of physiological indicators constitute the physiological index data set;
[0041] Physiological indicators include: ECG index, skin conductivity index, and respiratory index;
[0042] The electrocardiogram indexes include: mean heart rate, standard deviation of RR interval;
[0043] The respiratory indexes include: respiratory amplitude and respiratory rate;
[0044] S202, inputting the cleaned street view image into the trained Enet semantic segmentation model to obtain features of the cleaned street view image;
[0045] The cleaned street view image features include: green view rate, sky openness, walkability, interface closure, visual complexity, pedestrian congestion, motor traffic impact, slow traffic occurrence rate, facility distribution rate, snow carrying capacity index, street building warm color index;
[0046] S203, using the psychological index data set, the physiological index data set and the corresponding cleaned street view image features in S201 to form a sample data set, and dividing the sample set into a training set and a test set.
[0047] Furthermore, the healing factor scores and corresponding healing factor evaluation questions are as follows:
[0048] Forget Worries Rating B1-This place allows me to temporarily forget the worries in work and daily life;
[0049] Forget Stress Score B2-This allows me to temporarily forget the pressure brought by other people's demands and expectations;
[0050] Forgetting Responsibilities Score B3-This allows me to temporarily forget the responsibilities and obligations I have undertaken;
[0051] Connection score E1-Everything here is interconnected;
[0052] Integration score E2-Everything here is well integrated into the environment;
[0053] Coherence score E3-The surrounding environment is generally coherent;
[0054] Exploration score F1 - There are a lot of things I want to explore here;
[0055] Curiosity score F2 - There are many things here that make me curious;
[0056] Attraction Rating F3-There are many things that attract me here;
[0057] Nostalgia score F4-There are many things here that make me linger;
[0058] Immersion score F5 - I feel deeply immersed in my surroundings;
[0059] Opportunity score C1-This gives me the opportunity to do what I like to do;
[0060] Problem Solving Score C2 - I am able to solve the problems presented here;
[0061] Adaptability score C3-I can adapt to the surrounding environment quickly;
[0062] Realization score C4-What I want to do can be realized in this environment;
[0063] Among them, the healing factor score is 0-6 points, and the higher the score, the more recognized the content of the healing factor evaluation questions.
[0064] Furthermore, the scoring model includes: a pre-trained BERT model layer, a fixed parameter BERT model layer, a 6-layer self-attention layer, and a linear layer;
[0065] The pre-trained BERT model layer is used to obtain the cleaned street view image feature code, and the cleaned street view image feature code is input into the 6-layer self-attention layer;
[0066] The fixed parameter BERT model layer is used to extract the semantic features of the healing factor evaluation question and the before-after difference of the physiological index, and input the semantic features of the healing factor evaluation question and the before-after difference of the physiological index into the 6-layer self-attention layer;
[0067] The six self-attention layers are used to concatenate the cleaned street view image feature encoding with the semantic features of each healing factor evaluation question and the difference between the before and after physiological indicators, and input the concatenation result into the linear layer;
[0068] The linear layer is used to perform multi-head classification on the splicing results to obtain each healing factor score and the before-after difference of the physiological index for each street view image.
[0069] Furthermore, the trained scoring model is tested using the test set in S4 to obtain a street space healing evaluation model, specifically:
[0070] The trained scoring model in each round is tested to obtain the logarithmic loss of the trained scoring model in each round. The trained scoring model with the smallest logarithmic loss within the preset training rounds is the street space therapeutic evaluation model.
[0071] Furthermore, the step 5 uses the distance score, ductility score, charm score, compatibility score of each street space image to be evaluated obtained in step 4 and the difference between the physiological indicators obtained in step 3 to obtain the total healing score of the street space to be evaluated, which is specifically:
[0072] Step 51: Normalize the remoteness score, ductility score, charm score, and compatibility score of each street space image to be evaluated, and take the average of the normalized remoteness score, ductility score, charm score, and compatibility score of each street space image to be evaluated as the total psychological healing score of each street space image to be evaluated;
[0073] The distance score, ductility score, charm score, and compatibility score of each street space image to be evaluated are normalized respectively, specifically:
[0074]
[0075] Where i' is the street image number to be evaluated, j is the score type number, j = 1, 2, 3, 4 represent the distance score type, ductility score type, charm score type, compatibility score type, x i'j is the j-th rating type score value of the i'th image, min(x j ) is the minimum value of the score value of the j-th score type, max(x j ) is the maximum value of the score value of the jth score type, z i'j is the normalized score value of the j-th score type of the i'th image;
[0076] Step 52: standardize the difference before and after values of each physiological index of each street image to be evaluated, calculate the weight of each physiological index by entropy weight method, and finally calculate the comprehensive score by weighted average, which is the total score of physiological healing of each street image to be evaluated;
[0077] Step 53: Use the total psychological healing score and the total physiological healing score of each street space image to be evaluated to obtain the total healing score of each street space image to be evaluated:
[0078] w i' =α×w i ”+(1-α)×w i ” '
[0079] Among them, 0≤α≤1, α is the preset preference coefficient, w i ” is the total score of the psychological healing of the i'th street space image to be evaluated, w i ” ' is the total score of physiological healing of the i'th street space image to be evaluated;
[0080] Step 54: Take the average of the total healing scores of each street space image to be evaluated as the total healing score of the street space to be evaluated.
[0081] The beneficial effects of the present invention are:
[0082] Based on convolutional neural networks, the present invention uses semantic segmentation algorithms to quantify the characteristic elements of street scene images in cold regions on a large scale, making the quantification of street space characteristic elements more efficient, accurate and reasonable. The present invention imports panoramic images into VR experimental equipment, freeing the experiencer from the constraints of geographical location, and improving the efficiency of therapeutic evaluation. The present invention deeply studies the therapeutic quality of street space construction from a VR panoramic perspective, breaking through the shackles of filling out therapeutic questionnaires after experiencing street scene photos from a single perspective, and reducing the interference of different weather factors, round-trip distances in locations, and physical strength of experiencers when filling out therapeutic questionnaires on the spot. At the same time, the present invention combines psychological healing indicators, physiological healing indicators and street space image features to evaluate the therapeutic nature of street space from two aspects, thereby improving the accuracy of street space therapeutic evaluation. The present invention proposes for the first time a method for evaluating the therapeutic nature of street space using deep learning technology, and realizes the prediction and evaluation of large-scale street space quality. The present invention fully considers the characteristics of cold-region cities, obtains street space scene samples of cold-region cities in winter, transition season and summer, and improves the accuracy and applicability of evaluating the therapeutic nature of street space in cold regions. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 It is a flow chart of the present invention;
[0084] Figure 2 Improved BERT model framework for RCS scale scoring;
[0085] Figure 3 Schematic diagram of the BIOPAC physiological instrument panel and measurement sites. DETAILED DESCRIPTION
[0086] Specific implementation method 1: Figure 1 As shown, the specific process of the cold-region city street space healing evaluation method based on deep learning in this embodiment is as follows:
[0087] Step 1: Obtain the street space image dataset to be evaluated:
[0088] The street space image data set to be evaluated includes: image data of each preset observation point of the street space to be evaluated;
[0089] Obtain the winter, transitional season, and summer street space panoramic images and observation point coordinates that need to be evaluated by calling APIs or on-site shooting, or from the existing street view image database;
[0090] Winter is from December to February, summer is from June to August, and the remaining months are transitional seasons;
[0091] Step 2: Input the street space image dataset to be evaluated into the trained Enet semantic segmentation model to obtain the street image features to be evaluated;
[0092] The street image features to be evaluated include: green view rate, sky openness, walkability, interface closure, visual field complexity, pedestrian congestion, motor traffic impact, slow traffic occurrence rate, facility distribution rate, snow carrying capacity index, street building warm color index;
[0093] Green view rate = green plant area in the current street image to be evaluated / area of the current street image to be evaluated;
[0094] Sky openness = sky area in the current street image to be evaluated / area of the current street image to be evaluated;
[0095] Walkability = pedestrian road area in the current street image to be evaluated / area of the current street image to be evaluated;
[0096] Visual field complexity = the number of object types identified and segmented in the previous street image to be evaluated; Pedestrian congestion = the pixel area of pedestrians in the street in the current street image to be evaluated / the area of the current street image to be evaluated;
[0097] Motor traffic impact = motor vehicle pixel area in the street in the current street image to be evaluated / area of the current street image to be evaluated;
[0098] Slow-moving appearance rate = pixel area of motor vehicles, bicycles and people in the current street image to be evaluated and / the area of the current street image to be evaluated;
[0099] Facility distribution rate = total pixel area of street facilities such as street lights, street signs, trash cans, and seats in the current street image to be evaluated / area of the current street image to be evaluated;
[0100] Snow carrying capacity index = plant and shrub soil coverage area in the current street image to be evaluated / (area of the current street image to be evaluated*0.5);
[0101] The “snow carrying capacity index” in the characteristic elements of street view images is that the present invention cuts the panoramic image and retains the lower half, and uses the proportion of the plant and shrub cover area to represent the snow carrying capacity, that is, the plant and shrub cover area / (image area*0.5);
[0102] Street building warm color index = warm color RGB pixel area in the building area of the current street image to be evaluated / current street image area to be evaluated;
[0103] The warm colors include: red, orange, yellow, and brown;
[0104] The “street building warm color index” in the feature element uses the OpenCV library in the Python program, takes the semantic segmentation result image as a mask, batch cuts out the image to retain the building area, and uses the Image colorSummarizer software to cluster the first 6 main colors and output RGB and HSV values. The warm color clusters are selected according to the RGB and HSV values, and the proportion of warm colors is calculated, that is, the warm color RGB pixel area in the building area / image area.
[0105] Step 3: Input the characteristics of each street space image to be evaluated into the street space healing evaluation model to obtain the psychological healing factor value and the difference between the physiological index before and after of each street space image to be evaluated;
[0106] The psychological healing factor values include: forget trouble score B1, forget stress score B2, forget responsibility score B3, connection score E1, integration score E2, coherence score E3, exploration score F1, curiosity score F2, attraction score F3, nostalgia score F4, immersion score F5, opportunity score C1, problem solving score C2, adaptation score C3, realization score C4;
[0107] Physiological indicators include: electrocardiogram (ECG), electrical skin activity (EDA), and respiratory activity (RES);
[0108] The electrocardiogram indicators include: mean heart rate (MHR), standard deviation of RR interval;
[0109] The respiratory indexes include: respiratory amplitude (RF) and respiratory rate (RA).
[0110] Step 4: Obtain the distance score, ductility score, charm score, and compatibility score of each street space image to be evaluated according to the healing factor value of each street space image to be evaluated;
[0111] The distance score is the average value of B1, B2, and B3; the ductility score is the average value of E1, E2, and E3; the charm score is the average value of F1, F2, F3, F4, and F5; the compatibility score is the average value of C1, C2, C3, and C4;
[0112] During the training process, the BIOPACMP36 multi-channel physiological recorder is used to monitor the values of the test subjects' electrocardiogram, skin conductance, respiration and other physiological indicators before and after the scene experience, as well as the difference between before and after. Figure 3 shown.
[0113] Step 5: Use the distance score, ductility score, charm score, compatibility score and the difference between physiological indicators before and after for each street space image to be evaluated to obtain the total healing score of the street space to be evaluated:
[0114] Step 51: Normalize the remoteness score, ductility score, charm score, and compatibility score of each street space image to be evaluated, and take the average of the normalized remoteness score, ductility score, charm score, and compatibility score of each street space image to be evaluated as the total psychological healing score of each street space image to be evaluated:
[0115] The normalization formula is as follows:
[0116]
[0117] Where i' is the street image number to be evaluated, j is the score type number, j = 1, 2, 3, 4 represent the distance score type, ductility score type, charm score type, compatibility score type, x i'j is the j-th rating type score value of the i'th image, min(x j ) is the minimum value of the score value of the j-th score type, max(x j ) is the maximum value of the score value of the jth score type, z i'j is the normalized score value of the j-th score type of the i'th image;
[0118] Step 52: Standardize the differences before and after the five physiological indicators of each street image to be evaluated, and then calculate the weight of each physiological indicator by the entropy weight method. Finally, the comprehensive score obtained by weighted average calculation is the total score of physiological healing of each street image to be evaluated;
[0119] Step 53: Use the total psychological healing score and the total physiological healing score of each street space image to be evaluated to obtain the total healing score of each street space image to be evaluated:
[0120] w i' =α×w i ”+(1-α)×w i ” '
[0121] Among them, 0≤α≤1, α is the preset preference coefficient, α is generally set to 0.5, w i ” is the total score of the psychological healing of the i'th street space image to be evaluated, w i ” ' is the total score of physiological healing of the i'th street space image to be evaluated;
[0122] Step 54: taking the average of the total healing scores of each street space image to be evaluated as the total healing score of the street space to be evaluated;
[0123] Among them, the larger the total healing score, the better the healing performance.
[0124] The street space healing evaluation model is obtained by:
[0125] S1. Obtain a street view image database, and perform data cleaning on the street view image database to obtain a cleaned street view image database. The images in the cleaned street view image database are divided into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time:
[0126] S101. Take an observation point at every preset distance (40m) on the streets of the cold region city to obtain street view images at different times to form a street view image database:
[0127] For cold-region cities with large seasonal differences, 360-degree panoramic street view image data from the open map platform is obtained through API calls to form a street view image database. Each street view image has a unique identification code and is marked with latitude and longitude, time, yaw angle and pitch angle.
[0128] Common open map platforms can select official API calls of Baidu Map Street View, Google Map, City Bar Street View or Tencent Map Street View;
[0129] Combined with GIS, the point data geographic coordinates of an observation point were obtained every 40 meters on the streets within the research scope of the selected city. Then Python was used to compile a crawler script that can obtain batch street view pictures based on the point data geographic coordinates, so that the selected sample size can reflect the overall street style of the city;
[0130] Cold-region cities are cities within the geographical scope of cold and severe cold regions defined in the "Standard for Building Climate Zoning" (GB50178-93), where long winters and harsh climates have an adverse impact on urban life, and the average temperature in January is below 0℃;
[0131] S102, performing data cleaning on the street view image database, deleting interference images such as images exceeding a preset exposure value, empty images, repeated images, and completely black images (such as tunnels and bridge holes), to obtain a cleaned street view image database;
[0132] S103, classifying the cleaned images in the street view image database into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time, and setting them as image labels;
[0133] Winter is from December to February, summer is from June to August, and the remaining months are transitional seasons;
[0134] S2. Use the cleaned street view image database to obtain a sample data set, and divide the sample data set into a training set and a test set according to an 8:2 ratio:
[0135] S201. Import the cleaned street view image database into the VR panoramic device according to the image labels. The subjects wear electrocardiogram, electrodermal conductivity and respiratory index physiological recorders throughout the experiment. They complete the situational task before the formal experiment of each scene. Then, they take a questionnaire survey after wearing the VR device to obtain the scores of psychological healing factors. All psychological healing factor scores constitute the psychological index data set, and the physiological records are used to obtain the difference of physiological indicators before and after the experience as the physiological index data set:
[0136] First, the cleaned street view image database was imported into the VR panoramic equipment and related technical platforms. Each group of 15 participants selected 10 scenes from winter, transitional season, and summer street view images, for a total of 30 scenes of VR street view visual experience. Before experiencing each scene, the participants had to perform a 4-minute Stroop test or mental arithmetic and other situational tasks. Each scene experience lasted 4 minutes. To ensure the smooth training process, 30 different groups and more than 900 different scene experiments should be completed.
[0137] Then, at the end of the VR experience in each scene, a subjective restorative evaluation questionnaire was developed based on the healing factor scale (RCS). Participants scored their answers using a 7-point Likert scale for 4 dimensions and 16 healing environment characteristic factors. 0-6 points represent the increasing degree of recognition of the content described in the question. The scores of the healing factors constitute the psychological index data set. The healing factor table is shown in Table 1.
[0138] Table 1 Healing Factors
[0139]
[0140]
[0141] The subjects wore physiological recorders throughout the experiment. The difference between the physiological indicators before and after the experience (i.e., the degree of recovery) constituted the physiological indicator data set. The physiological indicator table is shown in Table 2;
[0142] Table 2 Comparison of ECG, skin conduction and breathing average scene experience before and after
[0143]
[0144] S202. Based on the Convolutional Neural Network (CNN) technology, the trained Enet semantic segmentation model is used as a feature information extractor to perform pixel-level semantic segmentation on each street view image, and the pixel proportion of each category is calculated to obtain the features of each street view image, as shown in Table 3:
[0145] The training set of the trained Enet semantic segmentation model is the Cityscapes dataset;
[0146] Table 3 Street view image feature elements
[0147]
[0148] S203, using the psychological index data set and the physiological index data set of S201 and the corresponding street view image features to form a sample data set, and dividing the sample set into a training set and a test set according to an 8:2 ratio.
[0149] S3. Establish a scoring model, and use the training set to perform regression training on the scoring model to obtain a trained scoring model, specifically:
[0150] Considering that the semantic content of the RCS scale questionnaire and physiological indicators are highly correlated with the scoring results, based on the natural language processing (NLP) technology, the present invention uses the Chinese-oriented BERT pre-training model (such as BERT-Tiny-CN, BERT-Mini-CN, Chinese-BERT-wwm) to perform artificial intelligence scoring training and prediction of 16 healing factors and 5 physiological indicators before and after differences;
[0151] like Figure 2 As shown, the scoring model includes: a pre-trained BERT model layer, a fixed parameter BERT model layer, a 6-layer self-attention layer, and a linear layer;
[0152] The pre-trained BERT model layer is used to encode the features of the street view image, and the feature encoding of the street view image is input into the 6-layer self-attention layer;
[0153] The semantic input of street view image features is: "[CLS] Green view rate: green plant area / image area X% [seq] Sky openness: sky area / image area Y% [seq] ... [CLS] Street building warm color index: warm RGB pixel area in the building area / image area N%". [CLS] and [seq] are special tokens of the BERT pre-trained model.
[0154] The fixed parameter BERT model layer is used to extract semantic features of the healing factor evaluation question and the difference between the physiological indicators before and after, and input the semantic features of the healing factor evaluation question and the difference between the physiological indicators before and after into the 6-layer self-attention layer;
[0155] The fixed-parameter BERT model inputs psychological indicators such as "[CLS] Here I can temporarily forget the troubles in work and daily life[seq]", "[CLS] Here I can temporarily forget the pressure brought by the requirements and expectations of others[seq]", and inputs physiological indicators such as "[CLS] The recovery degree of mean heart rate (MHR) before and after the healing scene experience, that is, the pre-test value-post-test value[seq]", "[CLS] The recovery degree of the standard deviation of the RR interval before and after the healing scene experience, that is, the post-test value-pre-test value[seq]", thereby obtaining the semantic feature vectors of 16 healing factor evaluation questions and 5 physiological indicators before and after differences.
[0156] The 6 self-attention layers are used to fuse the encoded street image features, 16 healing factor evaluation questions, and the semantic feature vectors of the before-after differences of 5 physiological indicators, so that the model can learn the correlation between the healing factor evaluation questions, the before-after differences of physiological indicators, and the street image features. The encoded [CLS] vector is the semantic vector of the street image features, and then the encoded 16 healing factor evaluation questions and the before-after differences of 5 physiological indicators are concatenated with the [CLS] vector and sent to the linear layer;
[0157] Each self-attention layer includes: a feed-forward neural network submodule and a multi-head self-attention submodule;
[0158] The linear layer is used to perform multi-head classification on the splicing results to obtain 16 healing factor score values and before-after differences of 5 physiological indicators of the current street view image.
[0159] In this step, in order to prevent the model from being dependent on the position of the feature elements during training, the feature elements are randomly sorted using a standard distribution. At the same time, during input, some characters are randomly masked with a probability of 10% to improve the generalization ability of the model. Figure 2 Q is the set of encoded psychological indicator question vectors and physiological indicator vectors. is a street view image feature dataset, Q L is the set obtained after L layers of self-attention layer calculation, It's Q L The i-th element in is the encoding of cls, yes The set of vectors encoded by L self-attention layers.
[0160] S4. Use the test set to test the trained scoring model, and use the best-performing trained scoring model as the street space healing evaluation model;
[0161] The street space therapeutic evaluation model is a scoring model trained with the minimum logarithmic loss function within a preset number of rounds (50 rounds).
Claims
1. A method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning, characterized in that The specific process of the method is: Step 1: Obtain the street space image dataset to be evaluated; Step 2: Input the street space image dataset to be evaluated into the trained Enet semantic segmentation model to obtain the street image features to be evaluated; Step 3: Input the characteristics of the street image to be evaluated into the street space healing evaluation model to obtain the psychological healing factor value and the difference before and after physiological indicators of each street space image to be evaluated; The psychological healing factor values include: forget trouble score B1, forget stress score B2, forget responsibility score B3, connection score E1, integration score E2, coherence score E3, exploration score F1, curiosity score F2, attraction score F3, nostalgia score F4, immersion score F5, opportunity score C1, problem solving score C2, adaptation score C3, realization score C4; The physiological indicators include: heart rate mean, RR interval standard deviation, skin electrical index, respiratory amplitude, and respiratory frequency; Step 4: Obtain the distance score, ductility score, charm score, and compatibility score of each street space image to be evaluated according to the psychological healing factor value of each street space image to be evaluated; The distance score is the average value of B1, B2, and B3; the ductility score is the average value of E1, E2, and E3; the charm score is the average value of F1, F2, F3, F4, and F5; the compatibility score is the average value of C1, C2, C3, and C4; Step 5, using the distance score, ductility score, charm score, compatibility score of each street space image to be evaluated obtained in step 4 and the difference between the physiological indicators before and after obtained in step 3 to obtain the total healing score of the street space to be evaluated; Among them, the higher the total score of the therapeutic properties of the street space to be evaluated, the better the therapeutic properties of the street space to be evaluated.
2. According to the method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning according to claim 1, it is characterized by: The street space image data set to be evaluated includes: image data of each preset observation point in the street space to be evaluated.
3. According to the method of evaluating the therapeutic properties of street spaces in cold regions based on deep learning according to claim 1, it is characterized by: The street image features to be evaluated in step 2 include: green view rate, sky openness, walkability, interface closure, visual complexity, pedestrian congestion, motor traffic impact, slow traffic occurrence rate, facility distribution rate, snow carrying capacity index, street building warm color index; Green view rate = green plant area in the current street image to be evaluated / area of the current street image to be evaluated; Sky openness = sky area in the current street image to be evaluated / area of the current street image to be evaluated; Walkability = pedestrian road area in the current street image to be evaluated / area of the current street image to be evaluated; Visual complexity = the number of object types identified and segmented in the current street image to be evaluated; Pedestrian congestion degree = the pixel area of pedestrians in the street in the current street image to be evaluated / the area of the current street image to be evaluated; Motor traffic impact = motor vehicle pixel area in the street in the current street image to be evaluated / area of the current street image to be evaluated; Slow-moving appearance rate = pixel area of electric vehicles, bicycles and people in the current street image to be evaluated and / the area of the current street image to be evaluated; Facility distribution rate = total pixel area of street lamps, street signs, trash cans, and seats in the current street image to be evaluated / area of the current street image to be evaluated; Snow carrying capacity index = plant and shrub soil coverage area in the current street image to be evaluated / (area of the current street image to be evaluated*0.5); Street building warm color index = warm color RGB pixel area in the building area in the current street image to be evaluated / current street image area to be evaluated.
4. According to claim 3, a method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning is characterized by: The street space healing evaluation model is obtained by: S1, obtaining a street view image database, and performing data cleaning on the street view image database to obtain a cleaned street view image database, and dividing the images in the cleaned street view image database into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time; S2, using the cleaned street view image database to obtain a sample data set, and dividing the sample data set into a training set and a test set; S3, using the training set to train the scoring model to obtain a trained scoring model; S4. Use the test set to test the trained scoring model to obtain the street space therapeutic evaluation model.
5. According to claim 4, a method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning is characterized by: The step S1 is to obtain a street view image database, clean the street view image database, and obtain a cleaned street view image database. The images in the cleaned street view image database are divided into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time. Specifically, S101, setting an observation point at a preset distance for the streets of the cold region city to be studied, and using street view images of each observation point at different times to form a street view image database; The cold city is a city with an average temperature below 0°C in January; S102, cleaning the street view image database: Delete empty images, duplicate images, completely black images, and street view images exceeding a preset exposure value in the street view image database; S103, classifying the street view images in the street view image database after data cleaning into winter street view images of cold-region cities, transitional season street view images of cold-region cities, and summer street view images of cold-region cities according to time, and setting them as image labels; The winter in cold-region cities is from December to February, the summer in cold-region cities is from June to August, and the remaining months are the transition season for cold-region cities.
6. According to claim 5, a method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning is characterized by: In S2, a sample data set is obtained by using the cleaned street view image database, and the sample data set is divided into a training set and a test set, specifically: S201, importing the cleaned street view image database into the VR panoramic device according to the image labels, and the experiencer answers the healing factor evaluation questions after the experience to obtain the psychological healing factor score, and all the psychological healing factor scores constitute the psychological index data set; at the same time, the physiological recorder is used to obtain the difference of physiological indicators before and after the VR experience, and all the differences of physiological indicators constitute the physiological index data set; Physiological indicators include: ECG index, skin conductivity index, and respiratory index; The electrocardiogram indexes include: mean heart rate, standard deviation of RR interval; The respiratory indexes include: respiratory amplitude and respiratory rate; S202, inputting the cleaned street view image into the trained Enet semantic segmentation model to obtain features of the cleaned street view image; The cleaned street view image features include: green view rate, sky openness, walkability, interface closure, visual complexity, pedestrian congestion, motor traffic impact, slow traffic occurrence rate, facility distribution rate, snow carrying capacity index, street building warm color index; S203, using the psychological index data set, the physiological index data set and the corresponding cleaned street view image features in S201 to form a sample data set, and dividing the sample set into a training set and a test set.
7. The method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning according to claim 6 is characterized by: The healing factor scores and corresponding healing factor evaluation questions are as follows: Forget Worries Rating B1-This place allows me to temporarily forget the worries in work and daily life; Forget Stress Score B2-This allows me to temporarily forget the pressure brought by other people's demands and expectations; Forgetting Responsibilities Score B3-This allows me to temporarily forget the responsibilities and obligations I have undertaken; Connection score E1-Everything here is interconnected; Integration score E2-Everything here is well integrated into the environment; Coherence score E3-The surrounding environment is generally coherent; Exploration score F1 - There are a lot of things I want to explore here; Curiosity score F2 - There are many things here that make me curious; Attraction Rating F3-There are many things that attract me here; Nostalgia score F4-There are many things here that make me linger; Immersion score F5 - I feel deeply immersed in my surroundings; Opportunity score C1-This gives me the opportunity to do what I like to do; Problem Solving Score C2 - I am able to solve the problems presented here; Adaptability score C3-I can adapt to the surrounding environment quickly; Realization score C4-What I want to do can be realized in this environment; Among them, the healing factor score is 0-6 points, and the higher the score, the more recognized the content of the healing factor evaluation questions.
8. The method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning according to claim 7 is characterized by: The scoring model includes: a pre-trained BERT model layer, a fixed parameter BERT model layer, a 6-layer self-attention layer, and a linear layer; The pre-trained BERT model layer is used to obtain the cleaned street view image feature code, and the cleaned street view image feature code is input into the 6-layer self-attention layer; The fixed parameter BERT model layer is used to extract the semantic features of the healing factor evaluation question and the before-after difference of the physiological index, and input the semantic features of the healing factor evaluation question and the before-after difference of the physiological index into the 6-layer self-attention layer; The six self-attention layers are used to concatenate the cleaned street view image feature encoding with the semantic features of each healing factor evaluation question and the difference between the before and after physiological indicators, and input the concatenation result into the linear layer; The linear layer is used to perform multi-head classification on the splicing results to obtain each healing factor score and the before-after difference of the physiological index for each street view image.
9. The method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning according to claim 8 is characterized by: The trained scoring model is tested using the test set in S4 to obtain a street space healing evaluation model, specifically: The trained scoring model in each round is tested to obtain the logarithmic loss of the trained scoring model in each round. The trained scoring model with the smallest logarithmic loss within the preset training rounds is the street space therapeutic evaluation model.
10. The method for evaluating the therapeutic properties of street spaces in cold regions based on deep learning according to claim 9 is characterized by: The step 5 uses the distance score, ductility score, charm score, compatibility score of each street space image to be evaluated obtained in step 4 and the difference between the physiological indicators before and after obtained in step 3 to obtain the total healing score of the street space to be evaluated, specifically: Step 51: Normalize the remoteness score, ductility score, charm score, and compatibility score of each street space image to be evaluated, and take the average of the normalized remoteness score, ductility score, charm score, and compatibility score of each street space image to be evaluated as the total psychological healing score of each street space image to be evaluated; The distance score, ductility score, charm score, and compatibility score of each street space image to be evaluated are normalized respectively, specifically: Where i' is the street image number to be evaluated, j is the score type number, j = 1, 2, 3, 4 represent the distance score type, ductility score type, charm score type, compatibility score type, x i'j is the j-th rating type score value of the i'th image, min(x j ) is the minimum value of the score value of the j-th score type, max(x j ) is the maximum value of the score value of the jth score type, z i'j is the normalized score value of the j-th score type of the i'th image; Step 52: standardize the difference before and after values of each physiological index of each street image to be evaluated, calculate the weight of each physiological index by entropy weight method, and finally calculate the comprehensive score by weighted average, which is the total score of physiological healing of each street image to be evaluated; Step 53: Use the total psychological healing score and the total physiological healing score of each street space image to be evaluated to obtain the total healing score of each street space image to be evaluated: w i' =α×w i ”+(1-a)×w i " ' Among them, 0≤α≤1, α is the preset preference coefficient, w i ” is the total score of the psychological healing of the i'th street space image to be evaluated, w i ” ' is the total score of physiological healing of the i'th street space image to be evaluated; Step 54: Take the average of the total healing scores of each street space image to be evaluated as the total healing score of the street space to be evaluated.
Citation Information
Patent Citations
Living street space quality measurement method and system, computer equipment and medium
CN115564174A
Text-oriented personality prediction method, text-oriented personality labeling method, system and equipment
CN116561317A
Cited By
Primary and secondary school indoor environment health benefit assessment and health environment index determination method in combination with VR scene
CN119477050A
Urban high-intensity district security assessment method based on multi-source space element coupling
CN119990896A
