The present disclosure relates to the technical field of urban quality measurement, and in particular to a measurement method and system based on image electroencephalogram sensitivity data for a built environment dominant color.
Typically, a built environment dominant color, crucial to an environment quality, can be an effective index of a built environment order and function. It is thus believed to have a vital impact on regional location and spatial organization, attempting to improve an environment quality and efficiency. The perceptible and identifiable environment dominant color can be effectively applied to urban quality measurement. For example, in view of urban renewal and protection, a chaotic urban color status is measured and diminished by optimizing a built environment dominant color system, so as to invest an old city with a unified and coordinated dominant color style. In view of environment planning and design, color design problems are adjusted in time after an environment standard color is constructed through environment dominant color quality measurement. Accordingly, built environment planning and management are improved.
In recent years, in order to improve an environment quality evaluation effect of the environment dominant color, it is increasingly common practice for scholars to associate image data with dominant color analysis and prediction. The relevant intellectual property achievements are as follows: for example, Patent Application No. CN202110987218.0 and entitled “STREET VIEW IMAGE SCORING METHOD BASED ON COLOR DISTRIBUTION LEARNING”, which describes a street view image scoring method based on machine learning and color distribution derived through image semantic segmentation, image entity color value calculation, entity mixed color evaluation, and label data training; Patent Application No. CN202110893036.7 and entitled “METHOD AND DEVICE FOR EVALUATING COLOR HARMONY DEGREE OF URBAN BLOCK BUILDING”, which describes a method for evaluating a color harmony degree of an urban block building derived through building photo sample acquisition, photo color extraction and analysis, color region division, and attractiveness evaluation; and Patent Application No. CN201910833403.7 and entitled “URBAN LANDSCAPE EVALUATION INDEX CALCULATION METHOD BASED ON ARTIFICIAL INTELLIGENCE ALGORITHM”, which describes a color landscape evaluation index calculation method derived through influence factor weight construction, urban evaluation picture set collection, a landscape color richness score, and a factor target evaluation function. Although some progress has been made in the research of environment dominant color measurement methods based on image data, a prediction effect of a nonlinear model integrating a multi-dimensional image dominant color feature and an environment quality remains to be further improved. Moreover, a conventional environment image evaluation features a complicated process, an extreme long overall flow cycle, and a high labor cost in environment dominant color quality identification. Accordingly, dominant color information can hardly be fed back synchronously, affecting the accuracy and efficiency of environment dominant color quality prediction.
Therefore, during environment dominant color measurement and analysis, a method in the prior art has the disadvantages of subjectivity and randomness of basic data processing and analysis, and an operation efficiency, precision, and comprehensiveness of a measurement model far from perfectness, for example. It is impossible to employ such a method in complex built environment dominant color measurement research and in-depth guide of built environment landscape dominant color quality analysis. A built environment dominant color measurement method combined with image electroencephalogram sensitivity data is to be optimized, developed, and applied immediately. Accordingly, the built environment dominant color and environment quality measurement is analyzed precisely, multi-dimensionally, and overally, thereby boosting the improvement in urban quality and efficiency.
In view of the shortcomings in the prior art, the present disclosure provides a measurement method and system based on image electroencephalogram sensitivity data for a built environment dominant color. Therefore, the problems that a prediction effect of a nonlinear model integrating a multi-dimensional image color feature and an environment quality remains to be improved; and moreover, a conventional environment image evaluation features a complicated process and an extreme long overall flow cycle, and accordingly, dominant color information can hardly be fed back synchronously, affecting the accuracy and efficiency of environment dominant color quality prediction are solved.
In order to realize the above objective, the present disclosure employs the technical solutions as follows:
In one aspect, a measurement method based on image electroencephalogram sensitivity data for a built environment dominant color is provided. The method includes:
Preferably, the acquiring electroencephalogram data corresponding to a built environment
image sample includes: collecting electroencephalogram data of J subjects on I built environment image samples under the same laboratory environment to obtain I*J electroencephalogram data groups, where a data size of each data group is n(d), d denotes a dominant color feature dimension of each data group, and n denotes the number of an electroencephalogram data sample collected at a time.
Preferably, the calculating an environment dominant color sensitivity on the basis of the electroencephalogram data specifically includes:
where EFT denotes the electroencephalogram sensitivity index, 1≤k≤8 denoting the eight leads, and Pθ(k), Pα(k), and Pβ(k) denote the average relative power spectra of frequency bands α, β, and θ of the lead, respectively; and
Preferably, the extracting a dominant color feature parameter according to the built environment image sample specifically includes:
where S denotes the sum of distortion degrees of all color clusters, Q(n) denotes a color value of the pixel, N denotes the number of a pixel of the color cluster, n denotes coordinates of a pixel point of an environment image, dk denotes a centroid of a color of type k, K denotes the number of the color cluster, rnk denotes two components configured to determine whether Q(n) belongs to the color of type k, and Tk denotes the number of a pixel of a kth color cluster;
Preferably, the constructing a built environment dominant color measurement model, and training same by taking sensitivity data and a dominant color feature as an input specifically includes:
converting the built environment image and electroencephalogram sensitivity data thereof into several build environment sequence samples, constructing the built environment dominant color measurement model through an XGBoost decision tree algorithm, training 75% of built environment sample data, and taking remaining sample data as a test set;
Z={(Hi,yi)|i=1,2, . . . ,n}
Preferably, the inputting an environment image to be analyzed into a trained model, so as to obtain a predicted dominant color sensitivity result specifically includes:
=fXGBoost(HS,BS,VS,MCA,NPC,CDS,DPC,IPS)
denotes the sum of gradient statistics of all leaf samples of the model regression tree, and
denotes the sum of second order statistics of all the leaf samples of the model regression tree; where
In another aspect, a measurement system based on image electroencephalogram sensitivity data for a built environment dominant color is provided. The system includes:
Preferably, the electroencephalogram sensitivity extraction module specifically includes:
The dominant color feature extraction module includes:
The environment dominant color measurement model training module specifically includes:
According to the measurement method and system based on image electroencephalogram sensitivity data for a built environment dominant color of the present disclosure, the problems that the prediction effect of the nonlinear model integrating the image color feature and the environment quality remains to be improved; and moreover, the conventional environment image evaluation features the complicated process and the extreme long overall flow cycle, and accordingly, the dominant color information can hardly be fed back synchronously, affecting the accuracy and efficiency of the environment dominant color quality prediction are effectively solved.
The technical solutions in the examples of the present disclosure are clearly and completely described below with reference to the accompanying drawings of the present disclosure. Apparently, the described examples are some examples rather than all examples of the present disclosure. Based on the examples of the present disclosure, all other examples derived by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present disclosure.
As shown in
Electroencephalogram data corresponding to a built environment image sample are acquired. Electroencephalogram data of J subjects on I built environment image samples under the same laboratory environment are collected to obtain I*J electroencephalogram data groups, where a data size of each data group is n(d), d denotes a dominant color feature dimension of each data group, and n denotes the number of an electroencephalogram data sample collected at a time.
In the present example, all subjects are selected according to ages at a certain sex ratio. They have the healthy physiological and psychological states and similar living environments, and have signed the informed consent form. A visual stimulation presentation and electroencephalogram data collection system is constructed through an E-Prime experimental operation system. Each environment image is displayed three times (3 seconds per time). Therefore, original electroencephalogram signals of the subjects are collected in real time.
An environment dominant color sensitivity is calculated on the basis of the electroencephalogram data, which specifically includes:
In the example, original electroencephalogram data pre-processing and frequency band
extraction are performed through an adaptive security appliance (asa) analysis software package of eegmylab. The software features a high electroencephalogram filtering and artifact correcting speed. After a required lead electrode position is introduced, and an average electrode reference is employed, data with amplitudes beyond an interval range of 10 μV-100 μV are removed as bad leads. Therefore. the artifact interference of an electrooculogram and an electromyogram is removed. Re-classification and superimposed averaging are performed according to the image sample, and then an amplitude and a phase of the data are analyzed. The average relative power spectra of frequency bands α, β, and θ are grabbed. Finally, the dominant color sensitivity value (as shown in
A dominant color feature parameter is extracted according to the built environment image sample, which specifically includes:
min-max normalization processing is performed on an environment dominant color feature, which is specifically as follows:
In the present example, K is set to [4, 6], so as to obtain a color cluster (as shown in
The built environment dominant color measurement model is constructed and trained by taking sensitivity data and a dominant color feature as an input, which specifically includes:
environment dominant color measurement model, which is specifically as follows:
Z={(Hi,yi)|i=1,2, . . . ,n}
In the present example, when the built environment dominant color measurement model is trained, a parameter of the decision tree algorithm is optimized through a random search algorithm. A network parameter setting value is as shown in Table 2. Then a hyperparameter is optimized according to a model evaluation index, and the model is further evaluated (see Table 3) through K-fold cross-validation, a determination coefficient (R2), a mean absolute error (MAE), and a root mean square error (RMSE). The greater the R2 is, the better the effect of the model is, and the smaller the MAE and the RMSE are, the more accurate the model prediction is.
In order to control an iteration rate and prevent overfitting, a parameter learning_rate is employed to control the iteration rate, and a LightGBM algorithm is employed to accelerate a training process on the premise of ensuring the precision.
An environment image to be analyzed is input into a trained model, so as to obtain a predicted dominant color sensitivity result, which specifically includes:
=fXGBoost(HS,BS,VS,MCA,NPC,CDS,DPC,IPS)
denotes the sum of gradient statistics of all leaf samples of the model regression tree, and
denotes the sum of second order statistics of all the leaf samples of the model regression tree; where
In the present example, the color feature importance score is calculated through the model. Scores of the maximum color cluster area, the color cluster segmentation degree, the hue proportion, the color cluster diversity, the similar color cluster spread degree, the saturation proportion, the lightness proportion, and the color cluster shape complexity are 8486.848, 4135.527, 3665.604, 1270.764, 764.674, 474.965, 440.531, and 205.862, respectively (Table 4). Therefore, it may be seen from the analysis results in
The present example provides measurement system based on image electroencephalogram sensitivity data for a built environment dominant color. The system includes:
The electroencephalogram sensitivity extraction module specifically includes:
The dominant color feature extraction module includes:
The environment dominant color measurement model training module specifically includes:
It is to be noted that relation terms such as first and second are merely used to distinguish one entity or operation from another entity or operation herein, and do not necessarily require or imply any such an actual relation or order between these entities or operations. Moreover, terms “comprise”, “include”, “encompass”, or their any other variants are intended to cover non-exclusive inclusion. Therefore, a process, method, article, or apparatus including a series of elements include those elements, as well as other elements not listed clearly, or further include elements inherent to such a process, method. article, or apparatus. Without more limitations, the element limited by the sentence “include a . . . ” does not exclude that the process, method, article, or apparatus including the element further includes another same element.
Number | Date | Country | Kind |
---|---|---|---|
202210896092.0 | Jul 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/130220 | 11/7/2022 | WO |