Regional safety early warning method and device based on voice interaction

Through the combination of speech recognition model training and geographic information systems, the problem of slow voice interactive early warning response speed in the existing technology is solved, efficient speech recognition and event location positioning are achieved, and rapid response to emergencies is ensured.

CN118629406AInactive Publication Date: 2024-09-10SHANGHAI BEIWANG INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410800013.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing regional security early warning technology based on voice interaction is difficult to cope with changeable and unknown voice input, and the response speed is slow.

Method used

By training the speech recognition model, using high-quality speech database and RNN model for speech recognition, combined with the geographical information system to determine the early warning emergency index, and sending customized early warning notifications through voice and video channels.

Benefits of technology

It improves the accuracy and efficiency of speech recognition, achieves precise positioning and real-time updating of event locations, ensures rapid and comprehensive response to high-urgency events, and saves emergency response resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629406A
    Figure CN118629406A
Patent Text Reader

Abstract

The invention discloses a regional safety early warning method and device based on voice interaction, and relates to the technical field of early warning. According to the regional safety early warning method based on voice interaction, a voice recognition model is established and trained; recognizing voice based on the trained voice recognition model and outputting a text, and determining an early warning emergency index based on the recognized text; a customized early warning notification is sent based on an early warning emergency index, a communication channel is established, the communication channel comprises a voice channel and a video channel, and a high-quality voice database and an advanced machine learning technology (such as RNN) are used for voice recognition training, so that the voice recognition accuracy and efficiency of the system in an actual environment are improved, and the voice recognition efficiency of the system is improved. The application of a geographic information system (GIS) enables the location of an event to be accurately positioned and updated in real time, thereby providing effective geographic location information support.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of early warning technology, and in particular to a regional safety early warning method and device based on voice interaction. Background Art

[0002] The demand for immediate and accurate safety information is increasing, especially in emergency situations, where the public hopes to receive early warning information in an intuitive and easy-to-understand manner. Due to the increase in potential threats such as natural disasters and industrial accidents, the demand for efficient and fast-response regional safety early warning systems is growing. The development of regional safety early warning methods based on voice interaction aims to improve the efficiency and coverage of early warning systems through modern technology, ensuring that the public can obtain timely guidance and information in emergency situations.

[0003] However, the existing regional safety warning technology based on voice interaction is inconvenient to cope with the changeable and unknown voice input in the actual environment and has a slow response speed. Summary of the invention

[0004] In view of the deficiencies of the prior art, the present invention provides a regional safety warning method and device based on voice interaction, which solves the problem that the prior art is inconvenient to cope with the changeable and unknown voice input in the actual environment and has a slow response speed.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a regional safety warning method based on voice interaction, comprising the following steps: training a voice recognition model; recognizing voice and outputting text based on the trained voice recognition model, and determining a warning emergency index based on the recognized text; sending a customized warning notification based on the warning emergency index, and establishing a communication channel, wherein the communication channel includes a voice channel and a video channel.

[0006] Furthermore, the training of the speech recognition model includes: obtaining speech training data based on a speech database, and annotating the speech training data to obtain text labels corresponding to the speech training data; using the speech training data and the text labels corresponding to the speech training data as training data sets to train the speech recognition model to obtain final text output; obtaining the F1 score, accuracy and recall rate during the speech recognition model training process, and if the F1 score, accuracy and recall rate all meet the standards, the speech recognition model is verified; obtaining verification speech data independent of the speech training data from the speech database, and using the verification speech data and the verification text labels corresponding to the verification speech data as verification data sets to verify the speech recognition model to obtain a verification evaluation index; if the verification evaluation index meets the standards, the verification is successful and the speech recognition model training is completed.

[0007] Furthermore, the speech recognition model is trained using the speech training data and the text labels corresponding to the speech training data as a training data set to obtain the final text output, including: extracting a digital waveform from the speech training data using an audio processing library (such as LibROSA in Python); extracting Mel features from the extracted digital waveform, and inputting the extracted Mel features and the text labels corresponding to the Mel features into the speech recognition model, and outputting a probability distribution; the speech recognition model is an RNN model, and the probability distribution output by the speech recognition model is converted into the final text output based on a decoding algorithm.

[0008] Furthermore, the calculation formula of the verification evaluation index is as follows:

[0009]

[0010] Where E is the verification evaluation index, WER is the error rate, ω1 is the error rate weight factor, PT is the average time for the speech recognition model to output the final text output, ω2 is the average time weight factor, P is the accuracy, R is the recall rate, F1 is the F1 score, ω3 is the comprehensive weight factor of the accuracy and F1 score, and e is a natural constant.

[0011] Furthermore, the method of determining the warning emergency index based on the recognized text includes: extracting keywords through natural language processing technology to identify warning location keywords; processing the warning location keywords using a geographic information system, determining the distance between the event location and the nearest emergency service center in combination with existing map data, and visualizing the event location; comparing the recognized text with a predefined emergency keyword list to obtain emergency keywords; performing statistical analysis on the obtained emergency keywords to obtain statistical results; and determining the warning emergency index based on the statistical results and the distance between the event location and the nearest emergency service center.

[0012] Furthermore, the statistical results include the urgency level corresponding to the emergency keyword and the historical occurrence frequency of the emergency keyword, which are used to indicate the commonness of the emergency keyword.

[0013] Furthermore, the use of a geographic information system to process warning location keywords, combining existing map data to determine the distance between the event location and the nearest emergency service center, and visualizing the event location includes: performing context analysis on the acquired warning location keywords to determine the text content around the location corresponding to the warning location keywords; converting the warning location keywords and the text content around the location corresponding to the warning location keywords into geographic coordinates based on the address coding service and then sending a request to the API; receiving and determining the event location based on the returned feedback data, and analyzing the distance between the event location and the nearest emergency service center; parsing the feedback data and obtaining the coordinate data and then importing it into the GIS software; using different colors to represent different events, obtaining an event impact assessment index and determining the color depth based on the event impact assessment index for visualization.

[0014] Furthermore, the event impact assessment index is used to represent the potential impact of an event, and the event impact assessment index is determined based on the warning emergency index, the radius of the event impact area and the response time.

[0015] Furthermore, the sending of customized warning notifications based on the warning emergency index and the establishment of a communication channel include: determining the emergency level of the event based on the warning emergency index, the emergency levels including non-urgent, minor, medium and urgent; for situations with emergency levels of non-urgent and minor, sending pre-recorded or real-time generated voice messages through a voice channel; for situations with emergency levels of medium and urgent, playing an emergency warning video in real time through a video channel, the emergency warning video including response measures and evacuation routes.

[0016] A regional safety warning device based on voice interaction is applied to a regional safety warning method based on voice interaction, comprising a model training module, an urgency determination module and an interaction module, wherein: the model training module is used to establish a voice recognition model and perform training; the urgency determination module is used to recognize voice and output text based on the trained voice recognition model, and determine the warning urgency index based on the recognized text; the interaction module is used to send a customized warning notification based on the warning urgency index, and establish a communication channel, wherein the communication channel includes a voice channel and a video channel; a processor is also included; and a memory, wherein computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, the processor executes the regional safety warning method based on voice interaction as described above.

[0017] The present invention has the following beneficial effects:

[0018] (1) This regional safety warning method based on voice interaction uses a high-quality voice database and advanced machine learning technology (such as RNN) for voice recognition training, which improves the system's voice recognition accuracy and efficiency in actual environments. The application of the geographic information system (GIS) enables the location of the event to be accurately located and updated in real time, thereby providing effective geographic location information support.

[0019] (2) This regional safety warning method based on voice interaction uses comprehensive evaluation models, such as the warning emergency index and the event impact assessment index, so that decision makers can make targeted resource allocation and response according to the severity and urgency of the event. The hierarchical processing of warning notifications (voice channel and video channel) ensures the efficient use of resources, saves emergency response resources, and ensures a rapid and comprehensive response to high-emergency events.

[0020] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 The present invention is a flow chart of the regional safety early warning method based on voice interaction.

[0022] Figure 2 It is a function image of the verification evaluation index of the regional safety early warning method based on voice interaction of the present invention.

[0023] Figure 3 It is an exponential function image of event influence assessment of the regional safety early warning method based on voice interaction of the present invention.

[0024] Figure 4 It is a schematic diagram of the regional safety warning device based on voice interaction of the present invention. DETAILED DESCRIPTION

[0025] The embodiments of the present application can more effectively provide support at critical moments and ensure regional safety through a regional safety warning method and device based on voice interaction.

[0026] The overall idea of ​​the problem in the embodiment of this application is as follows:

[0027] Obtain extensive speech training data from high-quality speech databases (such as LibriSpeech or Common Voice) that contain samples of different genders, accents, and language environments to cover a variety of scenarios, prepare corresponding text labels, and ensure that the speech data accurately matches its corresponding text for effective supervision during training.

[0028] The speech recognition model is trained using the above training dataset, using deep learning architectures such as recurrent neural networks (RNNs) to enhance the model’s learning capabilities. The F1 score is monitored during training to ensure that the model has both high precision and recall, thereby balancing the ability to detect safety keywords.

[0029] Use verification voice data that is independent of the training data to test the generalization ability of the model. The key to this step is to confirm the performance of the model on unknown data. Use the verification evaluation index to determine whether the model meets the standards for actual applications. If so, the model verification is successful. Deploy the verified model to an actual safety warning system, such as a security monitoring room or emergency response center, and configure the system to monitor and identify key voice commands or alarm words in real time to trigger corresponding safety response measures.

[0030] See also Figure 1 The embodiment of the present invention provides a technical solution: a regional safety warning method based on voice interaction, comprising the following steps: training a voice recognition model; recognizing voice and outputting text based on the trained voice recognition model, and determining a warning emergency index based on the recognized text; sending a customized warning notification based on the warning emergency index, and establishing a communication channel, wherein the communication channel includes a voice channel and a video channel.

[0031] Acquire speech training data based on a speech database, annotate the speech training data, and obtain text labels corresponding to the speech training data, wherein the speech database includes but is not limited to LibriSpeech and Common Voice; use the speech training data and the text labels corresponding to the speech training data as training data sets to train the speech recognition model to obtain the final text output; obtain the F1 score, accuracy and recall rate in the speech recognition model training process, and if the F1 score, accuracy and recall rate all meet the standards, verify the speech recognition model; obtain verification speech data independent of the speech training data from the speech database, and use the verification speech data and the verification text labels corresponding to the verification speech data as verification data sets to verify the speech recognition model to obtain a verification evaluation index; if the verification evaluation index meets the standards, the verification is successful, and the speech recognition model training is completed.

[0032] Through extensive data training, the model can more accurately identify a variety of voice inputs, reduce the possibility of false positives and false negatives, and through a rigorous model training and verification process, ensure the stability and reliability of the model in actual deployment, and increase users' trust in the security warning system. In addition, the model training uses data from a diverse voice library, which can adapt to different languages ​​and accents, and is helpful for use in a diverse environment. The optimized speech recognition technology can process voice data in real time, quickly identify potential threats or emergencies, and quickly initiate corresponding security measures.

[0033] Through this comprehensive technical solution, the voice interaction-based security warning method of this embodiment can more effectively provide warning support at critical moments and ensure regional safety.

[0034] Specifically, the speech recognition model is trained using speech training data and text labels corresponding to the speech training data as training data sets to obtain the final text output process as follows: extract digital waveforms from the speech training data using an audio processing library (such as LibROSA in Python); extract Mel features from the digital waveform, and input the extracted Mel features and the text labels corresponding to the Mel features into the speech recognition model to output a probability distribution, where the speech recognition model is an RNN model; and convert the probability distribution output by the speech recognition model into the final text output based on a decoding algorithm (such as greedy decoding or beam search).

[0035] Use an audio processing library (such as LibROSA) to extract digital waveforms from the raw speech training data. This is the first step in audio data processing, converting the audio signal from analog to digital form for subsequent computational processing. Extract Mel frequency cepstral coefficients (MFCCs) or other Mel features from the digital waveform. Mel features can effectively capture the perceptual characteristics of the human ear to the audio signal, which are very important for distinguishing different speech contents. Combine the extracted Mel features with the corresponding text labels (for example, the precise text description obtained from the dataset) as input to train a recurrent neural network (RNN) model. RNN is particularly suitable for processing sequence data, such as time series audio signals, because it can use the context information to predict the next element in the sequence.

[0036] Use a decoding algorithm (such as greedy decoding or beam search) to process the output of the RNN model and convert the probability distribution of the model output into the final text output. Greedy decoding is simple and fast, and selects the most likely word or phrase each time; beam search makes a selection while retaining multiple possibilities, so that different output combinations can be considered more comprehensively, improving recognition accuracy.

[0037] The calculation formula of the verification evaluation index is as follows. Before calculating the verification evaluation index, each parameter is processed as a scalar:

[0038]

[0039] Where E is the verification evaluation index, WER is the error rate, ω1 is the error rate weight factor, PT is the average time for the speech recognition model to output the final text output, ω2 is the average time weight factor, P is the accuracy, R is the recall rate, F1 is the F1 score, ω3 is the comprehensive weight factor of the accuracy and F1 score, and e is a natural constant.

[0040] In this implementation scheme, WER (Word Error Rate) measures the degree of recognition error and is a direct indicator of speech recognition accuracy. The error rate weight factor determines the degree of influence of the error rate in the entire evaluation index. PT (Processing Time) is the average time for the speech recognition model to output the final text, which measures the response speed of the system. The average time weight factor adjusts the importance of processing time in the evaluation index. The three indicators P (Precision), R (Recall), and F1 (F1 Score) comprehensively evaluate the performance of the model, among which the F1 score is the harmonic mean of the precision and recall rate, which is often used for performance evaluation of unbalanced data sets. The comprehensive weight factor determines the importance of the accuracy and F1 score.

[0041] The formula provides a comprehensive performance view by integrating multiple performance indicators, making the performance evaluation more comprehensive and objective. By adjusting the importance of different performance indicators through weight factors, the focus of model evaluation can be customized according to the needs of actual application scenarios. Although the formula considers multiple parameters, it ultimately outputs a single index, which simplifies the performance comparison process.

[0042] The example values ​​of each parameter when calculating the verification evaluation index are as follows in Table 1:

[0043] Table 1: Example values ​​of various parameters when calculating the verification evaluation index

[0044] ID WER PT(s) P R F1 <![CDATA[ω1]]> <![CDATA[ω2]]> <![CDATA[ω3]]> E 1 0.05 0.8 0.9 0.9 0.9 0.4 0.4 0.2 3.14 2 0.1 0.7 0.85 0.85 0.85 0.4 0.4 0.2 3.31 3 0.15 0.6 0.8 0.8 0.8 0.4 0.4 0.2 3.51 4 0.2 0.5 0.75 0.75 0.75 0.4 0.4 0.2 3.74

[0045] like Figure 2 As shown in the figure, it is a function graph of the verification evaluation index, where the horizontal axis is the configuration ID, each ID corresponds to a different set of parameters, and the vertical axis is the verification evaluation index E, showing the change of the verification evaluation index (E) under different configurations. As can be seen from the figure, with the increase of the error rate (WER) and the decrease of the processing time (PT), the E value generally shows an increasing trend. This shows that in our example data, although the error rate increases, the faster processing time and the still high precision, recall and F1 score have a greater positive impact on the model performance, thereby improving the evaluation index E.

[0046] Specifically, the process of determining the warning location keywords and the warning emergency index based on the recognized text is as follows: extract keywords through natural language processing technology to identify the warning location keywords; use the geographic information system to process the warning location keywords, combine the existing map data to determine the distance between the event location and the nearest emergency service center, and visualize the event location; compare the recognized text with the predefined emergency keyword list to obtain the emergency keywords; perform statistical analysis on the obtained emergency keywords to obtain statistical results; determine the warning emergency index based on the statistical results and the distance between the event location and the nearest emergency service center. The statistical results include the emergency level corresponding to the emergency keyword and the historical frequency of occurrence of the emergency keyword, which is used to indicate the commonness of the emergency keyword.

[0047] Through natural language processing (NLP) technology, keywords of warning locations are extracted from the recognized text. These keywords indicate the specific location or area where the incident occurred. These warning location keywords are processed using a geographic information system (GIS). GIS can combine existing map data to determine the location of the incident and its relative distance to the nearest emergency service center, and visualize the location of the incident, so that the incident can be quickly located and the convenience of reaching the scene can be evaluated.

[0048] The identified text is compared with a predefined list of emergency keywords to identify the involved emergency keywords, which are usually associated with specific types of emergency situations, such as "fire", "flood", etc. Statistical analysis of the identified emergency keywords, including the corresponding emergency level of each keyword and their frequency of occurrence in historical data, helps to understand the severity and commonness of specific keywords.

[0049] Combining the statistical results and the distance between the event location and the nearest emergency service center, a comprehensive early warning emergency index is determined. This index reflects the urgency and importance of the current event and guides the priority and resource allocation of emergency response.

[0050] Through automated keyword extraction and geographic information processing, emergency events can be quickly identified and located, thereby shortening response time. Statistical analysis of emergency keywords and calculation of emergency indexes make resource allocation more accurate, ensuring that high-priority events receive adequate attention and resource support. GIS integration enables real-time updates of event geographic location information, providing the latest on-site conditions for emergency response. Visualization of event locations helps decision makers and emergency response teams better understand the on-site environment and improve the efficiency of decision-making and action.

[0051] The calculation formula of the early warning emergency index is as follows. Before the calculation, the statistical results and the distance between the event location and the nearest emergency service center are processed as scalars:

[0052]

[0053] Where U is the warning emergency index, s is the emergency level corresponding to the emergency keyword, s is pre-defined, different keywords have different emergency levels, f is the historical frequency of emergency keywords, which is the frequency of occurrence in the past certain period of time, reflecting the commonness of this type of event, d is the distance between the event location and the nearest emergency service center, e is a natural constant, r is the radius of the earth, is the latitude of the event location, is the latitude of the nearest emergency service center, γ2 is the longitude of the incident location, and γ1 is the longitude of the nearest emergency service center.

[0054] e is the base of the natural logarithm, which is used to adjust the effect of frequency f on the exponent so that it grows more slowly at higher frequencies, reflecting that common events may have lower urgency. The logarithmic function log2(1+d) is used to reduce the direct effect of distance on the urgency index while retaining its increasing characteristics.

[0055] In this embodiment, the urgency level reflects the importance and urgency of the emergency keyword. For example, fire and medical emergencies may have a higher urgency level. Using the exponential function e -(f-5) To adjust the impact of frequency f on the warning emergency index, when the event frequency is high (i.e. f>5), the exponential function value decreases, thereby reducing the contribution of such common events to the emergency index, reflecting that the urgency of common events may be low. The distance calculation uses the Haversey formula to determine the great circle distance between two points on the sphere, which includes the radius of the earth and the longitude and latitude of the two points. The logarithmic function log2(1+d) is used to adjust the impact of distance on the emergency index, reducing the direct impact of distance while retaining the characteristic of the emergency index increasing as the distance increases, but the growth rate gradually slows down.

[0056] The formula evaluates the emergency index by comprehensively considering the urgency, commonness and geographical location of an event, providing decision makers with a multi-dimensional evaluation tool. The use of logarithmic and exponential functions makes the growth of the emergency index incremental but the growth rate changes nonlinearly, which can better adapt to actual conditions and prevent extreme values ​​from having an excessive impact on decision-making. The urgency of common events may be lower due to the familiarity and preparation of emergency response departments. The formula reflects this by adjusting the impact of historical occurrence frequency, making the emergency index more in line with actual conditions.

[0057] Specifically, the process of processing the warning location keywords using the geographic information system, determining the distance between the event location and the nearest emergency service center in combination with the existing map data, and visualizing the event location is as follows: context analysis is performed on the obtained warning location keywords to determine the text content around the location corresponding to the warning location keywords; based on the address coding service, the warning location keywords and the text content around the location corresponding to the warning location keywords are converted into geographic coordinates and then sent to the API; the event location is received and determined based on the returned feedback data, and the distance between the event location and the nearest emergency service center is analyzed; the feedback data is parsed and the coordinate data is obtained and then imported into the GIS software; different events are represented by different colors, and the event impact assessment index is obtained and the color depth is determined based on the event impact assessment index for visualization. The event impact assessment index is used to represent the potential impact of an event, and the event impact assessment index is determined based on the warning emergency index, the radius of the event impact area, and the response time.

[0058] Perform contextual analysis on the warning location keywords to determine the specific locations associated with the keywords. This step involves parsing the text content around the keywords to obtain more complete geographic location information. Use the address coding service to convert the keywords and the text content around them into specific geographic coordinates. This is done by sending a request to the geocoding API, which returns the corresponding geographic coordinates based on the provided address information. Receive the data returned by the API, determine the exact location of the incident based on this data, and further analyze the distance between the incident location and the nearest emergency service center. Import the obtained coordinate data into the Geographic Information System (GIS) software, which is capable of processing and displaying complex geographic data. Use different colors to represent different events based on the impact assessment index of the event, and determine the depth of the color based on the value of the index, which helps to quickly identify the severity and urgency of the event.

[0059] The combination of contextual analysis and address coding services allows the location of incidents to be accurately identified and located. By quickly determining the distance between the incident location and the nearest emergency service center, response decisions can be made more quickly and response time can be shortened. The color-coded visualization method can intuitively display the severity and urgency of the incident, allowing relevant personnel to quickly identify and pay attention to important incidents.

[0060] The calculation formula of the event impact evaluation index is as follows. Before calculating the event impact evaluation index, each parameter is processed as a scalar quantity:

[0061]

[0062] Where, Yp is the event impact assessment index, sr is the radius of the event impact area, the impact radius is a physical quantity used to estimate the impact area of ​​the event, and the circular area formula is used to calculate the impact area. The larger the area, the wider the impact and the higher the potential severity of the event. Xt is the response time. The shorter the response time, the faster the emergency services can arrive at the scene for processing. Therefore, it is very critical to reduce the negative impact of the event. By putting the response time in the denominator, the importance of rapid response in reducing the impact of the event is emphasized.

[0063] In this implementation plan, the calculation of the event impact assessment index takes into account multiple factors, such as the emergency index, impact area, and response time, making the overall assessment of the event more comprehensive and scientific. The early warning emergency index indicates the urgency of the event. The larger the value, the more urgent the event needs to be handled. The radius of the event impact area is used to estimate the area affected by the event. It is calculated according to the circular area formula. The larger the area, the wider the potential impact range of the event. The response time indicates the length of time from the occurrence of the event to the response of emergency services. A shorter response time can significantly reduce the potential negative impact of the event.

[0064] By placing the response time in the denominator of the formula, the formula emphasizes the importance of rapid response in mitigating the impact of an incident. The formula integrates three key factors: the urgency of the incident, the scope of impact, and the speed of response, and provides a comprehensive indicator to assess the overall impact of the incident. Due to the use of exponential form, the formula can provide dynamic adjustments when various parameters change, more flexibly reflecting the impact of events in different situations. By introducing a scaling factor of 10 -4 , the numerical scale is adjusted to make the calculation results more suitable for practical application and understanding.

[0065] The example values ​​of each parameter when calculating the event impact assessment index are shown in Table 2:

[0066] Table 2: Example values ​​of various parameters when calculating the event impact assessment index

[0067] ID U sr(m) Xt(min) Yp 1 2.5 100 10 0.7854 2 3.5 150 15 1.6496 3 4.0 200 20 2.5133 4 5.0 250 25 3.9270

[0068] like Figure 3 As shown in the figure, it is a function graph of the event impact assessment index, where the horizontal axis is the configuration ID, each ID corresponds to a different set of parameters, and the vertical axis is the event impact assessment index Yp. It can be seen from the figure that with the increase of the event emergency index, the increase of the impact area radius and the increase of the response time, the event impact assessment index shows an upward trend. Although the response time increases, due to the event emergency index, the increase rate of the impact area radius is faster, and the event impact assessment index still shows a growth trend, which emphasizes the importance of responding as soon as possible to control the negative impact of the event.

[0069] Specifically, a customized warning notification is sent based on the warning emergency index, and a communication channel is established, wherein the communication channel includes a voice channel and a video channel. The process is as follows: the emergency level of the event is determined based on the warning emergency index, and the emergency levels include non-urgent, minor, medium and urgent; for situations where the emergency levels are non-urgent and minor, a pre-recorded or real-time generated voice message is sent through the voice channel; for situations where the emergency levels are medium and urgent, an emergency warning video is played in real time through the video channel, and the emergency warning video includes response measures and evacuation routes.

[0070] In this implementation scheme, the warning emergency index is used to classify events into four levels: non-urgent, minor, medium, and urgent. This classification is based on the urgency of the event, so that the response measures can be more accurately adjusted to the severity of the event. Non-urgent and minor levels: pre-recorded or real-time generated voice messages are sent through the voice channel. This method is suitable for situations where immediate action is not required. Information provides notifications and minor warnings. Medium and urgent levels: emergency warning videos are played in real time through the video channel. The video content includes specific response measures and evacuation routes. This method is suitable for situations that require immediate action and detailed guidance.

[0071] By allocating communications resources according to the level of urgency, available emergency management resources can be used efficiently. For example, precious video transmission resources are not wasted on minor incidents, but can be used on more serious incidents to provide more specific guidance.

[0072] A regional safety warning device based on voice interaction is applied to a regional safety warning method based on voice interaction, such as Figure 4 As shown, it includes a model training module, an urgency determination module and an interaction module, wherein: the model training module is used to establish a speech recognition model and perform training; the urgency determination module is used to recognize speech and output text based on the trained speech recognition model, and determine the warning urgency index based on the recognized text; the interaction module is used to send a customized warning notification based on the warning urgency index, and establish a communication channel, wherein the communication channel includes a voice channel and a video channel; it also includes a processor; and a memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the regional safety warning method based on voice interaction as described above.

[0073] A computer-readable storage medium is used to store a program, and when the program is executed by a processor, the regional safety early warning method based on voice interaction as described above is implemented.

[0074] In summary, this application has at least the following effects:

[0075] The use of high-quality speech databases and advanced machine learning techniques (such as RNN) for speech recognition training has improved the system's speech recognition accuracy and efficiency in actual environments. The application of geographic information systems (GIS) enables the precise location of events and real-time updates, providing effective geographic location information support.

[0076] Through comprehensive evaluation models, such as the warning emergency index and event impact assessment index, decision makers can make targeted resource allocation and response based on the severity and urgency of the incident. The hierarchical processing of warning notifications (voice channel and video channel) ensures the efficient use of resources, saves emergency response resources, and ensures a rapid and comprehensive response to high-emergency incidents.

[0077] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] The present invention is described with reference to flowcharts and / or block diagrams of systems, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0079] 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.

[0080] 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 The steps for the functions specified in one or more boxes.

[0081] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0082] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A regional safety early warning method based on voice interaction, characterized in that: The following steps are involved: Train the speech recognition model; Recognize speech and output text based on the trained speech recognition model, and determine the warning emergency index based on the recognized text; A customized warning notification is sent based on the warning emergency index, and a communication channel is established, wherein the communication channel includes a voice channel and a video channel.

2. According to the regional safety early warning method based on voice interaction according to claim 1, it is characterized in that: The training of the speech recognition model comprises: Acquire speech training data based on the speech database, annotate the speech training data, and obtain text labels corresponding to the speech training data; The speech training data and the text labels corresponding to the speech training data are used as training data sets to train the speech recognition model and obtain the final text output; Obtain the F1 score, accuracy, and recall rate during the speech recognition model training process. If the F1 score, accuracy, and recall rate all meet the standards, verify the speech recognition model. Acquire verification speech data independent of speech training data from a speech database, use the verification speech data and the verification text labels corresponding to the verification speech data as a verification data set to verify the speech recognition model, and obtain a verification evaluation index; If the verification evaluation index meets the standard, the verification is successful and the speech recognition model training is completed.

3. The regional safety early warning method based on voice interaction according to claim 2 is characterized in that: The method of using the speech training data and the text labels corresponding to the speech training data as a training data set to train the speech recognition model to obtain the final text output includes: Extract digital waveforms from speech training data using the audio processing library; Extracting Mel features from the extracted digital waveform, and inputting the extracted Mel features and the text labels corresponding to the Mel features into the speech recognition model, and outputting the probability distribution; Based on the decoding algorithm, the probability distribution of the speech recognition model output is converted into the final text output.

4. The regional safety early warning method based on voice interaction according to claim 2 is characterized in that: The calculation formula of the verification evaluation index is as follows: Where E is the verification evaluation index, WER is the error rate, ω1 is the error rate weight factor, PT is the average time for the speech recognition model to output the final text output, ω2 is the average time weight factor, P is the accuracy, R is the recall rate, F1 is the F1 score, ω3 is the comprehensive weight factor of the accuracy and F1 score, and e is a natural constant.

5. The regional safety early warning method based on voice interaction according to claim 1 is characterized in that: The step of determining the warning emergency index based on the recognized text includes: Extract keywords through natural language processing technology to identify keywords for warning locations; Use geographic information systems to process warning location keywords, combine existing map data to determine the distance between the event location and the nearest emergency service center, and visualize the event location; Compare the recognized text with a predefined list of emergency keywords to obtain emergency keywords; Conduct statistical analysis on the acquired urgent keywords to obtain statistical results; The warning emergency index is determined based on the statistical results and the distance between the event location and the nearest emergency service center.

6. The regional safety early warning method based on voice interaction according to claim 5 is characterized in that: The statistical results include the urgency level corresponding to the emergency keyword and the historical occurrence frequency of the emergency keyword, which are used to indicate the commonness of the emergency keyword.

7. The regional safety early warning method based on voice interaction according to claim 5 is characterized in that: The method of processing the warning location keywords using the geographic information system, determining the distance between the event location and the nearest emergency service center in combination with the existing map data, and visualizing the event location includes: Performing context analysis on the acquired warning location keywords to determine text content around the location corresponding to the warning location keywords; Based on the address coding service, the warning location keyword and the text content around the location corresponding to the warning location keyword are converted into geographic coordinates and then sent to the API request; Receive and determine the location of the incident based on the returned feedback data, and analyze the distance between the incident location and the nearest emergency service center; Analyze the feedback data and obtain the coordinate data before importing it into GIS software; Different events are represented by different colors, and the event impact assessment index is obtained. The color depth is determined based on the event impact assessment index and then visualized.

8. The regional safety early warning method based on voice interaction according to claim 7 is characterized in that: The event impact assessment index is used to represent the potential impact of an event, and the event impact assessment index is determined based on the warning emergency index, the radius of the event impact area, and the response time.

9. The regional safety early warning method based on voice interaction according to claim 1 is characterized in that: Sending customized warning notifications based on the warning emergency index and establishing a communication channel include: Determine the emergency level of the incident based on the warning emergency index, wherein the emergency levels include non-urgent, minor, moderate and urgent; For non-urgent and minor situations, pre-recorded or real-time generated voice messages are sent through the voice channel; For situations where the emergency level is medium and urgent, an emergency warning video is played in real time through a video channel, and the emergency warning video includes response measures and evacuation routes.

10. A regional safety warning device based on voice interaction, applied to a regional safety warning method based on voice interaction according to any one of claims 1 to 9, characterized in that: It includes a model training module, an urgency determination module and an interaction module, wherein: The model training module is used to establish a speech recognition model and perform training; The urgency determination module is used to recognize speech based on the trained speech recognition model and output text, and determine the warning urgency index based on the recognized text; The interaction module is used to send customized warning notifications based on the warning emergency index and establish a communication channel, wherein the communication channel includes a voice channel and a video channel; Also includes a processor; and A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the regional safety warning method based on voice interaction as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Adaptive speech recognition switching method and device, storage medium and program product

    CN119811367A