Method for drawing urban noise map by using generative adversarial network
The combination of generative adversarial networks and Grasshopper tools solves the problem of difficulty in iterative updates of traditional noise mapping methods in the early stages of urban design, achieves rapid prediction and accurate identification of urban traffic noise distribution, and optimizes design solutions.
Patent Information
- Application Number
- CN202410572844.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-10-18
AI Technical Summary
Traditional grid-based noise mapping methods have problems with iterative updates and lack of fast performance feedback in the early stages of urban design planning, making it difficult to effectively perform noise simulations in large urban spaces.
Generative adversarial networks (GAN) are used to build proxy models, traffic noise maps are quickly generated through MATLAB and Grasshopper tools, OpenStreetMap data and Cadna/A noise simulation software are used for acoustic modeling, and pix2pix neural networks are trained for noise distribution prediction.
It achieves rapid prediction and accurate identification of urban traffic noise distribution, and can easily determine the noise impact of design results in the early design stage and optimize the design plan.
Smart Images

Figure CN118799437A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of noise monitoring, and in particular relates to a method for drawing an urban noise map by using a generative adversarial network. Background Art
[0002] Against the backdrop of rapid global urbanization, improving the quality of urban life has become an important goal of social development. A healthy and comfortable living environment is not only a basic need of residents, but also a core concern of contemporary urban design. The development of urbanization has led to the extensive construction of traffic road networks, resulting in traffic noise becoming the main source of urban noise pollution. Residents living near roads are adversely affected by this noise. In addition, noise levels that exceed standard traffic thresholds may affect property prices in adjacent areas. Therefore, in the fields of public health and urban planning, effective assessment and control of traffic noise has become a common concern.
[0003] Currently, noise maps have been widely used as an assessment and management tool for urban noise. However, traditional grid-based noise mapping methods have inherent limitations. These methods rely on acoustic models or software to predict the propagation and distribution of noise, which not only requires a lot of time investment, but also involves expensive financial expenditures to obtain these simulation software. An important disadvantage of these existing systems is that they lack the ability to integrate parameters. These limitations cause them to perform a large number of iterative updates in the early stages of design and perform poorly in scenarios that require rapid performance feedback. In contemporary design processes, rapid performance feedback is a common requirement. Therefore, in the early stages of urban design planning, there is an urgent need to develop new methods and tools to effectively perform noise simulations for rapid design iterations in large urban spaces. Summary of the invention
[0004] Based on the above technical problems, the present invention provides a method for drawing an urban noise map using a generative adversarial network. By accurately identifying urban elements in an input grid, a rapid prediction of urban traffic noise distribution is achieved. By integrating the trained model into the Grasshopper tool, a traffic noise map can be quickly generated. This integration enables urban designers and planners to easily determine the traffic noise impact brought about by the design results in the early design stage, so as to optimize the design plan.
[0005] The specific technical solution is:
[0006] A method for drawing an urban noise map using a generative adversarial network comprises the following steps:
[0007] S1: Use open source map platform to obtain target city area data;
[0008] S2: Generate regional network data using MATLAB and Grasshopper;
[0009] S3: Acoustic modeling through environmental noise simulation software;
[0010] S4: Use generative adversarial networks to build a proxy model and train the proxy model to predict the distribution of urban traffic noise;
[0011] S5: Integrate the trained model into the Grasshopper tool to quickly generate traffic noise maps.
[0012] In addition, a method for drawing an urban noise map using a generative adversarial network in the above technical solution provided by the present invention may also have the following additional technical features:
[0013] In the above technical solution, in step S1, the target urban area data includes buildings, urban roads and green spaces.
[0014] In the above technical solution, in step S2, MATLAB is used to cut the urban area into regional grid data of 500m×500m.
[0015] In the above technical solution, in step S4, the steps of training the proxy model are as follows:
[0016] S1: Collect and prepare pairs of training images, wherein the training images include an input image and a corresponding target output image;
[0017] S2: Build the generator and discriminator;
[0018] S3: Define the loss function of the generator, which includes adversarial loss and content loss. The adversarial loss is used to make the generated image realistically close to the target output image, and the content loss is used to ensure that the generated image is consistent with the target output image in content. In fact, the loss function is as follows:
[0019] G * =argmin(G)max(D)L cGAN (G, D)+λL L1 (G)
[0020] L cGAN (G, D) = E x,y [log(1-D(x,G(x))]
[0021] L L1 (G) = E x,y [||yG(x)|| 1 ]
[0022] Among them, G is the generator, D is the discriminator, x is the input city map, y is the real city noise map, G(x) is the city noise map generated by the generator, and λ is the weight value;
[0023] S4: Input paired training images and generate conversion images through the generator. The generated images and the target output images are sent to the discriminator network together. The loss of the generator is calculated according to the defined loss function. The parameters of the generator are optimized using the back-propagation algorithm so that the generated image components are close to the target output image.
[0024] S5: Use the validation set to evaluate the performance of the model and adjust the model structure or hyperparameters as needed. Ensure that the model gradually converges during training by monitoring the loss changes during training.
[0025] In the above technical solution, the Grasshopper tool for quickly generating a traffic noise map in the design phase includes a model selection module and a rapid prediction module;
[0026] The model selection module is configured by connecting various components / blocks in Grasshopper. The model selection module captures the city map designed by the user in Rhino and converts it into an image format compatible with the fast prediction module.
[0027] Compared with the prior art, the method of drawing an urban noise map using a generative adversarial network of the present invention has the following beneficial effects:
[0028] By accurately identifying urban features in the input grid, the distribution of urban traffic noise can be quickly predicted. By integrating the trained model into the Grasshopper tool, traffic noise maps can be quickly generated. This integration enables urban designers and planners to easily determine the traffic noise impact of design results in the early design stage in order to optimize the design plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is the model framework diagram;
[0030] Figure 2 The processed training example map, where the left side is the city map and the right side is the city noise map;
[0031] Figure 3 The principle of the pix2pix algorithm;
[0032] Figure 4 The network structure of the generator (G) and the discriminator (D);
[0033] Figure 5 is the loss of the generator and the discriminator;
[0034] Figure 6 For model performance evaluation (grayscale difference image, mean square error and structural similarity index);
[0035] Figure 7 Mean square error (MSE) and structural similarity index (SSIM) for the validation dataset;
[0036] Figure 8 This is the urban noise map prediction display diagram, with the left side showing the interface in Rhino and the right side showing the plug-in interface in Grasshopper. DETAILED DESCRIPTION
[0037] The following is a combination of specific implementation cases and attached Figure 1-8 The present invention is further described below, but the present invention is not limited to these embodiments.
[0038] The present invention develops a proxy model constructed using a generative adversarial network, and the model training process is as follows Figure 1 As shown, the present invention first selects a city plane from OpenStreetMap (OSM) and subdivides it into a grid to generate a database through Grasshopper. Then, the widely used traditional outdoor environmental noise simulation software Cadna / A is used to simulate the traffic noise in the selected urban area. Grasshopper is used to visualize these simulation results to create training and validation data sets. Subsequently, the pix2pix neural network is trained using this data set to quickly predict urban traffic noise. Finally, the performance of the model on a pre-prepared validation data set that is not included in the training data is evaluated by the mean square error (MSE) and structural similarity index metric (SSIM).
[0039] The dataset of the present invention is generated by the following steps:
[0040] S1: Use the open source map platform OpenStreetMap (OSM) to extract representative urban area data, including key urban elements such as buildings, urban roads and green spaces, which have a significant impact on sound propagation and attenuation.
[0041] S2: Use MATLAB to generate random parameters, and use Grasshopper to randomly cut the urban area into 500m x 500m regional grid data. A total of 2,200 sample data are generated as the input samples of the training set.
[0042] S3: The acoustic simulation file created by Grasshopper based on the grid data of each area was imported into Cadna / A environmental noise simulation software for acoustic modeling. The simulation parameters were adjusted in Cadna / A, and the design traffic information of various classified roads was established according to the relevant Chinese road design specifications to simulate the traffic noise level under the most unfavorable conditions. The specific parameters are listed in Table 1.
[0043] Table 1 Road and traffic parameters
[0044]
[0045] S4: Run Cadna / A software to complete the noise simulation of 2200 simulation files and re-import the simulation files with .rst extension into MATLAB.
[0046] S5: The simulation result data were post-processed in MATLAB, and the .rst format file was interpolated in data space using Grasshopper.
[0047] S6: Visualize the data using Grasshopper, generate noise map files, and preprocess the results. Each urban area and the corresponding noise map are resized to 256×256 pixels. The generated urban noise map constitutes the output of the training set.
[0048] Specifically, in order to prepare a database suitable for training the pix2pix model, all results need to be preprocessed. Each urban area and the corresponding noise map are resized to 256×256 pixels. The database is then split, 80% for the training set and the remaining 20% for the test set. Figure 2 A processed training case is shown, showing the city plan on the left, marking the buildings (grey from light to dark indicates building heights ranging from 15 to 30 meters), roads (blue represents urban expressways, red represents main roads, yellow represents secondary roads, turquoise represents branch roads) and urban green spaces (green). The noise map is shown on the right, with the color gradient from dark blue to dark red indicating noise levels ranging from 45dB(A) to 80dB(A).
[0049] The present invention uses the pix2pix algorithm to build a proxy model using a generative adversarial network (GAN), and the training steps are as follows:
[0050] S1: Collect and prepare pairs of training images, including input images and corresponding target output images. In this method, a 256*256*3 city map is used as input (pixel image) and a 256*256*3 noise map is generated as output.
[0051] S2: The generator uses the U-Net structure as the generator network. U-Net is a convolutional neural network with an encoding-decoding structure. The use of skip connections helps to maintain the details of the input image. The discriminator is the predicted image generated by the generator. The discriminator evaluates the similarity between the predicted image and the real image to help the generator continuously improve the generation quality.
[0052] S3: Define the loss function of the generator, including adversarial loss and content loss. Adversarial loss is used to make the generated image realistically close to the target output image, while content loss is used to ensure that the generated image is consistent with the target output image in content. The loss function in this method is as follows:
[0053] G * =argmin(G)max(D)L cGAN (G, D)+λL L1 (G)
[0054] L cGAN (G, D) = E x,y [log(1-D(x,G(x))]
[0055] L L1 (G) = E x,y [||yG(x)|| 1 ]
[0056] Among them, G is the generator, D is the discriminator, x is the input city map, y is the real city noise map, G(x) is the city noise map generated by the generator, and λ is the weight value.
[0057] Specifically, the optimization objective (loss function) in this model consists of two parts: a combination of adversarial loss and L1 loss for G, and a binary cross entropy loss function for D.
[0058] S4: Input paired training images and generate conversion images through the U-Net generator. The generated images are fed into the discriminator network together with the target output image, and the loss of the generator is calculated according to the defined loss function. The parameters of the generator are optimized using the back-propagation algorithm so that the generated images gradually approach the target output image. This method takes the real city map as input and the generated city noise map as output, and is trained using a proxy model developed using the interactive editing tool MATLAB.
[0059] S5: Use the validation set to evaluate the performance of the model and adjust the model structure or hyperparameters as needed. Monitor the loss changes during training to ensure that the model gradually converges during training. Of the 2200 samples in this method, 1760 are used for the training set and 440 are used for the validation set.
[0060] Specifically, the present invention uses a real city map as input, and the proxy model that generates a city noise map as output is developed using the interactive editing tool MATLAB. In order to strike a balance between the accuracy of the predicted image and the time cost, the number of iterations is finally fixed at 50. The training process covers a total of 1760 training sets. The experiments were conducted in an environment driven by an Intel(R) i7-12700F 12-core processor, running a 64-bit Windows 10 operating system, and equipped with an NVIDIA RTX 3060 GPU.
[0061] In an embodiment of the present invention, the discriminator converges after about 500 batches, while the generator converges after about 1500 batches.
[0062] like Figure 6 As shown in Figure 2, the ground truth, predicted images, and grayscale difference images of selected cases in the validation dataset are shown. Visually, the predicted images generated by the model convey almost the same information about the distribution of traffic noise as the ground truth. The mean square error (MSE) and structural similarity index (SSIM) are also included. Figure 6 middle.
[0063] The trained proxy model used a 440-sample validation dataset and calculated the mean square error (MSE) and structural similarity index (SSIM). Figure 6 The figure shows a histogram of the test set results. The test set produced an average MSE of 0.0949 and an average SSIM of 0.8528. These results show that the predictions of the surrogate model are closely related to the simulation software calculations. Therefore, the constructed model can provide decision support similar to professional noise simulation software with similar accuracy.
[0064] In the embodiment of the present invention, the trained model is programmed in MATLAB and co-simulated with Grasshopper, which becomes a tool that facilitates users to quickly obtain urban noise maps in the early stages of design. The tool includes two main modules: a model selection module and a fast prediction module.
[0065] The Model Selection module is configured by connecting various components / blocks in Grasshopper. It captures the city map designed by the user in Rhino and converts it into an image format compatible with the Rapid Prediction module. The image includes elements such as buildings, road widths, and green areas. Figure 8 (Right) shows the final city planning image used to predict the urban noise map.
[0066] The program obtains the building information from the model selection module and calls the trained proxy model. The final urban noise map prediction is displayed to the user in Grasshopper. Figure 8 (Left) Users who want to optimize the city layout can adjust the configuration of buildings, roads, etc. in Rhino to quickly generate a city noise map.
[0067] In the description of the present invention, the term "plurality" refers to two or more than two. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper" and "lower" is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0068] In the description of the present invention, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the present invention, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0069] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for mapping urban noise using generative adversarial networks, It is characterized in that The steps include: S1: Use open source map platform to obtain target city area data; S2: Generate regional network data using MATLAB and Grasshopper; S3: Acoustic simulation using environmental noise simulation software; S4: Use generative adversarial networks to build a proxy model and train the proxy model to predict the distribution of urban traffic noise; S5: Integrate the trained model into the Grasshopper tool to quickly generate traffic noise maps.
2. A method for drawing an urban noise map using a generative adversarial network according to claim 1, It is characterized in that In step S1, the target urban area data includes buildings, urban roads and green spaces.
3. A method for drawing an urban noise map using a generative adversarial network according to claim 1, It is characterized in that In step S2, the urban area is cut into regional grid data of 500m×500m using MATLAB.
4. A method for drawing an urban noise map using a generative adversarial network according to claim 1, It is characterized in that In step S4, the steps of training the proxy model are as follows: S1: Collect and prepare pairs of training images, wherein the training images include an input image and a corresponding target output image; S2: Build the generator and discriminator; S3: Define the loss function of the generator, which includes adversarial loss and content loss. The adversarial loss is used to make the generated image realistically close to the target output image, and the content loss is used to ensure that the generated image is consistent with the target output image in content. In fact, the loss function is as follows: G * =argmin(G)max(D)L cGAN (G,D)+λL L1 (G) L cGAN (G,D)=E x,y [log(1-D(x,G(x))] L L1 (G)=E x,y [||y-G(x)|| 1 ] Among them, G is the generator, D is the discriminator, x is the input city map, y is the real city noise map, G(x) is the city noise map generated by the generator, and λ is the weight value; S4: Input paired training images and generate conversion images through the generator. The generated images and the target output images are sent to the discriminator network together. The loss of the generator is calculated according to the defined loss function. The parameters of the generator are optimized using the back-propagation algorithm so that the generated image components are close to the target output image. S5: Use the validation set to evaluate the performance of the model and adjust the model structure or hyperparameters as needed. Ensure that the model gradually converges during training by monitoring the loss changes during training.
5. A method for drawing an urban noise map using a generative adversarial network according to claim 1, It is characterized in that The Grasshopper tool for quickly generating traffic noise maps during the design phase includes a model selection module and a rapid prediction module; The model selection module is configured by connecting various components / blocks in Grasshopper. The model selection module captures the city model designed by the user in Rhino and converts it into an image format compatible with the fast prediction module.
Citation Information
Cited By
High-rise residential area fire-fighting site automatic generation design method based on deep learning
CN119538389A
Urban noise map generation method based on machine learning
CN120910178A
Pix2Pix-based vector drawing generation model training method
CN120997865A
