Earthquake impact range assessment method and related equipment

By extracting and processing dynamic data from social media, constructing earthquake-feeling feature vectors, and using neural networks to predict the earthquake's impact range, it solves the problem of spatial and temporal limitations in post-earthquake disaster assessment, achieves fast and accurate impact range assessment, and supports timely rescue operations.

CN114564558BActive Publication Date: 2024-10-15BEIJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210006246.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-05
Publication Date
2024-10-15
Estimated Expiration
2042-01-05

AI Technical Summary

Technical Problem

After an earthquake, there is a black box time of several hours after the earthquake. As a result, the assessment of the earthquake's impact scope has limitations in the amount of information, spatial and temporal scope, and timeliness, making it difficult to conduct accurate and rapid research and judgment in the first place.

Method used

By extracting dynamic data from social media, preprocessing is performed to obtain word vectors and geographical location information, and combined with the attention mechanism and fully connected neural network, a seismic feature vector is constructed to predict the earthquake's impact range and generate an impact range distribution map.

Benefits of technology

It achieves rapid and accurate assessment of the earthquake's impact scope, breaks through the limitations of space and timeliness, improves the efficiency of disaster assessment, and supports the timely implementation of rescue operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564558B_ABST
    Figure CN114564558B_ABST
Patent Text Reader

Abstract

The present application provides an earthquake impact range assessment method and related devices; the method includes: extracting multiple dynamics from social media and preprocessing them to obtain word vectors and geographic location information, and determining the extraction time; extracting a text semantic matrix and a symbol semantic matrix from the word vector, respectively calculating them using an attention mechanism, and merging the calculation results to obtain an emotional feature vector of the dynamic; inputting all emotional feature vectors into a pre-trained classifier to obtain different emotion categories to which the dynamics belong, wherein the emotion categories include: negative emotions; dividing the earthquake area into multiple sub-areas, for each sub-area, using the extraction time of all dynamics, the number of dynamics, and the number of dynamics belonging to negative emotions to establish a seismic feature vector for the sub-area; inputting the seismic feature vector of each sub-area into a pre-trained fully connected neural network to predict the degree of earthquake impact and obtain a distribution map of the earthquake impact range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to disaster information acquisition technology, and more particularly to an earthquake impact range assessment method and related equipment. Background Art

[0002] In the relevant disaster information acquisition methods, especially the acquisition of earthquake disaster information, there is often a black box time of several hours after the earthquake, which makes the relevant earthquake disaster assessment methods, especially the earthquake impact range, limited in terms of information volume, temporal and spatial scope and timeliness.

[0003] Based on this, a solution is needed that can break through the limitations of time and space and quickly obtain the impact range of an earthquake. Summary of the invention

[0004] In view of this, the purpose of this application is to propose an earthquake impact range assessment method and related equipment.

[0005] Based on the above purpose, this application provides an earthquake impact range assessment method, including:

[0006] Extracting multiple dynamics from social media, and preprocessing each of the dynamics to obtain word vectors and geographic location information of each of the dynamics, and determining the extraction time of the multiple dynamics;

[0007] For each of the dynamics, extracting a text semantic matrix and a symbol semantic matrix from the word vector, respectively adopting an attention mechanism to perform calculations, and merging the calculation results to obtain a sentiment feature vector for the dynamic;

[0008] Classify all the emotional feature vectors and input them into a pre-trained classifier to obtain different emotional categories to which the dynamics belong, wherein the emotional categories include: negative emotions;

[0009] According to the geographic location information, the earthquake region is divided into a plurality of sub-regions, and for each sub-region, a seismic feature vector for the sub-region is established by using the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions, and the pre-acquired population number;

[0010] The earthquake-feeling feature vector of each sub-region is input into a pre-trained fully connected neural network to predict the earthquake impact degree and obtain a distribution map of the earthquake impact range.

[0011] Furthermore, the obtaining of each dynamic word vector and geographic location information includes:

[0012] For each of the dynamics, the sentences in the dynamics are segmented using the Jieba Chinese word segmentation to obtain a text sequence and a symbol sequence, and the text sequence and the symbol sequence are input into a language representation model to obtain the word vector.

[0013] Furthermore, the above-mentioned attention mechanisms are used for calculation respectively, and the calculation results are merged, including:

[0014] For each of the dynamics, input the text semantic matrix into a gated recurrent unit for encoding to obtain text features;

[0015] Inputting the symbol semantic matrix into a convolutional neural network for encoding to obtain symbol features;

[0016] Constructing a first activation function for the text feature using a preset first adjustable weight and a first bias coefficient;

[0017] Constructing a second activation function for the symbol feature using a preset second adjustable weight and a second bias coefficient;

[0018] Calculating a target text feature vector using the first activation function, and calculating a target symbol feature vector using the second activation function;

[0019] The target text feature vector and the target symbol feature vector are fused in a row-connected manner to obtain the dynamic emotion feature vector of the item.

[0020] Furthermore, the pre-training process of the classifier includes:

[0021] Extracting historical data from the social media to obtain the emotional feature vectors belonging to different emotional categories in each dynamic, and inputting the emotional feature vectors into the classifier to obtain a conditional probability distribution for classifying the dynamic;

[0022] A loss function is established using the conditional probability distribution when the dynamic message belongs to different emotion categories, and the classifier is trained with the goal of minimizing the loss function;

[0023] The emotion categories include: positive emotion, sad emotion, anxious emotion, fear emotion, angry emotion and no emotion, and the sad emotion, the anxious emotion and the fear emotion are defined as the negative emotions.

[0024] Furthermore, the earthquake region is divided into a plurality of sub-regions according to the geographical location information, including:

[0025] For each of the plurality of dynamics extracted, in response to determining that the dynamic has geographic location information, obtaining the geographic location information, and mapping the geographic location information into geographic coordinates by forward geocoding;

[0026] The sub-region to which each of the dynamic attributes belongs is determined according to the geographic coordinates.

[0027] Furthermore, the use of the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions and the pre-acquired population number to establish a vibration feature vector for the sub-region includes:

[0028] For each of the sub-regions, perform the following operations:

[0029] Divide the whole day into a multi-dimensional first sub-interval, and divide the time difference between the acquired earthquake occurrence time and the extraction time into a multi-dimensional second sub-interval, merge the first sub-interval and the second sub-interval to obtain a multi-dimensional first discrete interval, and determine the first unique heat vector of the sub-region with respect to the extraction time according to the dimension of the first discrete interval to which the earthquake occurrence time belongs;

[0030] Dividing the number of dynamics into a second discrete interval of multiple dimensions, determining the number of dynamics extracted at the extraction time in the sub-area, and determining a second one-hot vector of the sub-area with respect to the number of dynamics according to the dimension of the second discrete interval to which the number of dynamics belongs;

[0031] Divide the pre-acquired population of the sub-region into a third discrete interval of multiple dimensions, and determine a third unique hot vector of the sub-region with respect to the population according to the dimension of the third discrete interval to which the population belongs;

[0032] According to the classification of the emotion category, in the sub-region, among all the dynamics extracted at the extraction time, determining the emotion proportion of the dynamics belonging to the negative emotion, dividing the emotion proportion into a fourth discrete interval of multiple dimensions, and determining a fourth unique hot vector of the sub-region with respect to the emotion proportion according to the dimension of the fourth discrete interval to which the emotion proportion belongs;

[0033] The first one-hot vector, the second one-hot vector, the third one-hot vector and the fourth one-hot vector are collectively used as the seismic feature vector.

[0034] Furthermore, the training process of the fully connected neural network includes:

[0035] Using the historical data extracted from the social media, obtaining the earthquake feature vector of each sub-region;

[0036] Inputting the earthquake-felt feature vector of each sub-region into the fully connected neural network, predicting the earthquake impact degree and obtaining a prediction result, and combining the prediction results of all the sub-regions to obtain a distribution map of the earthquake impact range;

[0037] Obtaining the official earthquake intensity, making a one-to-one correspondence between the official earthquake intensity and the earthquake impact degree, and using the two to construct a cost function in the fully connected neural network, and training the fully connected neural network to predict the earthquake impact degree;

[0038] In response to the cost function minimization converging to a preset convergence limit, the training is completed to obtain the pre-trained fully connected neural network.

[0039] Based on the same inventive concept, the present application also provides a device for evaluating earthquake impact range, comprising:

[0040] A preprocessing module is configured to: extract multiple dynamics from social media, preprocess each of the dynamics, obtain a word vector and geographic location information of each of the dynamics, and determine the extraction time of the multiple dynamics;

[0041] The semantic synthesis module is configured to: for each of the dynamics, extract a text semantic matrix and a symbol semantic matrix from the word vector, respectively adopt an attention mechanism to calculate, and merge the calculation results to obtain a sentiment feature vector of the dynamic;

[0042] The classification module is configured to: classify all the emotion feature vectors and input them into a pre-trained classifier to obtain different emotion categories to which the dynamics belong, wherein the emotion categories include: negative emotions;

[0043] The earthquake feature determination module is configured to: divide the earthquake area into a plurality of sub-areas, and for each of the sub-areas, establish an earthquake feature vector for the sub-area by using the extraction time of all the dynamics, the dynamic number of the dynamics, the number of the dynamics belonging to the negative emotions, and the pre-acquired population number;

[0044] The evaluation module is configured to: input the earthquake feature vector of each sub-area into a pre-trained fully connected neural network, predict the impact of the earthquake, and obtain a distribution map of the earthquake impact range.

[0045] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an earthquake impact range assessment method as described in any one of the above items is implemented.

[0046] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the earthquake impact range assessment method as described above.

[0047] From the above, it can be seen that the earthquake impact range assessment method and related equipment provided by the present application are based on the social media of the Internet, and comprehensively consider the text information and emoticon information contained in the dynamics published by social media to classify the emotions of the dynamics. Based on the emotional classification, the number of dynamics, the number of users, the proportion of negative emotions and other factors are taken into account to design a rapid assessment model for the earthquake impact range, so that the prediction of the earthquake impact range is fast and accurate, thereby breaking through the limitations in space and time, and improving the efficiency of the assessment of the earthquake impact range. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 A flowchart of a method for assessing an earthquake impact range according to an embodiment of the present application;

[0050] Figure 2 This is a schematic diagram of a module of an earthquake impact range assessment device according to an embodiment of the present application;

[0051] Figure 3 This is a structural diagram of a social media data processing model according to an embodiment of the present application;

[0052] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0054] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0055] As described in the background technology section, the relevant earthquake impact range assessment methods are still difficult to meet the needs of actual disaster assessment.

[0056] In the process of implementing this application, the applicant found that the main problem with the relevant earthquake impact range assessment method is that after an earthquake occurs, there is often a black box time of several hours, making it difficult to reach the earthquake-stricken area. Therefore, when trying to obtain disaster data, it leads to limitations in space and time, making it difficult to accurately and quickly judge the earthquake impact range in the earthquake area in the first place, which is very unfavorable for rescue in disasters.

[0057] The applicant also found in the research that with the development of social media, users post what they want to express on social platforms, and the data of users' online feedback can be collected very conveniently. The information contained in these data is the most intuitive feedback of the public on the post-earthquake status and rescue situation. How to reasonably use this information can effectively supplement the deficiencies of existing methods, quickly grasp the disaster situation, and improve rescue efficiency.

[0058] It can be understood that the method can be executed by any device, equipment, platform, or device cluster having computing and processing capabilities.

[0059] The technical method of the present application is described in detail below through specific embodiments.

[0060] refer to Figure 1 A method for evaluating an earthquake impact range according to an embodiment of the present application comprises the following steps:

[0061] Step S101: extract multiple dynamics from social media, pre-process each of the dynamics, obtain the word vector and geographic location information of each of the dynamics, and determine the extraction time of the multiple dynamics.

[0062] In the embodiments of the present application, it is first necessary to obtain data from social media and pre-process the data.

[0063] In this embodiment, Weibo is taken as a specific example of social media, and Weibo data is periodically acquired. In each acquisition, a plurality of Weibo dynamics are obtained. The acquired Weibo dynamics are also referred to as Weibo data in this embodiment, and can be simply referred to as dynamics or data. Each Weibo data may include: publishing location, publishing content, publishing time and location link, etc.

[0064] The publishing location will be used as the geographic location information of the microblog in the following data processing; the publishing content specifically refers to the text sentences and emoticons published in the microblog.

[0065] Furthermore, each time the microblog data is extracted, the extraction time of this operation is determined. In this embodiment, since the data extraction process is fast and periodic, the extraction time can be equivalent to the publishing time of the social media dynamics, and the publishing time of multiple dynamics is very close.

[0066] In this embodiment, based on the obtained microblog data, the data is preprocessed.

[0067] Specifically, the traditional Chinese characters in the published content are first converted into simplified Chinese characters to avoid the negative impact of difficulty in identification on the following text data processing.

[0068] Furthermore, when identifying the published content, since words are generally considered to be the smallest units for expressing personal emotions, and words are separated by spaces in written English, but words are closely connected in Chinese, in this embodiment, for each sentence in the published content, Jieba (Jieba) Chinese word segmentation can be used to perform word segmentation operations on the text sentences in the published content, and a large number of words without actual meanings such as modal particles, conjunctions and adverbs contained in the published content are removed to obtain the result after word segmentation.

[0069] Take Table 1 as an example:

[0070] Table 1 Comparison of word segmentation results

[0071]

[0072]

[0073] Furthermore, all the words in the word segmentation results are grouped into a sequence as a text sequence, which is expressed as: {W1, W2, ..., W n}.

[0074] Furthermore, all the emojis in the word segmentation results are grouped into a sequence as a symbol sequence, which is expressed as: {E1, E2, ..., E m}.

[0075] In the word vector representation layer 301, the text sequence is input into the BERT (language representation) model to obtain the text semantic word vector; and the symbol sequence is input into the same BERT model to obtain the symbol semantic word vector.

[0076] Step S102: for each of the dynamics, extract the text semantic matrix and the symbol semantic matrix from the word vector, respectively adopt the attention mechanism to calculate them, and merge the calculation results to obtain the emotional feature vector of the dynamic.

[0077] In the embodiment of the present application, based on the two types of word vectors obtained above, the following is established: Figure 3 The social media data processing model shown.

[0078] Furthermore, if Figure 3 As shown, all text semantic word vectors are combined into a text semantic matrix, and all symbol semantic word vectors are combined into a symbol semantic matrix. Specifically, as shown in the following formula:

[0079]

[0080]

[0081] in, is the row vector connector, R w Represents the text semantic matrix, R e Represents the symbolic semantic matrix, R w and R e The dimension of is the number of words and emoticons in this dynamic, w represents the text semantic word vector, and e represents the symbol semantic word vector.

[0082] Furthermore, if Figure 3 As shown, the obtained text semantic matrix and symbol semantic matrix are input into the semantic acquisition layer 302 respectively.

[0083] Specifically, in the semantic acquisition layer 302, the text semantic matrix is ​​input into the gated recurrent unit for encoding. In order to effectively solve the long-term dependency problem in the recurrent neural network and to shorten the convergence time and facilitate calculation, in this embodiment, BiGRU (bidirectional gated recurrent unit) is used to encode the text semantic matrix.

[0084] Among them, BiGRU is composed of multiple forward GRU (gated recurrent unit) networks and reverse GRU networks. The calculation method is shown in the following formula:

[0085]

[0086]

[0087] Among them, wt represents the word vector input from the text semantic matrix to BiGRU at time t, T represents the relevant time parameter preset in BiGRU, and h t The vector representation is the word vector w t The relevant data before and after the nearby text centered on is represented by → and ←, respectively, which represent the forward output and reverse output of each GRU network.

[0088] Furthermore, the output after BiGRU encoding is used as text features, and the attention mechanism is used to calculate the text features.

[0089] Specifically, Figure 3 As shown in the semantic synthesis layer 303 in FIG. 1 , a first activation function is established as follows:

[0090] g i1 =tanh(r i1 h i +c i1 )

[0091] Among them, h i Represents the text features output by BiGRU, r i1 represents the preset first adjustable weight, c i1 represents the preset first bias coefficient, and the obtained g i1 As the text feature h i The implicit state.

[0092] Furthermore, based on the calculation of the first activation function, the text feature h is calculated according to the following formula: i The text feature weights are calculated as follows:

[0093]

[0094] Among them, a i represents the text feature weight, g w1 is the first weight coefficient.

[0095] Furthermore, the text feature vector can be calculated using the following formula:

[0096]

[0097] Among them, V1 represents the text feature vector, and L is the number of all word vectors in the sentence.

[0098] In this embodiment, if Figure 3 As shown, in the semantic acquisition layer 302, the symbolic semantic matrix obtained above is input into a convolutional neural network for encoding, wherein the convolutional neural network includes: a convolutional layer and a pooling layer.

[0099] Furthermore, the output of the convolutional neural network is used as the symbolic features of the emoticons, and the attention mechanism is used to calculate the symbolic features.

[0100] Specifically, Figure 3 As shown in the semantic synthesis layer 303 in , a second activation function is established as follows:

[0101] g i2 =tanh(r i2 l i +c i2 )

[0102] Among them, l i Represents the symbolic features of the convolutional neural network output, r i2 represents the preset second adjustable weight, c i2 represents the preset second bias coefficient, and the obtained g i2 As a symbolic feature l i The implicit state.

[0103] Furthermore, based on the calculation of the second activation function, the symbol feature l is calculated according to the following formula: i The symbolic feature weights are calculated as:

[0104]

[0105] Among them, b i represents the symbolic feature weight, g w2 is the second weight coefficient.

[0106] Furthermore, the symbolic eigenvector can be calculated by taking the following formula:

[0107]

[0108] Among them, V2 represents the symbol feature vector, and L is the number of all word vectors in the sentence.

[0109] Furthermore, if Figure 3 As shown, the text feature vector and the symbol feature vector obtained above are fused, that is, feature combination. Specifically, the text feature vector and the symbol feature vector are semantically merged by row connection to obtain the dynamic emotional feature vector.

[0110] Step S103: classify all the emotion feature vectors and input them into a pre-trained classifier to obtain different emotion categories to which the dynamics belong, wherein the emotion categories include: negative emotions.

[0111] In the embodiments of the present application, Figure 3As shown, the emotion feature vector obtained above is input into the pre-trained classifier in the output layer 304 to classify the emotion feature vector in the dynamic state and obtain the classification result of the emotion category.

[0112] Specifically, different categories are first preset for the emotion feature vector. In the present embodiment, the preset categories may include: positive emotion, sad emotion, anxious emotion, fear emotion, angry emotion and no emotion, among which sad emotion, anxious emotion and fear emotion may be defined as the negative emotions.

[0113] Among them, the pre-training process of the classifier includes:

[0114] Historical data is extracted from social media, and the same process as step S101 and step S102 is performed on the historical data to obtain dynamics and emotional feature vectors published in the historical data, wherein the emotional feature vector has a preset emotion category label.

[0115] Using the emotional feature vector with emotional category labels obtained above, combined with the preset classifier weight coefficient and classifier bias coefficient, a classifier as shown below is constructed:

[0116] p = Softmax(tanh(r s V+b s ))

[0117] Among them, V represents the emotional feature vector obtained above, r s represents the classifier weight coefficient, b s represents the classifier bias coefficient, and p is the conditional probability distribution of the classification category.

[0118] Furthermore, the conditional probability distribution obtained based on the above classifier is Figure 3 The model shown is designed with the following loss function:

[0119]

[0120] Among them, J represents the number of categories, D represents the size of the data set, and y d represents the sentiment label of the dth dynamic, p d Represents the predicted probability distribution of d microblogs.

[0121] In this step, based on the above loss function, the social media data processing model is trained with the goal of minimizing the loss function. When the above loss function is minimized, the training of the social media data processing model is completed, and the classification of each dynamic in the emotion category is obtained.

[0122] Step S104: divide the earthquake area into multiple sub-areas according to the geographic location information, and for each sub-area, establish a seismic feature vector for the sub-area by using the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions and the pre-acquired population number.

[0123] In an embodiment of the present application, based on the above classification, the microblog dynamics in the earthquake area are further processed to obtain a seismic feature vector for training a rapid assessment model of the earthquake impact range.

[0124] Specifically, first, after determining the earthquake area, the earthquake area is divided into multiple sub-areas according to the set geographic coordinate system. In this embodiment, the earthquake area is divided into multiple grids, each grid is divided into a size of 10km×10km, and each grid is used as a sub-area.

[0125] Furthermore, based on the publishing location of the microblog dynamics obtained in step S101, it is used as geographical location information to determine the microblog dynamics published in the earthquake area and the sub-area to which each dynamic belongs.

[0126] In this embodiment, a Java program can be written to call the API (Application Programming Interface) in the map software, and the text address described in the published location can be mapped to geographic coordinates in the geographic coordinate system through forward geocoding.

[0127] Furthermore, for each of all dynamics, its geographical coordinates are obtained, and the sub-region to which the dynamic belongs is determined according to the geographical coordinates of the dynamic.

[0128] In this embodiment, for each determined sub-region, the following operations are performed to obtain the seismic feature vector of the sub-region:

[0129] Take the i-th sub-region G i For example, first, the earthquake feature vector of each sub-region is defined as the first unique hot vector associated with time Second unique vector associated with the number of microblog updates The third one-hot vector associated with the population size and the fourth unique vector associated with the dynamic sentiment category where each one-hot vector is encoded in binary format.

[0130] The process of determining the first unique hot vector includes:

[0131] The 24 hours of the day are divided into 6-hour segments and divided into the first sub-intervals of the four dimensions as shown below:

[0132] D k ∈{[0:00AM,6:00AM),[6:00AM,12:00PM),[12:00PM,6:00PM),[6:00PM,24:00PM)}

[0133] Furthermore, in this embodiment, for the sake of timeliness, it is assumed that only data within 10 minutes of the earthquake occurrence is used to evaluate the earthquake impact range. Therefore, the obtained earthquake occurrence time is subtracted from the extraction time, and the obtained time difference is divided into a second sub-interval of 5 dimensions with 2 minutes as a segment: T k ∈{[0min,2min),[2min,4min),[4min,6min),[6min,8min),[8min,10min)}

[0134] Furthermore, the first sub-interval and the second sub-interval are merged to obtain a first discrete interval with 20 dimensions.

[0135] Based on the first discrete interval set above, the first unique hot vector can be expressed as: in, is the first indicator function, describing the time when the earthquake occurred. If the dynamic extraction time in the sub-region is time t k , when the moment t k Belongs to D k , and the difference between it and the earthquake time belongs to T k When , the first indicator function The encoding value of can be 1, and then,

[0136] In this embodiment, the process of determining the second one-hot vector includes:

[0137] The number of microblog dynamics in the sub-area is divided into a second discrete interval of 21 dimensions, wherein the 1st to 20th dimensions start with 0 and are all queried with the number of 50 dynamics, and in the 21st dimension, the number of dynamics greater than 50 is queried.

[0138] Furthermore, based on the second discrete interval set above, the second one-hot vector can be expressed as: in, is the second indicator function, describing the dynamic quantity in the kth dimension, and its encoding value is as follows:

[0139] Calculation formula: When the calculation result of this formula is less than 21, the integer part is taken as the dimension with a value of 1. For example, when the result is 13.7, the 13th dimension in the second discrete interval is taken as 1, and the rest are 0. When the result of this formula is greater than 21, it indicates that the number of Weibo dynamics is greater than 1,000. The 21st dimension is taken as 1, and the rest are 0.

[0140] Among them, (wb) represents the dynamic quantity.

[0141] In this embodiment, the process of determining the third one-hot vector includes:

[0142] The population of the sub-region can be obtained, specifically, from official data or by taking appropriate survey methods. The population of the sub-region is divided into a third discrete interval of 51 dimensions, wherein the first to the 50th dimensions are all queried based on a population of 2000, and the 51st dimension is queried based on a population greater than 2000.

[0143] Furthermore, based on the third discrete interval set above, the third one-hot vector can be expressed as: in, is the third indicator function, describing the population in the kth dimension, and its encoding values ​​are as follows:

[0144] Calculation formula: When the result of the formula is less than 51, the integer part is taken as the dimension with a value of 1. For example, when the result is 34.7, the 34th dimension in the third discrete interval is taken as 1, and the rest are 0. When the result of the formula is greater than 51, it indicates that the population of the sub-area is greater than 10,000, the 51st dimension is taken as 1, and the rest are 0.

[0145] Among them, (pop) represents the population size.

[0146] In this embodiment, the process of determining the fourth one-hot vector includes:

[0147] According to the emotion classification results of all dynamics in the sub-region obtained above, the emotion proportion of dynamics belonging to the negative emotion category in all dynamics is calculated using the number of dynamics in the negative emotion category in all dynamics.

[0148] Furthermore, the range of the emotion ratio is set to be between 0 and 1, and the range is divided into a fourth discrete interval of 10 dimensions, wherein each dimension is queried with a value of 0.1 as 1 segment.

[0149] Further, based on the fourth discrete interval set above, the fourth one-hot vector can be expressed as: in, is the fourth indicator function, describing the value of the emotion ratio in the kth dimension, The encoding values ​​are as follows:

[0150] Calculation formula: The integer part of the calculation result is used as the dimension with a value of 1. For example, when the result is 7.76, the value of the 7th dimension in the fourth discrete interval is 1, and the rest are 0.

[0151] Where (ra) represents the proportion of negative emotion category dynamics in all dynamics.

[0152] Furthermore, based on the first one-hot vector, the second one-hot vector, the third one-hot vector and the fourth one-hot vector calculated above, they are combined into a seismic feature vector of the sub-region.

[0153] Step S105: input the earthquake characteristic vector into a pre-trained fully connected neural network to predict the earthquake impact degree and obtain a distribution map of the earthquake impact range.

[0154] In this embodiment, the earthquake impact degree can be used to describe the intensity of the earthquake. Specifically, it can be converted into different levels of earthquake intensity. It should be noted that in this embodiment, the earthquake impact degree and the earthquake intensity are equivalent in operation, which is only exemplary and can also be converted into other indicators describing the impact of the earthquake according to specific circumstances and needs.

[0155] In an embodiment of the present application, a pre-trained fully connected neural network containing two hidden layers is introduced for each sub-region, and the earthquake characteristic vector is input into the pre-trained fully connected neural network to obtain the predicted earthquake impact degree.

[0156] Among them, the pre-training process of the fully connected neural network includes:

[0157] Based on the historical data obtained in step S103, the operation of step S104 is performed on the historical data to obtain the seismic feature vector of each sub-region.

[0158] Furthermore, the earthquake-feeling feature vector is input into the fully connected neural network to obtain the predicted earthquake impact degree.

[0159] Furthermore, the fully connected neural network is trained based on the obtained official earthquake intensity.

[0160] Specifically, given the official earthquake intensity after N earthquakes in different regions, for each earthquake, the earthquake region is divided into M sub-regions, the official earthquake intensity is matched with the earthquake impact degree one by one, and the two are used to establish the cost function shown below:

[0161]

[0162] in, Indicates the predicted earthquake impact, I i Indicates the official earthquake intensity.

[0163] Furthermore, with minimization as the goal, the cost function is converged. When the predetermined convergence limit is reached, the cost function is minimized, the training of the fully connected neural network is completed, and when an earthquake occurs, a prediction of the degree of earthquake impact in the sub-region is obtained.

[0164] Furthermore, if Figure 3 As shown, the word vector representation layer 301, semantic acquisition layer 302, semantic synthesis layer 303 and output layer 304 of all sub-regions are combined to form a rapid assessment model for the earthquake impact range, and the model is used to predict the earthquake impact range of a new earthquake.

[0165] It can be understood that, in this embodiment, the earthquake impact range may include: the earthquake impact degree and various areas of the earthquake, that is, sub-areas.

[0166] In an embodiment of the present application, visualization technology can also be used to compare and display the earthquake impact range distribution map predicted by the earthquake impact range rapid assessment model and the official felt range distribution map, and based on different sub-region divisions, different fine-grained visualization displays of earthquake impact levels can be obtained. In addition, based on different extraction times and different emotional classifications of Weibo dynamics, the distribution display of emotional information in different time periods can also be obtained.

[0167] It can be seen that the earthquake impact range assessment method of the embodiment of the present application is based on the social media of the Internet, and comprehensively considers the text information and emoticon information contained in the dynamics posted by social media to classify the emotions of the dynamics. Based on the emotional classification, it takes into account factors such as the number of dynamics, the number of users, and the proportion of negative emotions to design a rapid assessment model for the earthquake impact range, so that the prediction of the earthquake impact range is fast and accurate, thereby breaking through the limitations in space and time, and improving the efficiency of the assessment of the earthquake impact range.

[0168] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0169] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0170] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application further provides an earthquake impact range assessment device.

[0171] refer to Figure 2 The earthquake impact range assessment device includes: a preprocessing module 201, a semantic synthesis module 202, a classification module 203, a seismic feature determination module 204 and an assessment module 205.

[0172] The preprocessing module 201 is configured to: extract multiple dynamics from social media, and preprocess each of the dynamics to obtain a word vector and geographic location information and a user identifier of each of the dynamics, and determine the extraction time of the multiple dynamics;

[0173] The semantic synthesis module 202 is configured to: for each of the dynamics, extract a text semantic matrix and a symbol semantic matrix from the word vector, respectively adopt an attention mechanism to perform calculations, and merge the calculation results to obtain a sentiment feature vector of the dynamic;

[0174] The classification module 203 is configured to: classify all the emotion feature vectors and input them into a pre-trained classifier to obtain different emotion categories to which the dynamics belong, wherein the emotion categories include: negative emotions;

[0175] The earthquake feature determination module 204 is configured to: divide the earthquake area into a plurality of sub-areas, and for each of the sub-areas, establish an earthquake feature vector for the sub-area by using the extraction time of all the dynamics, the dynamic number of the dynamics, the number of the user identifiers, and the number of the dynamics belonging to negative emotions;

[0176] The evaluation module 205 is configured to: input the earthquake feature vector into a pre-trained fully connected neural network to predict the earthquake impact degree and obtain a distribution map of the earthquake impact range.

[0177] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0178] The device of the above embodiment is used to implement the corresponding earthquake impact range assessment method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0179] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the earthquake impact range assessment method as described in any of the above embodiments is implemented.

[0180] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0181] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0182] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0183] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0184] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0185] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0186] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0187] The device of the above embodiment is used to implement the corresponding earthquake impact range assessment method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0188] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the earthquake impact range assessment method described in any of the above embodiments.

[0189] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0190] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the earthquake impact range assessment method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0191] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0192] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0193] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0194] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A method for assessing earthquake impact range, comprising: Extracting multiple dynamics from social media, and preprocessing each of the dynamics to obtain word vectors and geographic location information of each of the dynamics, and determining the extraction time of the multiple dynamics; For each of the dynamics, extracting a text semantic matrix and a symbol semantic matrix from the word vector, respectively adopting an attention mechanism to perform calculations, and merging the calculation results to obtain a sentiment feature vector for the dynamic; Classify all the emotional feature vectors and input them into a pre-trained classifier to obtain different emotional categories to which the dynamics belong, wherein the emotional categories include: negative emotions; According to the geographic location information, the earthquake region is divided into a plurality of sub-regions. For each of the sub-regions, a seismic feature vector for the sub-region is established by using the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions, and the pre-acquired population number. The earthquake region is divided into a plurality of sub-regions according to the geographic location information, including: For each of the plurality of dynamics extracted, in response to determining that the dynamic has geographic location information, obtaining the geographic location information, and mapping the geographic location information into geographic coordinates by forward geocoding; Determine the sub-region to which each of the dynamics belongs according to the geographic coordinates; The method of using the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions and the pre-acquired population number to establish a vibration feature vector for the sub-region includes: For each of the sub-regions, perform the following operations: Divide the whole day into a multi-dimensional first sub-interval, and divide the time difference between the acquired earthquake occurrence time and the extraction time into a multi-dimensional second sub-interval, merge the first sub-interval and the second sub-interval to obtain a multi-dimensional first discrete interval, and determine the first unique heat vector of the sub-region with respect to the extraction time according to the dimension of the first discrete interval to which the earthquake occurrence time belongs; Dividing the number of dynamics into a second discrete interval of multiple dimensions, determining the number of dynamics extracted at the extraction time in the sub-area, and determining a second one-hot vector of the sub-area with respect to the number of dynamics according to the dimension of the second discrete interval to which the number of dynamics belongs; Divide the pre-acquired population of the sub-region into a third discrete interval of multiple dimensions, and determine a third unique hot vector of the sub-region with respect to the population according to the dimension of the third discrete interval to which the population belongs; According to the classification of the emotion category, in the sub-region, among all the dynamics extracted at the extraction time, determining the emotion proportion of the dynamics belonging to the negative emotion, dividing the emotion proportion into a fourth discrete interval of multiple dimensions, and determining a fourth unique hot vector of the sub-region with respect to the emotion proportion according to the dimension of the fourth discrete interval to which the emotion proportion belongs; taking the first one-hot vector, the second one-hot vector, the third one-hot vector and the fourth one-hot vector together as the vibration feature vector; The earthquake-feeling feature vector of each sub-region is input into a pre-trained fully connected neural network to predict the earthquake impact degree and obtain a distribution map of the earthquake impact range.

2. The method according to claim 1, characterized in that The obtaining of each dynamic word vector and geographic location information includes: For each of the dynamics, the sentences in the dynamics are segmented using Jieba Chinese word segmentation to obtain a text sequence and a symbol sequence, and the text sequence and the symbol sequence are input into a language representation model to obtain the word vector.

3. The method according to claim 1, characterized in that The above-mentioned attention mechanisms are used for calculation respectively, and the calculation results are merged, including: For each of the dynamics, input the text semantic matrix into a gated recurrent unit for encoding to obtain text features; Inputting the symbol semantic matrix into a convolutional neural network for encoding to obtain symbol features; Constructing a first activation function for the text feature using a preset first adjustable weight and a first bias coefficient; Constructing a second activation function for the symbol feature using a preset second adjustable weight and a second bias coefficient; Calculating a target text feature vector using the first activation function, and calculating a target symbol feature vector using the second activation function; The target text feature vector and the target symbol feature vector are fused in a row-connected manner to obtain the dynamic emotion feature vector of the item.

4. The method according to claim 1, characterized in that: The pre-training process of the classifier includes: Extracting historical data from the social media to obtain the emotional feature vectors belonging to different emotional categories in each dynamic, and inputting the emotional feature vectors into the classifier to obtain a conditional probability distribution for classifying the dynamic; A loss function is established using the conditional probability distribution when the dynamic message belongs to different emotion categories, and the classifier is trained with the goal of minimizing the loss function; The emotion categories include: positive emotion, sad emotion, anxious emotion, fear emotion, angry emotion and no emotion, and the sad emotion, the anxious emotion and the fear emotion are defined as the negative emotions.

5. The method according to claim 4, characterized in that The training process of the fully connected neural network includes: Using the historical data extracted from the social media, obtaining the earthquake feature vector of each sub-region; Inputting the earthquake-felt feature vector of each sub-region into the fully connected neural network, predicting the impact degree of the earthquake and obtaining a prediction result, and combining the prediction results of all the sub-regions to obtain a distribution map of the earthquake impact range; Obtaining the official earthquake intensity, making a one-to-one correspondence between the official earthquake intensity and the earthquake impact degree, and using the two to construct a cost function in the fully connected neural network, and training the fully connected neural network to predict the earthquake impact degree; In response to the cost function minimization converging to a preset convergence limit, the training is completed to obtain the pre-trained fully connected neural network.

6. An earthquake impact range assessment device, comprising: A preprocessing module is configured to: extract multiple dynamics from social media, preprocess each of the dynamics, obtain a word vector and geographic location information of each of the dynamics, and determine the extraction time of the multiple dynamics; The semantic synthesis module is configured to: for each of the dynamics, extract a text semantic matrix and a symbol semantic matrix from the word vector, respectively adopt an attention mechanism to calculate, and merge the calculation results to obtain a sentiment feature vector of the dynamic; The classification module is configured to: classify all the emotion feature vectors and input them into a pre-trained classifier to obtain different emotion categories to which the dynamics belong, wherein the emotion categories include: negative emotions; The earthquake feature determination module is configured to: divide the earthquake area into multiple sub-areas according to the geographic location information, and for each sub-area, use the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions and the pre-acquired population number to establish a earthquake feature vector for the sub-area, wherein the earthquake area is divided into multiple sub-areas according to the geographic location information, including: For each of the plurality of dynamics extracted, in response to determining that the dynamic has geographic location information, obtaining the geographic location information, and mapping the geographic location information into geographic coordinates by forward geocoding; Determine the sub-region to which each of the dynamics belongs according to the geographic coordinates; The method of using the extraction time of all the dynamics, the number of the dynamics, the number of the dynamics belonging to the negative emotions and the pre-acquired population number to establish a vibration feature vector for the sub-region includes: For each of the sub-regions, perform the following operations: Divide the whole day into a multi-dimensional first sub-interval, and divide the time difference between the acquired earthquake occurrence time and the extraction time into a multi-dimensional second sub-interval, merge the first sub-interval and the second sub-interval to obtain a multi-dimensional first discrete interval, and determine the first unique heat vector of the sub-region with respect to the extraction time according to the dimension of the first discrete interval to which the earthquake occurrence time belongs; Dividing the number of dynamics into a second discrete interval of multiple dimensions, determining the number of dynamics extracted at the extraction time in the sub-area, and determining a second one-hot vector of the sub-area with respect to the number of dynamics according to the dimension of the second discrete interval to which the number of dynamics belongs; Divide the pre-acquired population of the sub-region into a third discrete interval of multiple dimensions, and determine a third unique hot vector of the sub-region with respect to the population according to the dimension of the third discrete interval to which the population belongs; According to the classification of the emotion category, in the sub-region, among all the dynamics extracted at the extraction time, determining the emotion proportion of the dynamics belonging to the negative emotion, dividing the emotion proportion into a fourth discrete interval of multiple dimensions, and determining a fourth unique hot vector of the sub-region with respect to the emotion proportion according to the dimension of the fourth discrete interval to which the emotion proportion belongs; taking the first one-hot vector, the second one-hot vector, the third one-hot vector and the fourth one-hot vector together as the vibration feature vector; The evaluation module is configured to: input the earthquake feature vector of each sub-area into a pre-trained fully connected neural network, predict the impact of the earthquake, and obtain a distribution map of the earthquake impact range.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 5.