Disaster prediction method and system based on text recognition
Through the disaster prediction method based on text recognition, using text feature extraction and prediction models combined with network source confidence, the problem of poor disaster risk prediction effect in the existing technology is solved, and more accurate disaster risk identification and network information security identification are achieved.
Patent Information
- Application Number
- CN202410347747.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-03-26
AI Technical Summary
When using online text for disaster risk prediction, the existing technology fails to fully utilize the potential of the data volume and prediction algorithm, resulting in poor and unsatisfactory prediction results.
Adopt a disaster prediction method based on text recognition, obtain disaster texts from network sources through keyword search and crawler algorithms, use text feature extraction algorithms and prediction models, and combine the confidence of network sources to predict the probability of disaster occurrence, and use disaster conflict rules and Modify and filter the occurrence patterns to obtain more accurate prediction results.
It achieves more intelligent and accurate identification of disaster risks, improves the efficiency of disaster risks and the security identification capabilities of network information.
Smart Images

Figure CN118312873B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a disaster prediction method and system based on text recognition. Background Art
[0002] With the development of data processing technology and the surge in data from major network information sources, more and more risk prediction agencies have begun to deploy risk assessment technologies in terms of network data sources. Among them, using network text for risk prediction is an important direction. However, when dealing with the risk prediction needs for disasters, the existing technology does not fully consider the potential of text in the network source data volume and the advantages of prediction algorithms. Therefore, the prediction effect is poor and unsatisfactory. It can be seen that the existing technology has defects that need to be solved urgently. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a disaster prediction method and system based on text recognition, which can more intelligently and accurately identify disaster risks, improve the efficiency of disaster risks, and also improve the security identification capability of network information.
[0004] In order to solve the above technical problems, the first aspect of the present invention discloses a disaster prediction method based on text recognition, the method comprising:
[0005] Obtain disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithms;
[0006] Based on a text feature extraction algorithm, extracting text features of each disaster text to obtain a plurality of disaster text features;
[0007] Based on the prediction model, according to the multiple disaster text features and the confidence of each of the network sources, the probability of occurrence of different disasters is predicted;
[0008] Based on the preset disaster conflict rules and disaster occurrence laws, the occurrence probabilities of the different disasters are corrected and screened to obtain disaster prediction results.
[0009] As an optional implementation, in the first aspect of the present invention, the text feature extraction algorithm is based on extracting the text features of each disaster text to obtain a plurality of disaster text features, including:
[0010] For each disaster text, input the disaster text into a pre-trained BERT model for encoding to obtain a text vector corresponding to the disaster text;
[0011] Inputting the text vector into a global pointer network for header entity decoding to obtain header entity information corresponding to the text vector;
[0012] Calculating an average encoding vector of the header entity information, and superimposing the average encoding vector and the text vector to obtain a superimposed vector;
[0013] Inputting the superposition vector into the global pointer network to perform tail entity recognition to obtain tail entity information;
[0014] The disaster text feature corresponding to the disaster text is determined according to the head entity information and the tail entity information.
[0015] As an optional implementation, in the first aspect of the present invention, the obtaining of disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithm includes:
[0016] For each network source, obtain the access parameters and network source type corresponding to the network source;
[0017] Determine a keyword set corresponding to the network source type of the network source according to a preset correspondence relationship between the network source type and the keyword;
[0018] According to the access parameters, the network source is accessed and data is acquired based on a crawler algorithm to obtain network source data;
[0019] According to the keyword set and a preset text recognition algorithm, the network source data is identified and matched to obtain the disaster text related to the storm surge disaster corresponding to the network source.
[0020] As an optional implementation, in the first aspect of the present invention, the network source material includes at least one of text resources, picture resources, audio-visual resources or flash media resources.
[0021] As an optional implementation, in the first aspect of the present invention, the prediction model is based on the plurality of disaster text features and the confidence of each of the network sources to predict the occurrence probability of different disasters, including:
[0022] For each of the disaster text features, the disaster text feature is input into a trained disaster type classifier to obtain a relevant disaster type corresponding to the disaster text feature;
[0023] Determining a target prediction model corresponding to the relevant disaster type from a plurality of preset prediction models;
[0024] Inputting the disaster text feature into the target prediction model to obtain the disaster occurrence probability corresponding to the disaster text feature;
[0025] The occurrence probabilities of different disasters are predicted based on the relevant disaster types and the disaster occurrence probabilities corresponding to all the disaster text features corresponding to each of the network sources, as well as the confidence level of each of the network sources.
[0026] As an optional implementation, in the first aspect of the present invention, the prediction of the occurrence probability of different disasters according to the relevant disaster types and the disaster occurrence probability corresponding to all the disaster text features corresponding to each of the network sources, and the confidence of each of the network sources, includes:
[0027] For each of the network sources, the relevant disaster types corresponding to all the disaster text features of the network source are counted to obtain multiple disaster types corresponding to the network source;
[0028] Sort each of the disaster types from large to small according to the first probability average of all the corresponding disaster occurrence probabilities to obtain a first type sequence;
[0029] Delete all disaster types in the last digit of the first type sequence and whose first probability average value is less than a first parameter threshold;
[0030] Determining the remaining disaster types in the type sequence as a plurality of filtered disaster types corresponding to the network source;
[0031] For each of the disaster types after screening, a weighted sum average of the second probability averages of all the disaster occurrence probabilities of the disaster type after screening in each of the network sources is calculated; wherein the weight corresponding to each of the second probability averages is proportional to the confidence of the network source;
[0032] Sorting all the filtered disaster types from large to small according to the weighted sum average value to obtain a second type sequence;
[0033] Screening out all disaster types in the first second number of digits in the second type sequence and for which the second probability average value is greater than a second parameter threshold, to obtain a plurality of target disaster types;
[0034] The second probability average value corresponding to each target disaster type is determined as the occurrence probability to obtain the occurrence probability of different disasters.
[0035] As an optional implementation, in the first aspect of the present invention, the occurrence probabilities of the different disasters are corrected and screened based on the preset disaster contradiction rules and disaster occurrence laws to obtain disaster prediction results, including:
[0036] For any of the target disaster types, obtain the average value of the text sending time in the network source corresponding to all the disaster text features corresponding to the target disaster type, and obtain the time parameter corresponding to the target disaster type;
[0037] For any two target disaster types, according to the preset disaster contradiction rules and disaster occurrence laws and the time parameters, the contradiction parameters and law compliance parameters between the two target disaster types are calculated;
[0038] For any target disaster type, calculate the average value of all the contradiction parameters corresponding to the target disaster type to obtain the contradiction representation parameter corresponding to the target disaster type;
[0039] Calculate the average value of all the law-compliant parameters corresponding to the target disaster type to obtain the law characterization parameter corresponding to the target disaster type;
[0040] Calculate the weighted average value of the contradiction characterization parameter and the law characterization parameter to obtain the correction parameter corresponding to the target disaster type;
[0041] Calculate the product of the occurrence probability corresponding to the target disaster type and the correction weight to obtain the corrected probability corresponding to the target disaster type; the correction weight is proportional to the correction parameter;
[0042] All the target disaster types whose corrected probabilities are greater than a preset probability threshold are screened out to obtain disaster prediction results.
[0043] As an optional implementation, in the first aspect of the present invention, the calculation of the contradiction parameter and the law compliance parameter between the two target disaster types according to the preset disaster contradiction rule and the disaster occurrence law and the time parameter includes:
[0044] The two target disaster types are input into a trained disaster contradiction prediction model to obtain contradiction probabilities corresponding to the two target disaster types; the disaster contradiction prediction model is trained by a training data set including a plurality of training disaster types and corresponding contradiction annotations;
[0045] Calculating a time difference between the time parameters of the two target disaster types;
[0046] Calculate the product of the contradiction probability and the time weight to obtain the contradiction parameter between the two target disaster types; the time weight is inversely proportional to the size of the time difference;
[0047] Determine whether the time difference is less than a preset time difference threshold, and if not, determine that the regularity compliance parameter between the two target disaster types is 0;
[0048] If yes, arrange the two target disaster types from early to late according to the time parameter to obtain a third type sequence;
[0049] The similarity between the third type sequence and the preset disaster occurrence regularity sequence is calculated to obtain the regularity compliance parameter between the two target disaster types.
[0050] A second aspect of an embodiment of the present invention discloses a disaster prediction system based on text recognition, the system comprising:
[0051] A text acquisition module is used to obtain disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithms;
[0052] A feature extraction module, used for extracting text features of each disaster text based on a text feature extraction algorithm to obtain a plurality of disaster text features;
[0053] A probability prediction module, used to predict the occurrence probability of different disasters based on the prediction model, according to the multiple disaster text features and the confidence of each network source;
[0054] The result screening module is used to correct and screen the occurrence probabilities of the different disasters based on the preset disaster conflict rules and disaster occurrence laws to obtain disaster prediction results.
[0055] As an optional implementation, in the second aspect of the present invention, the feature extraction module extracts the text features of each disaster text based on a text feature extraction algorithm to obtain a plurality of disaster text features, including:
[0056] For each disaster text, input the disaster text into a pre-trained BERT model for encoding to obtain a text vector corresponding to the disaster text;
[0057] Inputting the text vector into a global pointer network for header entity decoding to obtain header entity information corresponding to the text vector;
[0058] Calculating an average encoding vector of the header entity information, and superimposing the average encoding vector and the text vector to obtain a superimposed vector;
[0059] Inputting the superposition vector into the global pointer network to perform tail entity recognition to obtain tail entity information;
[0060] The disaster text feature corresponding to the disaster text is determined according to the head entity information and the tail entity information.
[0061] As an optional implementation, in the second aspect of the present invention, the specific manner in which the text acquisition module acquires disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithm includes:
[0062] For each network source, obtain the access parameters and network source type corresponding to the network source;
[0063] Determine a keyword set corresponding to the network source type of the network source according to a preset correspondence relationship between the network source type and the keyword;
[0064] According to the access parameters, the network source is accessed and data is acquired based on a crawler algorithm to obtain network source data;
[0065] According to the keyword set and a preset text recognition algorithm, the network source data is identified and matched to obtain the disaster text related to the storm surge disaster corresponding to the network source.
[0066] As an optional implementation, in the second aspect of the present invention, the network source data includes at least one of text resources, picture resources, audio-visual resources or flash media resources.
[0067] As an optional implementation, in the second aspect of the present invention, the probability prediction module predicts the occurrence probability of different disasters based on the prediction model according to the multiple disaster text features and the confidence of each of the network sources, including:
[0068] For each of the disaster text features, the disaster text feature is input into a trained disaster type classifier to obtain a relevant disaster type corresponding to the disaster text feature;
[0069] Determining a target prediction model corresponding to the relevant disaster type from a plurality of preset prediction models;
[0070] Inputting the disaster text feature into the target prediction model to obtain the disaster occurrence probability corresponding to the disaster text feature;
[0071] The occurrence probabilities of different disasters are predicted based on the relevant disaster types and the disaster occurrence probabilities corresponding to all the disaster text features corresponding to each of the network sources, as well as the confidence level of each of the network sources.
[0072] As an optional implementation, in the second aspect of the present invention, the probability prediction module predicts the specific manner of obtaining the probability of occurrence of different disasters according to the relevant disaster types and the probability of occurrence of the disaster corresponding to all the disaster text features corresponding to each of the network sources, and the confidence of each of the network sources, including:
[0073] For each of the network sources, the relevant disaster types corresponding to all the disaster text features of the network source are counted to obtain multiple disaster types corresponding to the network source;
[0074] Sort each of the disaster types from large to small according to the first probability average of all the corresponding disaster occurrence probabilities to obtain a first type sequence;
[0075] Delete all disaster types in the last digit of the first type sequence and whose first probability average value is less than a first parameter threshold;
[0076] Determining the remaining disaster types in the type sequence as a plurality of filtered disaster types corresponding to the network source;
[0077] For each of the disaster types after screening, a weighted sum average of the second probability averages of all the disaster occurrence probabilities of the disaster type after screening in each of the network sources is calculated; wherein the weight corresponding to each of the second probability averages is proportional to the confidence of the network source;
[0078] Sort all the filtered disaster types from large to small according to the weighted sum average value to obtain a second type sequence;
[0079] Screening out all disaster types in the first second number of digits in the second type sequence and for which the second probability average value is greater than a second parameter threshold, to obtain a plurality of target disaster types;
[0080] The second probability average value corresponding to each of the target disaster types is determined as the occurrence probability to obtain the occurrence probability of different disasters.
[0081] As an optional implementation, in the second aspect of the present invention, the result screening module corrects and screens the occurrence probabilities of the different disasters based on the preset disaster contradiction rules and disaster occurrence laws, and obtains the specific manner of the disaster prediction results, including:
[0082] For any of the target disaster types, obtain the average value of the text sending time in the network source corresponding to all the disaster text features corresponding to the target disaster type, and obtain the time parameter corresponding to the target disaster type;
[0083] For any two target disaster types, according to the preset disaster contradiction rules and disaster occurrence laws and the time parameters, the contradiction parameters and law compliance parameters between the two target disaster types are calculated;
[0084] For any of the target disaster types, calculate the average value of all the contradiction parameters corresponding to the target disaster type to obtain the contradiction representation parameter corresponding to the target disaster type;
[0085] Calculate the average value of all the law-compliant parameters corresponding to the target disaster type to obtain the law characterization parameter corresponding to the target disaster type;
[0086] Calculate the weighted average value of the contradiction characterization parameter and the law characterization parameter to obtain the correction parameter corresponding to the target disaster type;
[0087] Calculate the product of the occurrence probability corresponding to the target disaster type and the correction weight to obtain the corrected probability corresponding to the target disaster type; the correction weight is proportional to the correction parameter;
[0088] All the target disaster types whose corrected probabilities are greater than a preset probability threshold are screened out to obtain disaster prediction results.
[0089] As an optional implementation, in the second aspect of the present invention, the result screening module calculates the specific manner of the contradiction parameters and the law compliance parameters between the two target disaster types according to the preset disaster contradiction rules and the disaster occurrence law and the time parameter, including:
[0090] The two target disaster types are input into a trained disaster contradiction prediction model to obtain contradiction probabilities corresponding to the two target disaster types; the disaster contradiction prediction model is trained by a training data set including a plurality of training disaster types and corresponding contradiction annotations;
[0091] Calculating a time difference between the time parameters of the two target disaster types;
[0092] Calculate the product of the contradiction probability and the time weight to obtain the contradiction parameter between the two target disaster types; the time weight is inversely proportional to the size of the time difference;
[0093] Determine whether the time difference is less than a preset time difference threshold, and if not, determine that the regularity compliance parameter between the two target disaster types is 0;
[0094] If yes, arrange the two target disaster types from early to late according to the time parameter to obtain a third type sequence;
[0095] The similarity between the third type sequence and the preset disaster occurrence regularity sequence is calculated to obtain the regularity compliance parameter between the two target disaster types.
[0096] The third aspect of the present invention discloses another disaster prediction system based on text recognition, the system comprising:
[0097] A memory storing executable program code;
[0098] a processor coupled to the memory;
[0099] The processor calls the executable program code stored in the memory to execute part or all of the steps in the disaster prediction method based on text recognition disclosed in the first aspect of the present invention.
[0100] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the disaster prediction method based on text recognition disclosed in the first aspect of the present invention.
[0101] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0102] The present invention can extract features from text based on a text feature extraction algorithm, and then predict disaster prediction results based on a prediction model and preset rules and regulations combined with the confidence of different network sources, thereby being able to more intelligently and accurately identify disaster risks, improve the efficiency of disaster risks, and also improve the security identification capabilities of network information. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0104] Figure 1 It is a flowchart of a disaster prediction method based on text recognition disclosed in an embodiment of the present invention.
[0105] Figure 2 It is a structural diagram of a disaster prediction system based on text recognition disclosed in an embodiment of the present invention.
[0106] Figure 3 It is a structural diagram of another disaster prediction system based on text recognition disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0107] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0108] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0109] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0110] The present invention discloses a disaster prediction method and system based on text recognition, which can extract features in text based on a text feature extraction algorithm, and then predict disaster prediction results based on a prediction model and preset rules and regulations combined with the confidence of different network sources, so as to more intelligently and accurately identify disaster risks, improve the efficiency of disaster risks, and also improve the security identification ability of network information. The following is a detailed description.
[0111] Embodiment 1
[0112] See also Figure 1 , Figure 1 is a flow chart of a disaster prediction method based on text recognition disclosed in an embodiment of the present invention. Figure 1 The disaster prediction method based on text recognition described above can be applied to a data processing system / data processing device / data processing server (wherein the server includes a local processing server or a cloud processing server). Figure 1 As shown, the disaster prediction method based on text recognition may include the following operations:
[0113] 101. Through keyword search and crawler algorithm, disaster texts related to storm surge disasters are obtained from multiple network sources.
[0114] 102. Based on a text feature extraction algorithm, the text features of each disaster text are extracted to obtain a plurality of disaster text features.
[0115] 103. Based on the prediction model, the probability of occurrence of different disasters is predicted according to multiple disaster text features and the confidence of each network source.
[0116] 104. Based on the preset disaster conflict rules and disaster occurrence laws, the probability of occurrence of different disasters is corrected and screened to obtain disaster prediction results.
[0117] It can be seen that the above-mentioned embodiments of the invention can extract features in the text based on the text feature extraction algorithm, and then predict the disaster prediction results based on the prediction model and preset rules and regulations combined with the confidence of different network sources, so as to more intelligently and accurately identify disaster risks, improve the efficiency of disaster risks, and also improve the security identification capabilities of network information.
[0118] As an optional embodiment, in the above steps, based on the text feature extraction algorithm, the text features of each disaster text are extracted to obtain multiple disaster text features, including:
[0119] For each disaster text, the disaster text is input into the pre-trained BERT model for encoding to obtain the text vector corresponding to the disaster text;
[0120] Input the text vector into the global pointer network for head entity decoding to obtain the head entity information corresponding to the text vector;
[0121] Calculate the average encoding vector of the header entity information, and superimpose the average encoding vector and the text vector to obtain the superimposed vector;
[0122] The superimposed vector is input into the global pointer network for tail entity recognition to obtain the tail entity information;
[0123] According to the head entity information and the tail entity information, the disaster text features corresponding to the disaster text are determined.
[0124] It can be seen that through the above optional embodiments, more accurate disaster text feature extraction can be performed based on the BERT model and the global pointer network, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0125] As an optional embodiment, in the above step, obtaining disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithm includes:
[0126] For each network source, obtain the access parameters and network source type corresponding to the network source;
[0127] Determine a keyword set corresponding to the network source type of the network source according to a preset correspondence relationship between the network source type and the keyword;
[0128] According to the access parameters, the network source is accessed and data is acquired based on the crawler algorithm to obtain the network source data;
[0129] According to the keyword set and the preset text recognition algorithm, the network source data is identified and matched to obtain the disaster text related to the storm surge disaster corresponding to the network source.
[0130] It can be seen that through the above-mentioned optional embodiments, it is possible to determine a keyword set based on the types corresponding to different network sources, and perform access and data acquisition according to access parameters, and further identify and match disaster texts, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0131] As an optional embodiment, in the above steps, the network source data includes at least one of text resources, picture resources, audio-visual resources or flash media resources.
[0132] It can be seen that through the above optional embodiments, the type of network source data is clarified, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capability of network information.
[0133] As an optional embodiment, in the above steps, based on the prediction model, according to multiple disaster text features and the confidence of each network source, the probability of occurrence of different disasters is predicted, including:
[0134] For each disaster text feature, the disaster text feature is input into a trained disaster type classifier to obtain the relevant disaster type corresponding to the disaster text feature;
[0135] Determine a target prediction model corresponding to a relevant disaster type from a plurality of preset prediction models;
[0136] Input the disaster text feature into the target prediction model to obtain the disaster occurrence probability corresponding to the disaster text feature;
[0137] According to the relevant disaster types and disaster occurrence probabilities corresponding to all disaster text features corresponding to each network source, as well as the confidence of each network source, the occurrence probabilities of different disasters are predicted.
[0138] It can be seen that through the above-mentioned optional embodiments, the relevant disaster types and disaster occurrence probabilities corresponding to the disaster text features can be determined based on the disaster type classifier and the corresponding prediction model of the type, so as to further accurately analyze the occurrence probabilities of different disasters, thereby assisting in achieving more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and also improving the security identification capabilities of network information.
[0139] As an optional embodiment, in the above steps, according to the relevant disaster types and disaster occurrence probabilities corresponding to all disaster text features corresponding to each network source, and the confidence of each network source, the occurrence probabilities of different disasters are predicted, including:
[0140] For each network source, the relevant disaster types corresponding to all disaster text features of the network source are counted to obtain multiple disaster types corresponding to the network source;
[0141] Sort each disaster type from large to small according to the first probability average of all corresponding disaster occurrence probabilities to obtain a first type sequence;
[0142] Delete all disaster types in the last digit of the first type sequence and whose first probability average value is less than the first parameter threshold;
[0143] Determine the disaster types in the remaining type sequence as multiple post-screening disaster types corresponding to the network source;
[0144] For each disaster type after screening, calculate the weighted sum average of the second probability averages of all disaster occurrence probabilities of the disaster type after screening in each network source; optionally, the weight corresponding to each second probability average is proportional to the confidence of the network source;
[0145] All the disaster types after screening are sorted from large to small according to the weighted sum average value to obtain the second type sequence;
[0146] Screening out all disaster types in the first second number of digits in the second type sequence and whose second probability average value is greater than the second parameter threshold, to obtain multiple target disaster types;
[0147] The second probability average value corresponding to each target disaster type is determined as the occurrence probability to obtain the occurrence probability of different disasters.
[0148] It can be seen that through the above-mentioned optional embodiments, the probability of occurrence of different disasters can be accurately analyzed based on a variety of statistical sorting rules and weighted summation algorithms, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0149] As an optional embodiment, in the above steps, based on the preset disaster conflict rules and disaster occurrence laws, the occurrence probabilities of different disasters are corrected and screened to obtain disaster prediction results, including:
[0150] For any target disaster type, obtain the average value of the text issuance time corresponding to all disaster text features corresponding to the target disaster type in the network source, and obtain the time parameter corresponding to the target disaster type;
[0151] For any two target disaster types, the conflict parameters and rule compliance parameters between the two target disaster types are calculated according to the preset disaster conflict rules, disaster occurrence rules and time parameters;
[0152] For any target disaster type, the average value of all contradiction parameters corresponding to the target disaster type is calculated to obtain the contradiction representation parameter corresponding to the target disaster type;
[0153] Calculate the average value of all law-compliant parameters corresponding to the target disaster type to obtain the law characterization parameter corresponding to the target disaster type;
[0154] Calculate the weighted average of the contradiction characterization parameters and the regularity characterization parameters to obtain the correction parameters corresponding to the target disaster type;
[0155] Calculate the product of the occurrence probability corresponding to the target disaster type and the correction weight to obtain the corrected probability corresponding to the target disaster type; optionally, the correction weight is proportional to the correction parameter;
[0156] All target disaster types whose corrected probabilities are greater than the preset probability threshold are screened out to obtain disaster prediction results.
[0157] It can be seen that through the above optional embodiments, the probability of each target disaster type can be corrected and screened based on the calculation of contradictory parameters and regular compliance parameters, and the probability of occurrence of different disasters can be accurately analyzed, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0158] As an optional embodiment, in the above steps, according to the preset disaster contradiction rules, disaster occurrence laws and time parameters, calculating the contradiction parameters and law compliance parameters between the two target disaster types includes:
[0159] The two target disaster types are input into a trained disaster conflict prediction model to obtain conflict probabilities corresponding to the two target disaster types; optionally, the disaster conflict prediction model is obtained by training a training data set including a plurality of training disaster types and corresponding conflict annotations;
[0160] Calculating the time difference between the time parameters of the two target disaster types;
[0161] Calculate the product of the contradiction probability and the time weight to obtain the contradiction parameter between the two target disaster types; optionally, the time weight is inversely proportional to the size of the time difference;
[0162] Determine whether the time difference is less than a preset time difference threshold, if not, determine that the regularity compliance parameter between the two target disaster types is 0;
[0163] If yes, arrange the two target disaster types from early to late according to the time parameter to obtain a third type sequence;
[0164] The similarity between the third type sequence and the preset disaster occurrence regularity sequence is calculated to obtain the regularity compliance parameter between the two target disaster types.
[0165] It can be seen that through the above-mentioned optional embodiments, the calculation of contradiction parameters and law compliance parameters can be realized based on the calculation of contradiction prediction model and law similarity, so as to facilitate the subsequent correction and screening of the probability of each target disaster type, and accurately analyze the probability of occurrence of different disasters, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0166] Embodiment 2
[0167] See also Figure 2 , Figure 2 is a schematic diagram of the structure of a disaster prediction system based on text recognition disclosed in an embodiment of the present invention. Figure 2 The disaster prediction system based on text recognition described above can be applied to a data processing system / data processing device / data processing server (wherein the server includes a local processing server or a cloud processing server). Figure 2 As shown, the disaster prediction system based on text recognition may include:
[0168] The text acquisition module 201 is used to acquire disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithms.
[0169] The feature extraction module 202 is used to extract the text features of each disaster text based on a text feature extraction algorithm to obtain a plurality of disaster text features.
[0170] The probability prediction module 203 is used to predict the occurrence probability of different disasters based on the prediction model, according to multiple disaster text features and the confidence of each network source.
[0171] The result screening module 204 is used to correct and screen the occurrence probabilities of different disasters based on preset disaster conflict rules and disaster occurrence laws to obtain disaster prediction results.
[0172] It can be seen that the above-mentioned embodiments of the invention can extract features in the text based on the text feature extraction algorithm, and then predict the disaster prediction results based on the prediction model and preset rules and regulations combined with the confidence of different network sources, so as to more intelligently and accurately identify disaster risks, improve the efficiency of disaster risks, and also improve the security identification capabilities of network information.
[0173] As an optional embodiment, the feature extraction module extracts the text features of each disaster text based on the text feature extraction algorithm to obtain a plurality of disaster text features, including:
[0174] For each disaster text, the disaster text is input into the pre-trained BERT model for encoding to obtain the text vector corresponding to the disaster text;
[0175] Input the text vector into the global pointer network for head entity decoding to obtain the head entity information corresponding to the text vector;
[0176] Calculate the average encoding vector of the header entity information, and superimpose the average encoding vector and the text vector to obtain the superimposed vector;
[0177] The superimposed vector is input into the global pointer network for tail entity recognition to obtain the tail entity information;
[0178] According to the head entity information and the tail entity information, the disaster text features corresponding to the disaster text are determined.
[0179] It can be seen that through the above optional embodiments, more accurate disaster text feature extraction can be performed based on the BERT model and the global pointer network, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0180] As an optional embodiment, the specific manner in which the text acquisition module acquires disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithm includes:
[0181] For each network source, obtain the access parameters and network source type corresponding to the network source;
[0182] Determine a keyword set corresponding to the network source type of the network source according to a preset correspondence relationship between the network source type and the keyword;
[0183] According to the access parameters, the network source is accessed and data is acquired based on the crawler algorithm to obtain the network source data;
[0184] According to the keyword set and the preset text recognition algorithm, the network source data is identified and matched to obtain the disaster text related to the storm surge disaster corresponding to the network source.
[0185] It can be seen that through the above-mentioned optional embodiments, it is possible to determine a keyword set based on the types corresponding to different network sources, and perform access and data acquisition according to access parameters, and further identify and match disaster texts, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0186] As an optional embodiment, the network source material includes at least one of text resources, picture resources, video and audio resources or flash media resources.
[0187] It can be seen that through the above optional embodiments, the type of network source data is clarified, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capability of network information.
[0188] As an optional embodiment, the probability prediction module predicts the specific manner of obtaining the occurrence probability of different disasters based on the prediction model according to multiple disaster text features and the confidence of each network source, including:
[0189] For each disaster text feature, the disaster text feature is input into a trained disaster type classifier to obtain the relevant disaster type corresponding to the disaster text feature;
[0190] Determine a target prediction model corresponding to a relevant disaster type from a plurality of preset prediction models;
[0191] Input the disaster text feature into the target prediction model to obtain the disaster occurrence probability corresponding to the disaster text feature;
[0192] According to the relevant disaster types and disaster occurrence probabilities corresponding to all disaster text features corresponding to each network source, as well as the confidence of each network source, the occurrence probabilities of different disasters are predicted.
[0193] It can be seen that through the above-mentioned optional embodiments, the relevant disaster types and disaster occurrence probabilities corresponding to the disaster text features can be determined based on the disaster type classifier and the corresponding prediction model of the type, so as to further accurately analyze the occurrence probabilities of different disasters, thereby assisting in achieving more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and also improving the security identification capabilities of network information.
[0194] As an optional embodiment, the probability prediction module predicts the specific manner of obtaining the probability of occurrence of different disasters according to the relevant disaster types and disaster occurrence probabilities corresponding to all disaster text features corresponding to each network source, and the confidence of each network source, including:
[0195] For each network source, the relevant disaster types corresponding to all disaster text features of the network source are counted to obtain multiple disaster types corresponding to the network source;
[0196] Sort each disaster type from large to small according to the first probability average of all corresponding disaster occurrence probabilities to obtain a first type sequence;
[0197] Delete all disaster types in the last digit of the first type sequence and whose first probability average value is less than the first parameter threshold;
[0198] Determine the disaster types in the remaining type sequence as multiple post-screening disaster types corresponding to the network source;
[0199] For each disaster type after screening, calculate the weighted sum average of the second probability averages of all disaster occurrence probabilities of the disaster type after screening in each network source; optionally, the weight corresponding to each second probability average is proportional to the confidence of the network source;
[0200] All the disaster types after screening are sorted from large to small according to the weighted sum average value to obtain the second type sequence;
[0201] Screening out all disaster types in the first second number of digits in the second type sequence and whose second probability average value is greater than the second parameter threshold, to obtain multiple target disaster types;
[0202] The second probability average value corresponding to each target disaster type is determined as the occurrence probability to obtain the occurrence probability of different disasters.
[0203] It can be seen that through the above-mentioned optional embodiments, the probability of occurrence of different disasters can be accurately analyzed based on a variety of statistical sorting rules and weighted summation algorithms, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0204] As an optional embodiment, the result screening module corrects and screens the occurrence probabilities of different disasters based on the preset disaster contradiction rules and disaster occurrence laws, and obtains the specific method of disaster prediction results, including:
[0205] For any target disaster type, obtain the average value of the text issuance time corresponding to all disaster text features corresponding to the target disaster type in the network source, and obtain the time parameter corresponding to the target disaster type;
[0206] For any two target disaster types, the conflict parameters and rule compliance parameters between the two target disaster types are calculated according to the preset disaster conflict rules, disaster occurrence rules and time parameters;
[0207] For any target disaster type, the average value of all contradiction parameters corresponding to the target disaster type is calculated to obtain the contradiction representation parameter corresponding to the target disaster type;
[0208] Calculate the average value of all law-compliant parameters corresponding to the target disaster type to obtain the law characterization parameter corresponding to the target disaster type;
[0209] Calculate the weighted average of the contradiction characterization parameters and the regularity characterization parameters to obtain the correction parameters corresponding to the target disaster type;
[0210] Calculate the product of the occurrence probability corresponding to the target disaster type and the correction weight to obtain the corrected probability corresponding to the target disaster type; optionally, the correction weight is proportional to the correction parameter;
[0211] All target disaster types whose corrected probabilities are greater than the preset probability threshold are screened out to obtain disaster prediction results.
[0212] It can be seen that through the above optional embodiments, the probability of each target disaster type can be corrected and screened based on the calculation of contradictory parameters and regular compliance parameters, and the probability of occurrence of different disasters can be accurately analyzed, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0213] As an optional embodiment, the result screening module calculates the specific manner of the conflict parameters and the law compliance parameters between the two target disaster types according to the preset disaster conflict rules, disaster occurrence laws and time parameters, including:
[0214] The two target disaster types are input into a trained disaster conflict prediction model to obtain conflict probabilities corresponding to the two target disaster types; optionally, the disaster conflict prediction model is obtained by training a training data set including a plurality of training disaster types and corresponding conflict annotations;
[0215] Calculating the time difference between the time parameters of the two target disaster types;
[0216] Calculate the product of the contradiction probability and the time weight to obtain the contradiction parameter between the two target disaster types; optionally, the time weight is inversely proportional to the size of the time difference;
[0217] Determine whether the time difference is less than a preset time difference threshold, if not, determine that the regularity compliance parameter between the two target disaster types is 0;
[0218] If yes, arrange the two target disaster types from early to late according to the time parameter to obtain a third type sequence;
[0219] The similarity between the third type sequence and the preset disaster occurrence regularity sequence is calculated to obtain the regularity compliance parameter between the two target disaster types.
[0220] It can be seen that through the above-mentioned optional embodiments, the calculation of contradiction parameters and law compliance parameters can be realized based on the calculation of contradiction prediction model and law similarity, so as to facilitate the subsequent correction and screening of the probability of each target disaster type, and accurately analyze the probability of occurrence of different disasters, thereby assisting in more intelligent and accurate identification of disaster risks, improving the efficiency of disaster risks, and improving the security identification capabilities of network information.
[0221] Embodiment 3
[0222] See also Figure 3 , Figure 3 This is another disaster prediction system based on text recognition disclosed in an embodiment of the present invention. Figure 3 The disaster prediction system based on text recognition is applied to a data processing system / data processing device / data processing server (wherein the server includes a local processing server or a cloud processing server). Figure 3 As shown, the disaster prediction system based on text recognition may include:
[0223] A memory 301 storing executable program codes;
[0224] a processor 302 coupled to the memory 301;
[0225] The processor 302 calls the executable program code stored in the memory 301 to execute the steps of the disaster prediction method based on text recognition described in the first embodiment.
[0226] Embodiment 4
[0227] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of the disaster prediction method based on text recognition described in the first embodiment.
[0228] Embodiment 5
[0229] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the disaster prediction method based on text recognition described in Example 1.
[0230] The above describes specific embodiments of the present specification, and 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 embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0231] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0232] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0233] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0234] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0235] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0236] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0237] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0238] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0239] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, 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. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0240] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device 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, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0241] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0242] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0243] Finally, it should be noted that the text recognition-based disaster prediction method and system disclosed in the embodiments of the present invention only disclose the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A disaster prediction method based on text recognition, characterized in that: The method comprises: Obtain disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithms; Based on a text feature extraction algorithm, extracting text features of each disaster text to obtain a plurality of disaster text features; Based on the prediction model, according to the multiple disaster text features and the confidence of each of the network sources, the probability of occurrence of different disasters is predicted, including: For each of the disaster text features, the disaster text feature is input into a trained disaster type classifier to obtain a relevant disaster type corresponding to the disaster text feature; Determining a target prediction model corresponding to the relevant disaster type from a plurality of preset prediction models; Inputting the disaster text feature into the target prediction model to obtain the disaster occurrence probability corresponding to the disaster text feature; For each of the network sources, the relevant disaster types corresponding to all the disaster text features of the network source are counted to obtain multiple disaster types corresponding to the network source; Sort each of the disaster types from large to small according to the first probability average of all the corresponding disaster occurrence probabilities to obtain a first type sequence; Delete all disaster types in the last digit of the first type sequence and whose first probability average value is less than a first parameter threshold; Determining the remaining disaster types in the type sequence as a plurality of filtered disaster types corresponding to the network source; For each of the disaster types after screening, a weighted sum average of the second probability averages of all the disaster occurrence probabilities of the disaster type after screening in each of the network sources is calculated; wherein the weight corresponding to each of the second probability averages is proportional to the confidence of the network source; Sort all the filtered disaster types from large to small according to the weighted sum average value to obtain a second type sequence; Screening out all disaster types in the first second number of digits in the second type sequence and for which the second probability average value is greater than a second parameter threshold, to obtain a plurality of target disaster types; Determine the second probability average value corresponding to each target disaster type as the occurrence probability, so as to obtain the occurrence probability of different disasters; Based on the preset disaster conflict rules and disaster occurrence laws, the occurrence probabilities of the different disasters are corrected and screened to obtain disaster prediction results.
2. The disaster prediction method based on text recognition according to claim 1, characterized in that: The text feature extraction algorithm is based on extracting the text features of each disaster text to obtain multiple disaster text features, including: For each disaster text, input the disaster text into a pre-trained BERT model for encoding to obtain a text vector corresponding to the disaster text; Inputting the text vector into a global pointer network for header entity decoding to obtain header entity information corresponding to the text vector; Calculating an average encoding vector of the header entity information, and superimposing the average encoding vector and the text vector to obtain a superimposed vector; Inputting the superposition vector into the global pointer network to perform tail entity recognition to obtain tail entity information; The disaster text feature corresponding to the disaster text is determined according to the head entity information and the tail entity information.
3. The disaster prediction method based on text recognition according to claim 1, characterized in that: The method of obtaining disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithms includes: For each network source, obtain the access parameters and network source type corresponding to the network source; Determine a keyword set corresponding to the network source type of the network source according to a preset correspondence relationship between the network source type and the keyword; According to the access parameters, the network source is accessed and data is acquired based on a crawler algorithm to obtain network source data; According to the keyword set and a preset text recognition algorithm, the network source data is identified and matched to obtain the disaster text related to the storm surge disaster corresponding to the network source.
4. The disaster prediction method based on text recognition according to claim 3 is characterized in that: The network source data includes at least one of text resources, picture resources, video and audio resources or flash media resources.
5. The disaster prediction method based on text recognition according to claim 1, characterized in that: Based on the preset disaster contradiction rules and disaster occurrence laws, the occurrence probabilities of the different disasters are corrected and screened to obtain disaster prediction results, including: For any of the target disaster types, obtain the average value of the text sending time in the network source corresponding to all the disaster text features corresponding to the target disaster type, and obtain the time parameter corresponding to the target disaster type; For any two target disaster types, according to the preset disaster contradiction rules and disaster occurrence laws and the time parameters, the contradiction parameters and law compliance parameters between the two target disaster types are calculated; For any target disaster type, calculate the average value of all the contradiction parameters corresponding to the target disaster type to obtain the contradiction representation parameter corresponding to the target disaster type; Calculate the average value of all the law-compliant parameters corresponding to the target disaster type to obtain the law characterization parameter corresponding to the target disaster type; Calculate the weighted average value of the contradiction characterization parameter and the law characterization parameter to obtain the correction parameter corresponding to the target disaster type; Calculate the product of the occurrence probability corresponding to the target disaster type and the correction weight to obtain the corrected probability corresponding to the target disaster type; the correction weight is proportional to the correction parameter; All the target disaster types whose corrected probabilities are greater than a preset probability threshold are screened out to obtain disaster prediction results.
6. The disaster prediction method based on text recognition according to claim 5, characterized in that: The step of calculating the conflict parameters and law compliance parameters between the two target disaster types according to the preset disaster conflict rules, disaster occurrence laws and the time parameters includes: The two target disaster types are input into a trained disaster contradiction prediction model to obtain contradiction probabilities corresponding to the two target disaster types; the disaster contradiction prediction model is trained by a training data set including a plurality of training disaster types and corresponding contradiction annotations; Calculating a time difference between the time parameters of the two target disaster types; Calculate the product of the contradiction probability and the time weight to obtain the contradiction parameter between the two target disaster types; the time weight is inversely proportional to the size of the time difference; Determine whether the time difference is less than a preset time difference threshold, and if not, determine that the regularity compliance parameter between the two target disaster types is 0; If yes, arrange the two target disaster types from early to late according to the time parameter to obtain a third type sequence; The similarity between the third type sequence and the preset disaster occurrence regularity sequence is calculated to obtain the regularity compliance parameter between the two target disaster types.
7. A disaster prediction system based on text recognition, characterized in that: The system comprises: A text acquisition module is used to obtain disaster texts related to storm surge disasters from multiple network sources through keyword search and crawler algorithms; A feature extraction module, used for extracting text features of each disaster text based on a text feature extraction algorithm to obtain a plurality of disaster text features; The probability prediction module is used to predict the occurrence probability of different disasters based on the prediction model according to the multiple disaster text features and the confidence of each network source, including: For each of the disaster text features, the disaster text feature is input into a trained disaster type classifier to obtain a relevant disaster type corresponding to the disaster text feature; Determining a target prediction model corresponding to the relevant disaster type from a plurality of preset prediction models; Inputting the disaster text feature into the target prediction model to obtain the disaster occurrence probability corresponding to the disaster text feature; For each of the network sources, the relevant disaster types corresponding to all the disaster text features of the network source are counted to obtain multiple disaster types corresponding to the network source; Sort each of the disaster types from large to small according to the first probability average of all the corresponding disaster occurrence probabilities to obtain a first type sequence; Delete all disaster types in the last digit of the first type sequence and whose first probability average value is less than a first parameter threshold; Determining the remaining disaster types in the type sequence as a plurality of filtered disaster types corresponding to the network source; For each of the disaster types after screening, a weighted sum average of the second probability averages of all the disaster occurrence probabilities of the disaster type after screening in each of the network sources is calculated; wherein the weight corresponding to each of the second probability averages is proportional to the confidence of the network source; Sort all the filtered disaster types from large to small according to the weighted sum average value to obtain a second type sequence; Screening out all disaster types in the first second number of digits in the second type sequence and for which the second probability average value is greater than a second parameter threshold, to obtain a plurality of target disaster types; Determine the second probability average value corresponding to each target disaster type as the occurrence probability, so as to obtain the occurrence probability of different disasters; The result screening module is used to correct and screen the occurrence probabilities of the different disasters based on the preset disaster conflict rules and disaster occurrence laws to obtain disaster prediction results.
8. A disaster prediction system based on text recognition, characterized in that: The system comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the disaster prediction method based on text recognition as described in any one of claims 1-6.
