Fire extinguishing bomb delivery strategy simulation method and system based on neural network
Through the simulation method of fire extinguishing bomb delivery strategy based on neural network, the problem that traditional fire extinguishing strategies are difficult to respond to changes in the fire scene in real time when facing complex fires is solved, more efficient and accurate fire extinguishing strategy generation and resource allocation are achieved, and the success rate of fire extinguishing is improved. and cost-effectiveness.
Patent Information
- Application Number
- CN202411132257.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-19
AI Technical Summary
Traditional fire extinguishing strategies are difficult to respond to changes in fire conditions in real time when facing large-scale or complex fires, resulting in unreasonable or timely allocation of fire extinguishing resources. Moreover, decision-making based on empirical rules is inefficient, making it difficult to improve the success rate of fire extinguishing and reduce resource consumption.
A fire-extinguishing bomb delivery strategy simulation method based on neural networks is adopted. By collecting and preprocessing historical fire field parameters and fire-extinguishing bomb delivery strategy parameters, an autoencoding network and a data enhancement algorithm are used to train the generation network, and a loss function is constructed to optimize the fire-extinguishing bomb delivery strategy.
It achieves the generation of a more accurate and effective fire-extinguishing bomb delivery strategy in a real-time fire environment, improves the efficiency and success rate of fire-fighting operations, optimizes the allocation of fire-fighting resources, and reduces fire-fighting costs.
Smart Images

Figure CN118656721B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of fire extinguishing bomb delivery strategy simulation, and in particular to a fire extinguishing bomb delivery strategy simulation method and system based on a neural network. Background Art
[0002] Firefighting is a time-sensitive and complex task that involves rapid identification and assessment of fire conditions, rational allocation of resources, and precise implementation of firefighting strategies. The unpredictability of fires and changing environmental conditions, such as wind speed, wind direction, and terrain, have a significant impact on firefighting effectiveness. Therefore, how to efficiently and accurately formulate firefighting strategies is the key to improving the success rate of firefighting and reducing resource consumption.
[0003] Traditional firefighting strategies are usually based on empirical rules and limited data, which often seem inadequate when faced with large-scale or complex fires. In addition, traditional methods are difficult to respond to changes in fire conditions in real time, resulting in the allocation of firefighting resources being unreasonable or in a timely manner. Summary of the invention
[0004] In view of this, the present invention provides a fire extinguishing bomb delivery strategy simulation method based on neural network, aiming to provide a comprehensive, efficient and intelligent fire extinguishing bomb delivery strategy simulation solution to cope with the ever-changing fire environment and improve the overall effect of fire extinguishing operations.
[0005] To achieve the above object, the present invention provides a method for simulating fire extinguishing bomb delivery strategy based on a neural network, comprising the following steps:
[0006] S1: Collect historical fire scene parameters and corresponding fire bomb delivery strategy parameters as the original data set, normalize or one-hot encode each parameter in the original data set to obtain the preprocessed data set;
[0007] S2: Use the data enhancement algorithm to oversample the preprocessed data set to obtain an enhanced data set;
[0008] S3: training the autoencoder network based on the enhanced data set, and obtaining the encoded data set using the trained autoencoder network;
[0009] S4: Construct a fire bomb delivery strategy generation network based on the encoded data set and calculate the forward propagation process;
[0010] S5: Construct a loss function and train a fire-extinguishing bomb delivery strategy generation network, and use the trained fire-extinguishing bomb delivery strategy generation network to simulate the fire-extinguishing bomb delivery strategy;
[0011] As a further improvement method of the present invention:
[0012] Optionally, in step S1, historical fire scene parameters and fire extinguishing bomb delivery strategy parameters are collected as original data sets, and each parameter in the original data set is normalized or one-hot encoded to obtain a preprocessed data set, including:
[0013] S11: Collect the original dataset:
[0014] The original data set consists of historical fire scene parameters and corresponding fire bomb delivery strategy parameters. The fire scene parameters include the fire scene area , Fire size level , Fire Type , wind speed and humidity , of which the fire area , wind speed and humidity is a continuous positive real number, the fire magnitude level and fire type is a discrete positive integer; the fire bomb delivery strategy includes the number of drones deployed 、Types of fire extinguisher bombs , Number of fire extinguisher bombs , release height , delivery speed , including the number of drones 、Types of fire extinguisher bombs and the number of fire extinguishers is a discrete positive integer, the height of and delivery speed is a continuous positive real number;
[0015] S12: Preprocessing:
[0016] Preprocessing the continuous positive real numbers and discrete positive integers in the original data set, the preprocessing comprising:
[0017] Normalize the continuous positive real number set in the original data set, the continuous positive real number set Specifically:
[0018] ;
[0019] Then for the set of continuous positive real numbers Each element in is normalized to its maximum and minimum values;
[0020] Perform one-hot encoding on the discrete positive integer set in the original data set, the discrete positive integer set Specifically:
[0021] ;
[0022] Then, each element in the discrete positive integer set is one-hot encoded, and the one-hot encoding creates a binary column for each positive integer, where the column value indicated by the positive integer is 1, and the rest is 0;
[0023] Use the normalized set of continuous positive real numbers and the discrete positive integer set after one-hot encoding The preprocessed data set is formed, and the preprocessed data set includes the preprocessed fire scene parameters and the corresponding preprocessed fire extinguishing bomb delivery strategy parameters, specifically:
[0024] ;
[0025] ;
[0026] in, and are the pre-processed fire scene parameters and their corresponding pre-processed fire extinguishing bomb delivery strategy parameters; and Together they constitute the preprocessed data set.
[0027] Optionally, in step S2, oversampling the preprocessed data set by using a data enhancement algorithm to obtain an enhanced data set includes:
[0028] S21: Select samples and calculate the nearest neighbor samples:
[0029] Randomly select samples from the preprocessed dataset ,sample Specifically:
[0030] ;
[0031] in, is the sample serial number, , is the total number of samples contained in the preprocessed data set; and The samples are The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ;
[0032] based on Calculate the sample distance, which is specifically:
[0033] ;
[0034] in, and ; For sample The pre-processed fire scene parameters included in; and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; Calculate the second norm; Calculate Manhattan distance; To adjust the parameters;
[0035] Select according to the sample distance from small to large neighboring samples and randomly select one sample from them as the control sample ;
[0036] S22: Generate synthetic samples:
[0037] exist and Generate new synthetic samples , specifically:
[0038] ;
[0039] ;
[0040] ;
[0041] ;
[0042] in, and The synthetic samples The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; , and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; , and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; and The control samples The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; , and is a random number uniformly distributed from 0 to 1;
[0043] S23: Merge datasets:
[0044] Use steps S21 and S22 to generate The synthetic samples are combined with the preprocessed dataset to obtain the enhanced dataset.
[0045] Optionally, in the step S3, the training of the enhanced data set based on the autoencoder network comprises the following steps:
[0046] S31: Constructing the autoencoder network architecture:
[0047] The autoencoder network consists of an input layer, an encoding layer, a decoding layer, and an output layer, specifically:
[0048] ;
[0049] in, It is the input layer, which consists of a fully connected layer; It is the encoding layer, which consists of three fully connected layers; It is the decoding layer, which consists of three fully connected layers; is the output layer, which consists of a fully connected layer; The first The pre-processed fire scene parameters contained in the samples are ; Reconstructed for the autoencoder network ;
[0050] S32: Training the Autoencoder Network:
[0051] The loss function of the autoencoder network is the reconstruction error, specifically:
[0052] ;
[0053] in, Calculate the square of the second norm;
[0054] Use the stochastic gradient descent method to optimize the autoencoder network parameters and obtain the trained autoencoder network;
[0055] The method of obtaining the encoded data set using the trained autoencoder network comprises the following steps:
[0056] Will Input to the trained autoencoder network and extract the output of the encoding layer as Data encoding ;
[0057] The encoded data set is obtained by combining the data coding and the corresponding fire bomb delivery strategy parameters, specifically:
[0058] ;
[0059] in, is the encoded data set; for The corresponding pre-processed fire extinguishing bomb delivery strategy parameters.
[0060] Optionally, in step S4, a fire extinguishing bomb delivery strategy generation network is constructed based on the encoded data set and a forward propagation process is calculated, including:
[0061] S41: Building the network architecture:
[0062] The fire bomb delivery strategy generation network consists of a conversion layer, a hidden layer, and a prediction layer. The conversion layer contains a fully connected layer, and the hidden layer contains a continuous The prediction layer contains independent Layer fully connected network;
[0063] S42: Calculate the forward propagation process:
[0064] The conversion layer concentrates the encoded data into Data encoding Converted into input features, specifically:
[0065] ;
[0066] in, is the conversion layer; For the rectified linear unit, the input value less than 0 is output as 0; for The converted features;
[0067] The hidden layer is passed Layer-by-layer fully connected network Perform feature extraction, specifically:
[0068] ;
[0069] in, For the layer hidden layer, ; For the The output of the hidden layer;
[0070] The prediction layer uses The output pair of the hidden layer Corresponding preprocessed fire extinguishing bomb delivery strategy parameters Each parameter contained in is predicted independently, specifically:
[0071] ;
[0072] in, For the Layer prediction layer; For the Layer prediction layer prediction Included in parameters; For the The output of the hidden layer; is a random disturbance obtained by random sampling from a Gaussian distribution with a mean of 0 and a variance of 0.001.
[0073] Optionally, in step S5, a loss function is constructed and a fire-extinguishing bomb delivery strategy generation network is trained, and the fire-extinguishing bomb delivery strategy generation network that has been trained is used to simulate the fire-extinguishing bomb delivery strategy, including:
[0074] S51: Construct loss function and train:
[0075] The loss function is constructed based on the fire bomb delivery strategy parameter type and cost constraints, specifically:
[0076] ;
[0077] in, , , and They are total loss, continuous positive real number loss, discrete positive integer loss and cost loss;
[0078] Optimize the total loss using stochastic gradient descent , and obtain the trained fire-extinguishing bomb delivery strategy generation network;
[0079] S52: Generate strategy:
[0080] The fire scene parameters that need to be simulated for the fire extinguishing bomb delivery strategy are obtained, and the data encoding is obtained after processing in step S3 and input into the trained fire extinguishing bomb delivery strategy generation network to obtain the corresponding fire extinguishing bomb delivery strategy.
[0081] The present invention also discloses a fire extinguishing bomb delivery strategy simulation system based on a neural network, comprising:
[0082] Preprocessing module: collect historical fire scene parameters and corresponding fire bomb delivery strategy parameters as the original data set, and perform normalization or one-hot encoding on each parameter in the original data set;
[0083] Data enhancement module: Use data enhancement algorithm to oversample the preprocessed data set;
[0084] Data encoding module: train the autoencoder network based on the enhanced data set;
[0085] Network construction module: constructs a fire bomb delivery strategy generation network based on the encoded data set and calculates the forward propagation process;
[0086] Network training and application module: Construct loss function and train the fire-extinguishing bomb delivery strategy generation network, and use the trained fire-extinguishing bomb delivery strategy generation network to simulate the fire-extinguishing bomb delivery strategy.
[0087] Beneficial Effects
[0088] The present invention uses advanced neural network technology to conduct in-depth analysis and learning of historical fire scene data and fire bomb delivery strategies, and can automatically generate more accurate and effective fire bomb delivery strategies. This method not only takes into account the real-time parameters of the fire scene, but also can adapt to the rapid changes in the fire scene environment, thereby significantly improving the efficiency and success rate of firefighting operations and reducing the losses caused by fire.
[0089] The method of the present invention realizes the optimal configuration of fire-fighting resources through simulation and prediction. By using the autoencoder network to extract key features and combining the multi-objective optimization algorithm, the present invention can reduce unnecessary resource consumption and reduce fire-fighting costs while ensuring the fire-fighting effect. This method is particularly suitable for large-scale or complex fire scenes, and can effectively allocate limited fire-fighting resources to maximize cost-effectiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 The figure is a flow chart of a method for simulating a fire extinguishing bomb delivery strategy based on a neural network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0091] The present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any changes or substitutions made based on the teachings of the present invention belong to the protection scope of the present invention.
[0092] Embodiment 1:
[0093] A simulation method for fire-extinguishing bomb delivery strategy based on neural network, such as Figure 1 As shown, the following steps are included:
[0094] S1: Collect historical fire scene parameters and corresponding fire bomb delivery strategy parameters as the original data set, normalize or one-hot encode each parameter in the original data set, and obtain the preprocessed data set:
[0095] S11: Collect the original dataset:
[0096] The original data set consists of historical fire scene parameters and corresponding fire bomb delivery strategy parameters. The fire scene parameters include the fire scene area , Fire size level , Fire Type , wind speed and humidity , of which the fire area , wind speed and humidity is a continuous positive real number, the fire magnitude level and fire type is a discrete positive integer; the fire bomb delivery strategy includes the number of drones deployed , Types of fire extinguisher bombs , Number of fire extinguisher bombs , release height , delivery speed , including the number of drones 、Types of fire extinguisher bombs and the number of fire extinguishers is a discrete positive integer, the release height and delivery speed is a continuous positive real number;
[0097] S12: Preprocessing:
[0098] Preprocessing the continuous positive real numbers and discrete positive integers in the original data set, the preprocessing comprising:
[0099] Normalize the continuous positive real number set in the original data set, the continuous positive real number set Specifically:
[0100] ;
[0101] Then for the set of continuous positive real numbers Each element in is normalized to its maximum and minimum values, and the maximum and minimum value normalization is specifically as follows:
[0102] ;
[0103] in, For collection Elements in is the normalized set Elements in ; and Calculate functions for minimum and maximum values separately;
[0104] Perform one-hot encoding on the discrete positive integer set in the original data set, the discrete positive integer set Specifically:
[0105] ;
[0106] Then, each element in the discrete positive integer set is one-hot encoded, and the one-hot encoding creates a binary column for each positive integer, where the column value indicated by the positive integer is 1, and the rest is 0;
[0107] Use the normalized set of continuous positive real numbers and the discrete positive integer set after one-hot encoding The preprocessed data set is formed, and the preprocessed data set includes the preprocessed fire scene parameters and the corresponding preprocessed fire extinguishing bomb delivery strategy parameters, specifically:
[0108] ;
[0109] ;
[0110] in, and are the pre-processed fire scene parameters and their corresponding pre-processed fire extinguishing bomb delivery strategy parameters; and Together they constitute the preprocessed data set.
[0111] By normalizing continuous positive real number parameters, this step ensures that data of different dimensions and magnitudes can be compared and processed under a unified standard. This helps avoid bias caused by numerical differences during model training and improves model stability and prediction accuracy. One-hot encoding of discrete positive integer parameters can not only convert categorical data into a form that is easy for the model to handle, but also increase the expressiveness of the data and avoid potential bias, thereby enhancing the model's generalization ability for different categorical features.
[0112] S2: Use the data enhancement algorithm to oversample the preprocessed data set to obtain an enhanced data set:
[0113] S21: Select samples and calculate the nearest neighbor samples:
[0114] Randomly select samples from the preprocessed dataset ,sample Specifically:
[0115] ;
[0116] in, is the sample serial number, , is the total number of samples contained in the preprocessed data set; and The samples are The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ;
[0117] based on Calculate the sample distance, which is specifically:
[0118] ;
[0119] in, and ; For sample The pre-processed fire scene parameters included in; and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; Calculate the second norm; Calculate Manhattan distance; To adjust the parameters, in this embodiment, it is 0.1;
[0120] Select according to the sample distance from small to large neighboring samples and randomly select one sample from them as the control sample ;
[0121] S22: Generate synthetic samples:
[0122] exist and Generate new synthetic samples , specifically:
[0123] ;
[0124] ;
[0125] ;
[0126] ;
[0127] in, and The synthetic samples The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; , and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; , and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; and The control samples The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; , and is a random number uniformly distributed from 0 to 1;
[0128] S23: Merge datasets:
[0129] Use steps S21 and S22 to generate The synthetic samples are combined with the preprocessed dataset to obtain the enhanced dataset.
[0130] Generating synthetic samples through data augmentation algorithms increases the number and diversity of samples in the dataset, which helps train a more robust model and reduces dependence on specific data distributions. In many practical applications, some categories in the dataset may have fewer samples. By oversampling these minority class samples, the category distribution in the dataset can be balanced, improving the model's ability to recognize and process these categories. The introduction of synthetic samples provides the model with more training samples, which helps the model learn a wider range of feature representations, thereby enhancing the model's generalization ability on unseen data.
[0131] S3: Train the autoencoder network based on the enhanced data set, and use the trained autoencoder network to obtain the encoded data set:
[0132] The training of the autoencoder network based on the enhanced data set comprises the following steps:
[0133] S31: Constructing the autoencoder network architecture:
[0134] The autoencoder network consists of an input layer, an encoding layer, a decoding layer, and an output layer, specifically:
[0135] ;
[0136] in, It is the input layer, which consists of a fully connected layer; It is the encoding layer, which consists of three fully connected layers; It is the decoding layer, which consists of three fully connected layers; is the output layer, which consists of a fully connected layer; The first The pre-processed fire scene parameters contained in the samples are ; Reconstructed for the autoencoder network ;
[0137] S32: Training the Autoencoder Network:
[0138] The loss function of the autoencoder network is the reconstruction error, specifically:
[0139] ;
[0140] in, Calculate the square of the second norm;
[0141] Use the stochastic gradient descent method to optimize the autoencoder network parameters and obtain the trained autoencoder network;
[0142] The method of obtaining the encoded data set using the trained autoencoder network comprises the following steps:
[0143] Will Input to the trained autoencoder network, extract the output of the encoding layer as data encoding, specifically:
[0144] ;
[0145] in, for Data encoding;
[0146] The encoded data set is obtained by combining the data coding and the corresponding fire bomb delivery strategy parameters, specifically:
[0147] ;
[0148] in, is the encoded data set; for The corresponding pre-processed fire extinguishing bomb delivery strategy parameters.
[0149] The autoencoder network can automatically learn effective feature representations of data, extract key information of the data through the encoding layer, and achieve data compression. This helps to remove noise and redundant information in the original data and retain the most valuable features. Through the nonlinear transformation of the autoencoder network, the original data is mapped to a higher-level feature space, which makes the data set richer and more accurate in representing the fire bomb delivery strategy. The reconstruction error of the autoencoder network is used as a loss function, forcing the network to learn the encoding that can accurately reconstruct the input data. This unsupervised learning process helps to improve the generalization ability of the model on unseen data.
[0150] S4: Construct a fire bomb delivery strategy generation network based on the encoded data set and calculate the forward propagation process:
[0151] S41: Building the network architecture:
[0152] The fire bomb delivery strategy generation network consists of a conversion layer, a hidden layer, and a prediction layer. The conversion layer contains a fully connected layer, and the hidden layer contains a continuous The prediction layer contains independent Layer fully connected network;
[0153] S42: Calculate the forward propagation process:
[0154] The conversion layer concentrates the encoded data into Data encoding Converted into input features, specifically:
[0155] ;
[0156] in, is the conversion layer; For the rectified linear unit, the input value less than 0 is output as 0; for The converted features;
[0157] The hidden layer is passed Layer-by-layer fully connected network Perform feature extraction, specifically:
[0158] ;
[0159] in, For the layer hidden layer, ; For the The output of the hidden layer;
[0160] The prediction layer uses The output pair of the hidden layer Corresponding preprocessed fire extinguishing bomb delivery strategy parameters Each parameter contained in is predicted independently, specifically:
[0161] ;
[0162] in, For the Layer prediction layer; For the Layer prediction layer prediction Included in parameters; For the The output of the hidden layer; is a random disturbance obtained by random sampling from a Gaussian distribution with a mean of 0 and a variance of 0.001.
[0163] Through successive hidden layers, the network is able to extract deep features from the encoded data set, which are critical to understanding the fire bomb delivery strategy. The prediction layer independently predicts each fire bomb delivery strategy parameter, which can more finely adjust the prediction results of each parameter and improve the accuracy of the overall strategy.
[0164] S5: Construct a loss function and train the fire bomb delivery strategy generation network. Use the trained fire bomb delivery strategy generation network to simulate the fire bomb delivery strategy:
[0165] S51: Construct loss function and train:
[0166] The loss function is constructed based on the fire bomb delivery strategy parameter type and cost constraints, specifically:
[0167] ;
[0168] ;
[0169] ;
[0170] ;
[0171] in, , , and They are total loss, continuous positive real number loss, discrete positive integer loss and cost loss, , for The set of parameter indices that are continuous positive real numbers in ; , for The set of parameter indices that are discrete positive integers in ; for Included in parameters; The prediction layer predicts Included in parameters; for Included in parameters; The prediction layer predicts Included in parameters; The prediction layer predicts ; is the mean absolute value loss; is the cross entropy loss; Calculation Use As the cost of the fire bomb delivery strategy, is the weighting coefficient, which is 0.01 in this embodiment;
[0172] Optimize the total loss using stochastic gradient descent , and obtain the trained fire-extinguishing bomb delivery strategy generation network;
[0173] S52: Generate strategy:
[0174] The fire scene parameters that need to be simulated for the fire extinguishing bomb delivery strategy are obtained, and the data encoding is obtained after processing in step S3 and input into the trained fire extinguishing bomb delivery strategy generation network to obtain the corresponding fire extinguishing bomb delivery strategy.
[0175] By constructing a comprehensive loss function, this step can simultaneously consider the prediction accuracy of continuous variables, the prediction accuracy of discrete variables, and cost-effectiveness, thereby more comprehensively optimizing the fire bomb delivery strategy. The loss function contains both continuous positive real number loss and discrete positive integer loss, allowing the network to handle different types of parameters, which is crucial for the diversity and complexity of fire bomb delivery strategies. By introducing cost loss, the cost of fire bomb delivery is taken into account during the model training process, ensuring that the generated strategy is not only effective but also economically reasonable.
[0176] Embodiment 2:
[0177] The present invention also discloses a fire extinguishing bomb delivery strategy simulation system based on a neural network, which includes the following five modules:
[0178] Preprocessing module: collect historical fire scene parameters and corresponding fire bomb delivery strategy parameters as the original data set, and perform normalization or one-hot encoding on each parameter in the original data set;
[0179] Data enhancement module: Use data enhancement algorithm to oversample the preprocessed data set;
[0180] Data encoding module: train the autoencoder network based on the enhanced data set;
[0181] Network construction module: constructs a fire bomb delivery strategy generation network based on the encoded data set and calculates the forward propagation process;
[0182] Network training and application module: Construct loss function and train the fire-extinguishing bomb delivery strategy generation network, and use the trained fire-extinguishing bomb delivery strategy generation network to simulate the fire-extinguishing bomb delivery strategy.
[0183] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0184] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0185] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A fire-extinguishing bomb delivery strategy simulation method based on a neural network, characterized in that: The following steps are involved: S1: Collect historical fire scene parameters and corresponding fire bomb delivery strategy parameters as the original data set, normalize or one-hot encode each parameter in the original data set to obtain the preprocessed data set; S2: Use the data enhancement algorithm to oversample the preprocessed data set to obtain an enhanced data set; S3: training the autoencoder network based on the enhanced data set, and obtaining the encoded data set using the trained autoencoder network; The training of the autoencoder network based on the enhanced data set comprises the following steps: S31: Constructing the autoencoder network architecture: The autoencoder network consists of an input layer, an encoding layer, a decoding layer, and an output layer, specifically: ; in, It is the input layer, which consists of a fully connected layer; It is the encoding layer, which consists of three fully connected layers; It is the decoding layer, which consists of three fully connected layers; is the output layer, which consists of a fully connected layer; The first The pre-processed fire scene parameters contained in the samples are ; is the total number of samples contained in the preprocessed data set; Reconstructed for the autoencoder network ; S32: Training the Autoencoder Network: The loss function of the autoencoder network is the reconstruction error, specifically: ; in, Calculate the square of the second norm; Use the stochastic gradient descent method to optimize the autoencoder network parameters and obtain the trained autoencoder network; S4: Construct a fire bomb delivery strategy generation network based on the encoded data set and calculate the forward propagation process; S5: Construct a loss function and train the fire extinguishing bomb delivery strategy generation network, and use the trained fire extinguishing bomb delivery strategy generation network to simulate the fire extinguishing bomb delivery strategy.
2. The method for simulating fire extinguishing bomb delivery strategy based on neural network according to claim 1 is characterized in that: The step S1 includes the following steps: S11: Collect the original dataset: The original data set consists of historical fire scene parameters and corresponding fire bomb delivery strategy parameters. The fire scene parameters include the fire scene area , Fire size level , Fire Type , wind speed and humidity , of which the fire area , wind speed and humidity is a continuous positive real number, the fire magnitude level and fire type is a discrete positive integer; the fire bomb delivery strategy includes the number of drones deployed 、Types of fire extinguisher bombs , Number of fire extinguisher bombs , release height , delivery speed , including the number of drones 、Types of fire extinguisher bombs and the number of fire extinguishers is a discrete positive integer, the height of and delivery speed is a continuous positive real number; S12: Preprocessing: Preprocessing the continuous positive real numbers and discrete positive integers in the original data set, the preprocessing comprising: Normalize the continuous positive real number set in the original data set, the continuous positive real number set Specifically: ; Then for the set of continuous positive real numbers Each element in is normalized to its maximum and minimum values; Perform one-hot encoding on the discrete positive integer set in the original data set, the discrete positive integer set Specifically: ; Then, each element in the discrete positive integer set is one-hot encoded, and the one-hot encoding creates a binary column for each positive integer, where the column value indicated by the positive integer is 1, and the rest is 0; Use the normalized set of continuous positive real numbers and the discrete positive integer set after one-hot encoding The preprocessed data set is formed, and the preprocessed data set includes the preprocessed fire scene parameters and the corresponding preprocessed fire extinguishing bomb delivery strategy parameters, specifically: ; ; in, and are the pre-processed fire scene parameters and their corresponding pre-processed fire extinguishing bomb delivery strategy parameters; and Together they constitute the preprocessed data set.
3. The method for simulating fire extinguishing bomb delivery strategy based on neural network according to claim 2 is characterized in that: The step S2 includes the following steps: S21: Select samples and calculate the nearest neighbor samples: Randomly select samples from the preprocessed dataset ,sample Specifically: ; in, is the sample serial number, ; and The samples are The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; based on Calculate the sample distance, which is specifically: ; in, and ; For sample The pre-processed fire scene parameters included in; and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; Calculate the second norm; Calculate Manhattan distance; To adjust the parameters; Select according to the sample distance from small to large neighboring samples and randomly select one sample from them as the control sample ; S22: Generate synthetic samples: exist and Generate new synthetic samples , specifically: ; ; ; ; in, and The synthetic samples The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; , and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; , and They are The normalized continuous positive real numbers and the one-hot encoded discrete positive integers contained in ; and The control samples The pre-processed fire scene parameters and the corresponding pre-processed fire extinguishing bomb delivery strategy parameters contained in ; , and is a random number uniformly distributed from 0 to 1; S23: Merge datasets: Use steps S21 and S22 to generate The synthetic samples are combined with the preprocessed dataset to obtain the enhanced dataset.
4. The method for simulating fire extinguishing bomb delivery strategy based on neural network according to claim 3 is characterized in that: In step S3, obtaining the encoded data set using the trained autoencoder network comprises the following steps: Will Input to the trained autoencoder network and extract the output of the encoding layer as Data encoding ; The encoded data set is obtained by combining the data coding and the corresponding fire bomb delivery strategy parameters, specifically: ; in, is the encoded data set; for The corresponding pre-processed fire extinguishing bomb delivery strategy parameters.
5. The method for simulating fire extinguishing bomb delivery strategy based on neural network according to claim 4 is characterized in that: The step S4 includes the following steps: S41: Building the network architecture: The fire bomb delivery strategy generation network consists of a conversion layer, a hidden layer, and a prediction layer. The conversion layer contains a fully connected layer, and the hidden layer contains a continuous The prediction layer contains independent Layer fully connected network; S42: Calculate the forward propagation process: The conversion layer concentrates the encoded data into Data encoding Converted into input features, specifically: ; in, is the conversion layer; For the rectified linear unit, the input value less than 0 is output as 0; for The converted features; The hidden layer is passed Layer-by-layer fully connected network Perform feature extraction, specifically: ; in, For the layer hidden layer, ; For the The output of the hidden layer; The prediction layer uses The output pair of the hidden layer Corresponding preprocessed fire extinguishing bomb delivery strategy parameters Each parameter contained in is predicted independently, specifically: ; in, For the Layer prediction layer; For the Layer prediction layer prediction Included in parameters; For the The output of the hidden layer; is a random disturbance obtained by random sampling from a Gaussian distribution with a mean of 0 and a variance of 0.
001.
6. The method for simulating fire extinguishing bomb delivery strategy based on neural network according to claim 5 is characterized in that: The step S5 includes the following steps: S51: Construct loss function and train: The loss function is constructed based on the fire bomb delivery strategy parameter type and cost constraints, specifically: ; in, , , and They are total loss, continuous positive real number loss, discrete positive integer loss and cost loss; Optimize the total loss using stochastic gradient descent , and obtain the trained fire-extinguishing bomb delivery strategy generation network; S52: Generate strategy: The fire scene parameters that need to be simulated for the fire extinguishing bomb delivery strategy are obtained, and the data encoding is obtained after processing in step S3 and input into the trained fire extinguishing bomb delivery strategy generation network to obtain the corresponding fire extinguishing bomb delivery strategy.
7. The fire-extinguishing bomb delivery strategy simulation system based on neural network is characterized by: include: Preprocessing module: collect historical fire scene parameters and corresponding fire bomb delivery strategy parameters as the original data set, and perform normalization or one-hot encoding on each parameter in the original data set; Data enhancement module: Use data enhancement algorithm to oversample the preprocessed data set; Data encoding module: train the autoencoder network based on the enhanced data set; Network construction module: constructs a fire bomb delivery strategy generation network based on the encoded data set and calculates the forward propagation process; Network training and application module: construct loss function and train the fire bomb delivery strategy generation network, and use the trained fire bomb delivery strategy generation network to simulate the fire bomb delivery strategy; To realize the fire extinguishing bomb delivery strategy simulation method based on neural network as described in any one of claims 1-6.
Citation Information
Patent Citations
Network intrusion detection method based on data enhancement and self-supervised feature enhancement
CN114978613A
Asymmetric stacking sparse self-coding fault diagnosis method considering data features
CN114997225A
