Inspection robot voice risk warning method based on context compensation

By constructing a context reliability vector and dynamically adjusting the risk value, the stability and timeliness of voice risk alarms of inspection robots in complex environments are solved, and efficient voice risk judgment under self-noise and environmental noise is achieved.

CN123182701APending Publication Date: 2026-11-27ANHUI HUAYUAN INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611509846.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing voice risk alarm technology for inspection robots struggles to simultaneously ensure alarm stability and timely response in scenarios involving continuous movement and changing data collection conditions. Furthermore, it is susceptible to self-noise and environmental noise, which can lead to false alarms or reduce the ability to detect truly high-risk voices.

Method used

By constructing a contextual reliability vector, based on environmental information, robot motion state, and historical risk trend information, reliability compensation is performed on the audio signal. Combined with dynamic risk value and risk threshold adjustment, streaming stabilization processing is achieved to improve the robustness and response speed of voice risk judgment.

Benefits of technology

It reduces the impact of self-noise and environmental noise, decreases false alarms, improves the robustness of voice risk assessment, and is highly adaptable to different scenarios, enabling rapid response to sudden high-risk events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182701A_ABST
    Figure CN123182701A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of robot intelligent inspection, and discloses a voice risk alarm method for an inspection robot based on context compensation, which comprises the following steps: collecting audio signals around the inspection robot and robot context data and performing time alignment; pre-processing, short-time windowing and acoustic feature extraction are performed on the audio, a lightweight end-to-end model is used to obtain emotion risk category probability; a context reliability vector is constructed according to environmental information, robot motion state, position time information and historical risk trend information, and an acoustic reliability factor is determined to compensate for window-level risk evidence; a dynamic risk value is determined by combining historical risk attenuation, risk trend, sudden event transition and safety release, and a candidate alarm level is determined according to a dynamic threshold value; and a final alarm level is obtained through flow stabilization. The application can reduce false alarms in a complex environment, improve alarm stability and sudden event response capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent robot inspection technology, and more specifically, to a voice risk alarm method for inspection robots based on context compensation. Background Technology

[0002] With the increasing application of inspection robots in open or semi-open scenarios such as industrial parks, campuses, communities, hospitals, factories, and underground parking lots, the automatic perception of abnormal sounds and high-risk voice events by inspection robots has become an important technical means in intelligent inspection and safety monitoring.

[0003] Existing voice risk alarm technologies for inspection robots can be mainly categorized into two types. The first type uses a single or a small number of audio windows as the judgment unit, including keyword or text sentiment analysis after speech transcription, single-window voice emotion classification, and sound event detection. It typically compares the current recognition probability or acoustic indicators with a fixed threshold and directly outputs a risk judgment. The second type, to reduce fluctuations in single-window results, employs time smoothing strategies such as moving averages, continuous multi-window confirmation, fixed hysteresis, or delayed confirmation based on the aforementioned recognition results before outputting an alarm. Both types of technologies can achieve a certain degree of voice risk detection, but in continuous inspection scenarios where the inspection robot is constantly moving and the acquisition conditions are constantly changing, the following two interrelated technical problems still exist.

[0004] First, existing methods typically lack explicit differentiation in the reliability of evidence for the current audio window under different acquisition conditions. When an inspection robot turns, accelerates, or traverses uneven surfaces, the self-noise generated by the vibrations of its motor, wheels, fan, and chassis changes; the speech signal quality also significantly degrades when near air vents, equipment rooms, or in far-field, reverberant environments. Therefore, even if different audio windows have similar emotion classification probabilities, their reliability in reflecting truly risky speech can vary considerably. If judgments are still made directly based on the current window classification result or a fixed threshold, instantaneous self-noise, environmental noise, and changes in pickup conditions can easily lead to unreliable high-risk outputs and false alarms; while simply increasing the overall threshold to suppress false alarms may reduce the detection capability of truly high-risk speech.

[0005] Second, existing time-smoothing or continuous confirmation methods cannot simultaneously ensure the stability of continuous risk alerts and the timeliness of response to short-lived high-risk events. Risky vocalizations such as arguing, crying, and fearful shouts may recur or gradually intensify over a continuous period, while high-risk vocalizations such as screams and cries for help may only last for a short time. If alerts are only issued based on a single window or a single detection result, small fluctuations in the continuous window can easily cause repeated changes in risk levels; if fluctuations are suppressed by increasing the number of consecutive confirmations, extending the confirmation time, or increasing the moving average window, then short-lived screams and cries for help may result in delayed alerts. Summary of the Invention

[0006] To address the two aforementioned technical issues, this invention provides a context-compensated voice risk alarm method for inspection robots. A context reliability vector is constructed based on environmental information, robot motion state, position and time information, and historical risk trend information. Reliability compensation is applied to the emotional risk evidence of the current window to suppress low-reliability isolated evidence while retaining credible risk evidence. The dynamic risk value corresponding to the previous short-term audio window is attenuated, and the compensated window-level risk evidence is accumulated. The current dynamic risk value is determined by combining the risk upward trend, sudden event transitions, and safe release. This approach balances alarm stability and timely response to sudden events within the same continuous processing chain.

[0007] To achieve the above objectives, the technical solution of the present invention is as follows:

[0008] A context-compensated voice risk alarm method for inspection robots includes:

[0009] Continuously collect audio signals around the inspection robot and obtain robot context data corresponding to the audio signals. Align the audio signals and robot context data according to a unified timestamp.

[0010] The audio signal is preprocessed and divided into continuous short-time audio windows according to a preset window length and window step size, and the acoustic features corresponding to each short-time audio window are extracted.

[0011] Input the short-time audio window or its corresponding acoustic features into a lightweight end-to-end speech emotion risk recognition model to obtain the probability of the emotion risk category corresponding to each short-time audio window.

[0012] A context reliability vector is constructed based on the environmental information, robot motion state, position and time information, and historical risk trend information corresponding to the current short-term audio window, and the acoustic reliability factor of the current short-term audio window is determined based on the context reliability vector.

[0013] Based on the acoustic reliability factor, the probability of the emotional risk category, the continuity and consistency of similar emotions, sudden acoustic anomalies, and the situation of low-reliability isolated evidence, the emotional risk evidence of the current short audio window is compensated to obtain compensated window-level risk evidence.

[0014] Based on the window-level risk evidence and the dynamic risk value corresponding to the previous short audio window, the dynamic risk value is attenuated, and combined with the window-level risk evidence, risk upward trend, sudden event transition and safe release status, the dynamic risk value corresponding to the current short audio window is determined.

[0015] The preset basic risk threshold is dynamically adjusted based on the current environmental noise, the robot's location, and the current time period. The dynamic risk value is compared with the adjusted dynamic risk threshold to determine the candidate alarm level corresponding to the current short-term audio window.

[0016] The candidate alarm levels and dynamic risk values ​​corresponding to multiple consecutive short-term audio windows are subjected to streaming stabilization processing to determine the final alarm level. Based on the final alarm level, alarm records are generated and the robot and / or inspection platform are linked.

[0017] As a preferred embodiment of the present invention, the robot context data includes motion speed, angular velocity, IMU vibration, motor speed, wheel speed, navigation status, current position, region category, and current time period;

[0018] The preprocessing includes at least one of resampling, gain normalization, pre-emphasis, bandpass filtering, noise reduction or echo suppression;

[0019] The acoustic features include VAD confidence, short-time energy, spectral centroid, spectral flux, zero-crossing rate, fundamental frequency, pitch change rate, harmonic-to-noise ratio, screaming index, and Log-Mel spectrum.

[0020] As a preferred embodiment of the present invention, the lightweight end-to-end voice emotion risk recognition model includes an acoustic feature front-end, a time-frequency encoder, a temporal aggregation layer, and a risk classification head;

[0021] The time-frequency encoder employs one or more combinations of depthwise separable convolution, lightweight convolutional neural network, TCN, GRU, and TinyTransformer.

[0022] As a preferred embodiment of the present invention, the context reliability vector includes:

[0023] Environmental noise reliability characteristics determined based on non-speech segment noise floor, signal-to-noise ratio, background sound type, and reverberation intensity;

[0024] The robot's self-noise reliability characteristics are determined based on motor speed, wheel speed, fan status, chassis vibration, movement speed, angular velocity, and navigation actions.

[0025] The reliability characteristics of VAD are determined based on VAD confidence, speech duration, the proportion of human voice frequency band energy, and the probability of non-speech events.

[0026] Motion state reliability characteristics are determined based on at least one of the robot's motion states, including stationary, low-speed uniform motion, turning, accelerating, obstacle crossing, and approaching the equipment room.

[0027] Location time reliability characteristics determined based on region type, historical risk areas, current time period, and peak population time period;

[0028] And the historical trend reliability characteristics determined based on the mean, variance, number of consecutive increases, continuity of similar emotions, and historical risk level change rate of high-risk probabilities corresponding to multiple processed short audio windows before the current short audio window.

[0029] As a preferred embodiment of the present invention, the acoustic reliability factor with a value between 0 and 1 is obtained by combining the signal-to-noise ratio, VAD confidence, robot self-noise normalization value, motion stability, position area weight, time period weight and historical evidence consistency corresponding to the current short-time audio window according to the parameters obtained by pre-training or calibration, and by mapping through the Sigmoid function.

[0030] The acoustic reliability factor is used to characterize the reliability of acoustic evidence in the current short-time audio window under the corresponding environmental state and robot operating state; the motion stability is determined by a combination of velocity change rate, angular velocity and IMU vibration normalization value; the position region weight is determined by the region context calibration value corresponding to the current position; the time period weight is determined by the time period context calibration value corresponding to the current time period; and the historical evidence consistency is jointly determined by the comprehensive high-risk probability variance of the most recent multiple short-time audio windows and the proportion of consecutive occurrences of the current dominant high-risk category. All of the above intermediate quantities are mapped to 0 to 1.

[0031] As a preferred embodiment of the present invention, the compensation of the emotional risk evidence of the current short-term audio window to obtain compensated window-level risk evidence includes:

[0032] For each high-risk emotion category, basic risk evidence is determined based on the acoustic reliability factor and the corresponding emotion risk category probability, and combined with:

[0033] A continuity consistency term representing the occurrence of a high-risk emotion consecutively in multiple recent short audio windows;

[0034] A sudden acoustic anomaly characterizing sudden acoustic changes in the current short-term audio window, wherein the sudden acoustic anomaly is determined based on at least two of the following: short-term energy change, spectral centroid change, spectral flux, pitch change rate, and screaming index;

[0035] And the penalty item for low-reliability isolated evidence that represents the probability of high-risk emotion categories only appears in low-reliability isolated short-time audio windows;

[0036] The basic risk evidence is enhanced or suppressed, and the processing result is limited to a preset risk evidence value range to obtain window-level risk evidence corresponding to each high-risk emotion category. Among them, the continuity consistency term of the same emotion is determined according to the proportion of windows in which the probability of the corresponding category in the most recent short-time audio windows reaches the consistency threshold. The sudden acoustic anomaly term is determined according to at least two of the following: short-time energy change, spectral centroid change, spectral flux, pitch change rate and screaming index. The low reliability isolated evidence penalty term is determined according to the joint conditions that the acoustic reliability factor is lower than the reliability lower limit, the current category probability is higher than the high probability threshold, the adjacent windows lack the same continuous evidence, and the sudden acoustic anomaly term is lower than the sudden anomaly lower limit.

[0037] As a preferred embodiment of the present invention, determining the dynamic risk value corresponding to the current short-time audio window includes:

[0038] The degree of risk decay is determined based on the time interval between adjacent risk update times and the risk decay time constant, and the dynamic risk value corresponding to the previous short audio window is decayed accordingly.

[0039] Based on the risk weights corresponding to different high-risk emotion categories, the risk evidence at each window level corresponding to the current short audio window is accumulated;

[0040] The risk upward trend is determined based on the risk changes over multiple consecutive short audio windows, and the risk upward process is enhanced.

[0041] When a sudden high-risk event such as screaming, calling for help, or a sudden high-energy human voice is detected, the current risk is amplified by a jump.

[0042] When normal speech or non-risk background noise is continuously detected, historical risks are safely released.

[0043] The dynamic risk value is determined based on attenuated historical risk, accumulated window-level risk evidence, risk escalation trend, sudden event transitions, and safe release status. The risk escalation trend is determined by the positive increment of weighted risk evidence from the most recent multiple windows and the number of consecutive increases. Sudden event transitions are determined by the probability of the risk category corresponding to screams, cries for help, or sudden high-energy human voices, combined with sudden acoustic anomalies. For sudden high-energy human voices, the value is determined based on speech activity detection results and sudden acoustic anomalies. Safe release is determined by the probability of normal or non-risk speech from multiple consecutive windows and the acoustic reliability factor. The initial risk value is set to 0 when the dynamic risk recursion is first initiated.

[0044] As a preferred embodiment of the present invention, determining the candidate alarm level includes:

[0045] Pre-set a first basic risk threshold, a second basic risk threshold, and a third basic risk threshold, respectively, corresponding to the attention level, the warning level, and the emergency level;

[0046] Based on the noise penalty corresponding to the current noise conditions, the position risk corresponding to the robot's current position, and the time period risk corresponding to the current time period, the first basic risk threshold, the second basic risk threshold, and the third basic risk threshold are dynamically adjusted to obtain the first dynamic risk threshold, the second dynamic risk threshold, and the third dynamic risk threshold. Among them, the noise penalty is used to increase the corresponding basic risk threshold, and the position risk and time period risk are used to decrease the corresponding basic risk threshold. Monotonic constraints are applied to the three adjusted dynamic risk thresholds to keep the first dynamic risk threshold less than the second dynamic risk threshold and the second dynamic risk threshold less than the third dynamic risk threshold.

[0047] When the dynamic risk value is lower than the first dynamic risk threshold, the candidate alarm level is determined to be level 0 (normal).

[0048] When the dynamic risk value is not lower than the first dynamic risk threshold and is lower than the second dynamic risk threshold, the candidate alarm level is determined to be Level 1 concern;

[0049] When the dynamic risk value is not lower than the second dynamic risk threshold and is lower than the third dynamic risk threshold, the candidate alarm level is determined to be a Level 2 warning.

[0050] When the dynamic risk value is not lower than the third dynamic risk threshold or the current short-term audio window meets the preset sudden high-risk conditions, the candidate alarm level is determined to be Level 3 emergency; the preset sudden high-risk conditions include at least: the risk category probability corresponding to screaming, calling for help or sudden high-energy human voice reaches the sudden probability threshold and the sudden acoustic abnormality item reaches the sudden abnormality threshold, or the sudden event transition item reaches the preset transition threshold.

[0051] As a preferred embodiment of the present invention, the alarm record includes alarm number, robot number, timestamp, location coordinates, area name, risk level, dominant risk category, model confidence level, acoustic reliability factor, risk curve summary, audio evidence segment index, and robot motion state.

[0052] Based on the final alarm level, the inspection robot is controlled to perform at least one of the following operations: docking, turning, camera evidence collection, voice reminder, approaching the risk site or maintaining a safe distance, and risk handling information is sent to the inspection platform and / or security terminal.

[0053] When the communication network is available, the alarm summary and audio evidence fragments are uploaded to the inspection platform. When the communication network is unavailable, the corresponding alarm records and audio evidence fragments are cached locally on the inspection robot, and the robot body alarms continue to be executed.

[0054] A context-compensated voice risk alarm system for inspection robots includes:

[0055] The data acquisition module is used to continuously acquire audio signals around the inspection robot and obtain robot context data corresponding to the audio signals, and align the audio signals and robot context data according to a unified timestamp.

[0056] The audio processing module is used to preprocess the audio signal and divide it into continuous short-time audio windows according to a preset window length and window step size, and extract the acoustic features corresponding to each short-time audio window.

[0057] The risk identification module is used to input the short-time audio window or its corresponding acoustic features into a lightweight end-to-end speech emotion risk identification model to obtain the probability of the emotion risk category corresponding to each short-time audio window.

[0058] The reliability modeling module is used to construct a context reliability vector based on the environmental information, robot motion state, position and time information and historical risk trend information corresponding to the current short-time audio window, and to determine the acoustic reliability factor of the current short-time audio window based on the context reliability vector.

[0059] The evidence compensation module is used to compensate the emotional risk evidence of the current short audio window based on the acoustic reliability factor, the probability of the emotional risk category, the continuity and consistency of similar emotions, sudden acoustic anomalies, and the situation of low-reliability isolated evidence, so as to obtain the compensated window-level risk evidence.

[0060] The dynamic risk calculation module is used to attenuate the dynamic risk value based on the window-level risk evidence and the dynamic risk value corresponding to the previous short audio window, and determine the dynamic risk value corresponding to the current short audio window by combining the window-level risk evidence, risk upward trend, sudden event transition and safe release status.

[0061] The candidate alarm determination module is used to dynamically adjust the preset basic risk threshold based on the current environmental noise, the robot's location, and the current time period, compare the dynamic risk value with the adjusted dynamic risk threshold, and determine the candidate alarm level corresponding to the current short-time audio window.

[0062] The alarm processing module is used to perform streaming stabilization processing on candidate alarm levels and dynamic risk values ​​corresponding to multiple consecutive short-term audio windows, determine the final alarm level, generate alarm records based on the final alarm level, and perform linkage with robots and / or inspection platforms.

[0063] The beneficial technical effects of this invention are:

[0064] By constructing a contextual reliability vector from environmental information, robot motion state, position and time information, and historical risk trend information, and using an acoustic reliability factor to compensate for window-level risk evidence, the impact of low-reliability abnormal results caused by robot self-noise, environmental noise, and changes in sound pickup conditions can be reduced, thereby reducing false alarms and improving the robustness of voice risk judgment.

[0065] By generating dynamic risk values ​​through historical risk attenuation, current risk evidence accumulation, risk trend enhancement, sudden event transitions, and safe release, and combined with streaming stabilization processing, repeated alarms caused by single-window fluctuations can be suppressed. At the same time, by bypassing sudden high-risk conditions, emergency alarms can be quickly triggered for short-term events such as screams and calls for help.

[0066] The risk threshold is dynamically adjusted based on the current environmental noise, the robot's location, and the current time period, so that the alarm conditions can be adjusted according to changes in the inspection environment, improving the applicability in different scenarios such as park roads, underground parking lots, equipment rooms, and night patrols.

[0067] By employing short-time audio windows for end-to-end risk identification and achieving edge deployment through distillation, pruning, and low-bit quantization, processing latency and network dependence can be reduced, enabling the inspection robot to continue to perform local risk assessment and alarms even in weak network or network outage environments.

[0068] By generating alarm records containing information such as risk level, location, time, dominant risk category, reliability factor, and audio evidence clips, and linking robots to perform operations such as evidence collection, alerts, docking, or maintaining a safe distance, the efficiency of risk event review and on-site handling is improved. Attached Figure Description

[0069] Figure 1 This is the overall architecture diagram of the inspection robot's voice emotion risk recognition and streaming alarm.

[0070] Figure 2 This is a schematic diagram of the voice risk recognition processing chain and the lightweight end-to-end voice emotion risk recognition model structure.

[0071] Figure 3 This is a schematic diagram of window-level evidence compensation driven by environmental reliability and robot motion context.

[0072] Figure 4 This is a schematic diagram of the streaming dynamic risk assessment function and multi-level alarm process.

[0073] Figure 5 This is a schematic diagram of the edge deployment of the inspection robot and its linkage with the platform. Detailed Implementation

[0074] In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, the specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0075] Combination Figures 1-5 The present invention provides the following embodiments:

[0076] Example 1:

[0077] This embodiment provides a context-compensated voice risk alarm method for inspection robots. The method is applied to inspection robots equipped with microphones or microphone arrays, edge computing units, positioning modules, motion control systems, and wireless communication modules. The inspection robot can perform continuous inspection tasks in areas such as park roads, building lobbies, underground parking lots, equipment room perimeters, and nighttime patrol routes, and detect and alarm for risky voices such as screams, cries for help, sudden high-energy human voices, fearful shouts, crying, angry arguments, and tense, panicked sounds.

[0078] This embodiment includes model training and edge deployment, online voice risk identification and alarm, and experimental verification. The online voice risk identification and alarm process includes, in sequence, short-term acoustic risk identification, contextual reliability modeling, window-level risk evidence compensation, streaming dynamic risk assessment, multi-level alarm stabilization, and robot-platform linkage.

[0079] I. Model Training and Edge Deployment

[0080] Before conducting online inspections, a lightweight end-to-end voice emotion risk recognition model is pre-built and trained.

[0081] The data used for model training includes audio collected on-site by the inspection robot, publicly available emotional speech data, simulated park ambient sound, robot self-noise, far-field reverberant speech, and artificially constructed audio of cries for help, screams, and arguments. The training data must be labeled with at least the emotional risk category, risk level, speech start and end time, scene noise type, robot motion state, and whether manual intervention is required. The emotional risk category is a speech risk classification set for safety risk identification, including screams, cries for help, sudden high-energy human voices, fear, crying, angry arguments, tension and panic, and normal or non-risk speech.

[0082] To improve the model's generalization ability in complex inspection environments, the training data was subjected to noise mixing with different signal-to-noise ratios, robot motion noise superposition, reverberation convolution, far-field attenuation, volume perturbation, time stretching, pitch perturbation, random occlusion, and background music or broadcast mixing.

[0083] The model training loss may include one or more of the following: emotion classification cross-entropy loss, class imbalance focus loss, risk level ranking loss, reliability calibration loss, and streaming consistency loss. After training, a lightweight model is obtained through knowledge distillation, pruning, low-bit quantization, and operator fusion. The end-to-end speech emotion risk recognition model, reliability compensation module, and streaming risk assessment module are then deployed to the edge computing unit of the inspection robot.

[0084] When the network is available, the inspection robot uploads alarm summaries and necessary evidence fragments to the inspection platform; when the network is unavailable, the relevant data is cached locally on the robot, and it continues to perform local risk assessment and alarms.

[0085] II. Online Voice Risk Identification and Alarms

[0086] S1. Acquire audio and robot context data.

[0087] During the inspection process, the inspection robot continuously collects ambient audio signals using a single microphone, microphone array, or pickup unit mounted on the robot. .

[0088] Simultaneously, the motion speed is read from the robot control system or ROS bus. angular velocity IMU vibration Motor speed Wheel speed Navigation status Current location Regional categories Current period The robot context data is obtained and the audio signal and robot context data are aligned according to a unified timestamp.

[0089] This allows for the simultaneous acquisition of the robot's motion state and inspection environment information corresponding to the current audio window when performing risk identification on the current audio window.

[0090] S2. Perform audio preprocessing and form continuous short-time audio windows.

[0091] For continuously acquired audio signals Perform resampling, gain normalization, pre-emphasis, bandpass filtering, noise reduction and / or echo suppression, and according to the preset window length. and window step size The processed continuous audio is divided into continuous short-time audio windows. .

[0092] Preferably, the sampling rate is 16kHz or 32kHz, and the window length is... The window step size is 0.8–1.5 s. The duration is 0.2 to 0.5 seconds.

[0093] For each short audio window Calculate the confidence level of VAD Short-term energy Spectral centroid Spectral flux Zero crossing rate, fundamental frequency Pitch change rate Harmony-to-noise ratio Screaming index and Log-Mel spectrum .

[0094] Among them, short-time energy Used to calculate the energy increment of the current window relative to the previous window, and participates in subsequent sudden acoustic anomaly terms. and sudden event jump items Determination of the spectral centroid; Spectral flux is used to describe the centroid position of energy on the frequency axis. Used to describe spectral changes between adjacent windows or adjacent frames, both of which are related to the pitch change rate. joint participation Determination of harmonic noise ratio; Used to measure the integrity of the human voice harmonic structure and can be used in the VAD reliability characteristic calculation in S4; screaming index Used to characterize the screaming features such as high-pitched and high-frequency harmonic concentration and sudden energy, and simultaneously participates in and Determination of Log-Mel spectrum VAD confidence level serves as the primary input to the S3 end-to-end voice emotion risk recognition model. Simultaneously serving as a direct input to the acoustic reliability factor in S5; zero-crossing rate and fundamental frequency It is used to help distinguish between human voices, transient mechanical sounds, and high-pitched speech.

[0095] Before being used in subsequent calculations, the aforementioned scalar features can be truncated based on the upper and lower quantiles of the training set or the field calibration set, and then uniformly normalized to [value missing]. These features serve two purposes: firstly, to characterize the speech acoustic state within the current window, and secondly, to provide a data foundation for subsequent reliability analysis of the robot's acoustic environment and the judgment of sudden acoustic events.

[0096] S3. Perform non-transcriptional speech emotion risk recognition.

[0097] Short audio window or the corresponding Log-Mel spectrum Input a lightweight end-to-end voice emotion risk recognition model deployed in the robot's edge computing unit.

[0098] The lightweight end-to-end voice emotion risk recognition model includes an acoustic feature front-end, a time-frequency encoder, a temporal aggregation layer, and a risk classification head. The time-frequency encoder employs one or more combinations of deep separable convolutions, lightweight convolutional neural networks, TCN, GRU, and Tiny Transformer.

[0099] The model outputs a probability vector for the sentiment risk category for the current short audio window:

[0100]

[0101] Among them, each probability represents the predicted probability that the current short audio window belongs to screaming, calling for help, sudden high-energy human voice, fear, crying, angry arguing, tension and panic, and normal or non-risk voice.

[0102] Based on the set of high-risk emotion categories Further calculation of the overall high-risk probability:

[0103]

[0104] in, This is a set of high-risk emotion categories, including the risk categories corresponding to screaming, calling for help, sudden high-energy human voices, fear, crying, angry arguments, and tension and panic; Index for high-risk emotion categories, For the first Predicted probabilities of high-risk emotions. For the first Risk category weights corresponding to high-risk emotions.

[0105] This process directly identifies risks based on short-term speech acoustic information, without requiring the completion of ASR transcription of the complete speech first. Therefore, it can utilize non-textual semantic information such as pitch, energy, spectral changes, crying sounds, and screaming harmonics, while reducing the impact of the speech transcription process on alarm response speed.

[0106] S4. Constructing the context reliability vector

[0107] For the current short audio window A contextual reliability vector is constructed based on the corresponding environmental information, robot motion state, position and time information, and historical risk trend information. .

[0108] The context reliability vector includes:

[0109] (1) Environmental noise reliability characteristics, based on the noise floor of non-speech segments and signal-to-noise ratio Determine the type of background sound and the reverberation intensity;

[0110] (2) The self-noise reliability characteristics of the robot are determined based on the motor speed, wheel speed, fan status, chassis vibration, current motion speed, angular velocity and navigation action;

[0111] (3) VAD reliability characteristics are determined based on VAD confidence, speech duration, proportion of human voice frequency band energy, and probability of non-speech events;

[0112] (4) Reliability characteristics of motion state are obtained by mapping the operating states such as stationary, low-speed uniform, turning, acceleration, obstacle crossing and approaching the equipment room to different reliability weights;

[0113] (5) Location and time reliability characteristics are determined based on information such as area type, historical risk area, nighttime period, and densely populated period;

[0114] (6) Historical trend reliability characteristics, based on the most recent short-time audio window before the current one. The mean, variance, number of consecutive increases, continuity of similar emotions, and rate of change of historical risk level for each processed short-term audio window were determined.

[0115] The aforementioned contextual reliability vector distinguishes the reliability of the same model probability under different acquisition conditions. For example, the same risk category probability has a higher reliability when the robot is stationary, in the near field, and in a quiet environment, but its reliability is relatively lower under conditions such as high-speed turning, strong wind noise, equipment room noise, or far-field reverberation.

[0116] S5. Determine the acoustic reliability factor

[0117] The acoustic reliability factor is calculated based on the context reliability vector corresponding to the current short-time audio window. :

[0118]

[0119] in, For the Sigmoid function; This represents the robot's self-noise normalization value. For motion stability; Weights are assigned to specific location regions. Weighted by time period; To ensure consistency with historical evidence; ( The parameters are obtained through training or calibration. All intermediate values ​​mentioned above are normalized to 0 to 1.

[0120] Specifically, The values ​​are determined based on the rate of change of velocity, angular velocity, and IMU vibration corresponding to the current window. Three normalized values ​​can be obtained first. , and Press again Calculation, where , , The weights are non-negative and the sum of the weights is 1; when the robot is stationary or moving at a low constant speed. When approaching 1, during rapid acceleration or deceleration, sharp turns, or obstacle crossings. reduce.

[0121] The robot's current location is used to retrieve pre-defined context weights for its location region. This calibration can be established by integrating historical noise levels, reverberation intensity, equipment noise percentage, and historical false trigger statistics for that region. Mapping table; after entering the corresponding area, directly look up the table by area number. . Based on the pre-defined context weights of the current time period, a system can be established using historical statistics on population density, broadcast activities, vehicle activities, and background noise intensity. Time-segment mapping table. In this embodiment, the mapping table is calibrated according to the reliability of acoustic evidence, so that... and The larger the value, the higher the reliability of the current acoustic evidence at the corresponding location or time period.

[0122] Based on the most recent window The processed window is confirmed. (Order) For the The variance of the overall high-risk probability for each window. The currently dominant high-risk category is described in The proportion of windows that reach the consistency probability threshold within a given window can be calculated using the following formula:

[0123]

[0124] in, This serves as a reference value for variance normalization. for The weights between them. Therefore, the smaller the historical probability fluctuations and the higher the proportion of consecutive occurrences of the same dominant high-risk category. The larger.

[0125] It should be noted that in S5 and Used to describe the contextual impact of current location and time period on the "credibility of current acoustic evidence"; location risk quantity in S8. Risk level during the period The risk prior used to describe "alarm sensitivity" has different meanings and is involved in reliability compensation and dynamic threshold adjustment, respectively, to avoid the same variable bearing two roles.

[0126] Using the Sigmoid function to adjust the acoustic reliability factor Mapped to The range. Thus, when the robot has strong self-noise, low motion stability, or low reliability of speech evidence, the current short-time audio window achieves lower acoustic reliability; conversely, it achieves higher acoustic reliability.

[0127] S6. Perform reliability compensation on window-level emotional risk evidence.

[0128] For the High-risk emotions, based on acoustic reliability factor and the corresponding probability of emotional risk categories Identify basic risk evidence and compensate for it by combining similar emotional continuity, sudden acoustic anomalies, and isolated evidence of low reliability.

[0129] Compensated window-level risk evidence Represented as:

[0130]

[0131] in, For the first Consistent consistency of similar high-risk emotions across multiple recent short audio windows; For the first Sudden acoustic anomalies corresponding to high-risk emotions; Penalty for isolated evidence of low reliability; , , , These are configurable parameters; Used to limit window-level risk evidence to scope.

[0132] You can click on the most recent The first short audio window The probability of class-related emotions reaches the consistency threshold The window proportion is determined, that is, the statistics satisfy... The number of windows and divided by ; higher weight can also be assigned to windows that are closer to the current time. Therefore, only when the same high-risk emotion persists in multiple adjacent windows will [it be considered a positive outcome]. Only then can a relatively high value be maintained.

[0133] It is determined by acoustic changes associated with sudden high-risk speech. The short-time positive energy increment, spectral centroid change, normalized spectral flux, absolute value of pitch change rate, and screaming index can be normalized to [values ​​to be filled in]. Then perform non-negative weighting, and then... get A higher category gating coefficient is used for sudden, sensitive categories such as screams, cries for help, and sudden high-energy human voices, while a lower gating coefficient is used for non-sudden categories such as crying and continuous arguing.

[0134] Used to identify "high-probability but low-reliability and isolated" anomaly windows. When Below the reliability lower limit , Not lower than the high probability threshold , Below the continuous consistency lower bound ,and Below the lower limit of sudden abnormality At that time, Set to 1 in all cases; otherwise set to 0. As a continuous implementation, the deviations corresponding to the four conditions can also be normalized and multiplied together to obtain... Between Thus, if a real emergency also has obvious acoustic anomalies, it will not be directly suppressed by isolated evidence simply because a single window appears.

[0135] Among them, the acoustic reliability factor is used to adjust the credibility of the current model probability; the continuity consistency term is used to enhance the evidence of the same high-risk emotions that recurs in multiple consecutive windows; the sudden acoustic anomaly term is used to preserve the rapid triggering ability of short high-risk events such as screaming, calling for help, and sudden high-energy human voices; and the low reliability isolated evidence penalty term is used to suppress occasional high-risk results that only occur in a single low reliability window.

[0136] Through the above compensation, momentary disturbances such as robot turning, motor starting, wind noise, or broadcasting are less likely to directly form evidence of high-level risks, while maintaining a response to real, continuous risks and sudden risks.

[0137] S7. Calculate the streaming dynamic risk value

[0138] Calculate the current dynamic risk value based on the window-level risk evidence corresponding to the current short-time audio window and the dynamic risk value corresponding to the previous short-time audio window. :

[0139]

[0140] Among them, the risk decay coefficient for:

[0141]

[0142] In the formula, This is the dynamic risk value corresponding to the previous short audio window; The time interval between adjacent risk update times; It is the risk decay time constant, which can be adjusted according to the robot's location, the current time period, and the type of inspection task; Risk weights for different high-risk emotion categories; This indicates an upward trend in risk. For sudden event transitions corresponding to screams, cries for help, or sudden high-energy human voices; For continuous normal voice or background noise, a safety release item is provided. , , This is the corresponding adjustment coefficient.

[0143] To obtain the three intermediate quantities mentioned above, we first define the instantaneous aggregated risk evidence for the current window. . According to recent Each window Changes are determined. Statistics are compiled within the specified window. Compared to the positive increment of the previous window and the number of consecutive increases, when the number of consecutive increases reaches a preset number... At that time, the normalized mean of the positive increment is used as Not achieved When Set to 0. Therefore, a single fluctuation will not constitute a trend enhancement, while evidence of a continuously rising risk can increase. .

[0144] Used for rapid jumps in sudden, high-risk events. Assume... For the set of sudden sensitive categories corresponding to screams, cries for help, and sudden high-energy human voices, when there are make Reaching the probability threshold of sudden occurrence and Reaching the threshold of sudden acoustic anomalies hour, Desirable The normalized value; when there is no category that satisfies the above conditions, .thus, It also requires both model category evidence and sudden acoustic evidence, avoiding reliance on a single high probability or a single high energy.

[0145] Used to release historical risks based on continuous security evidence. When normal or non-risk speech probability... continuous The number of windows is not less than the safety probability threshold. And the acoustic reliability factor of the corresponding window is not lower than hour, Take the above window and The average normalized value of the product; when any condition is not met Set to 0. Safe release is only initiated after continuous, credible, and valid evidence has been presented.

[0146] Dynamic risk recursion is set at the first startup The value is also reset to 0 when a new inspection task begins, when a risk is manually confirmed to be resolved, or when an explicit risk status is cleared. After each iteration, the value can be... Cut off to a preset risk range; in this embodiment, normalization is preferred. This allows for direct comparison with subsequent dynamic risk thresholds.

[0147] As the inspection mission continued, the risk from the previous moment passed... The risk level gradually decreases over time; continuous high-risk evidence accumulates through window-level risk evidence, maintaining or increasing the risk level; when the risk shows a continuous increasing trend, the current dynamic risk is increased through the trend term; when short, high-risk acoustic events such as screams, cries for help, or sudden high-energy human voices are detected, the risk is rapidly increased through the sudden event transition term; when the system continuously detects normal speech or non-risk background noise, the existing risk is reduced through the safety release term.

[0148] Therefore, this dynamic risk value is not the classification result of a single window, but a risk status that is continuously updated over time during continuous inspections, and can simultaneously describe the emergence, persistence, enhancement and decline of risk.

[0149] S8. Dynamically adjust risk thresholds and determine candidate alarm levels.

[0150] Pre-set the first basic risk threshold Second basic risk threshold and the third basic risk threshold These correspond to the attention, warning, and emergency levels, respectively.

[0151] The basic risk threshold is dynamically adjusted based on the current ambient noise, the robot's location, and the current time period.

[0152]

[0153] in, This is the current noise penalty amount. This represents the current location's risk level. The risk level for the current period is normalized to [value]. ; , , This is a non-negative adjustment parameter. The stronger the noise, the better. The larger the value, the higher the corresponding dynamic threshold, in order to reduce false triggering in noisy environments; the higher the risk at the current location or during the current time period, the better. or The larger the value and the lower the corresponding dynamic threshold, the higher the alarm sensitivity for high-risk locations or high-risk periods. can be The result is obtained by combining the non-speech noise floor and the robot's self-noise normalization value; It can be obtained from regional risk level, historical effective risk event density, or manual calibration results; Risk levels can be obtained from nighttime, periods with few personnel, or preset key inspection periods. Figure 4 The dynamic threshold in this context uses the same variable meaning and positive / negative adjustment direction.

[0154] When making dynamic adjustments, three temporary thresholds can be calculated first, and then truncated to... And apply monotonic projection and minimum interval constraints to the three temporary thresholds. This yields the final dynamic threshold, thus ensuring that the condition is always met. And the interval between adjacent thresholds is not less than .

[0155] Dynamic risk value Compare with dynamic risk thresholds: when At that time, the candidate alarm level is 0, which is normal; when At that time, the candidate alarm level is Level 1 (Concern); when At that time, the candidate alarm level is Level 2 warning; when Alternatively, if the current short-term audio window meets the preset conditions for a sudden high-risk situation, the candidate alarm level is Level 3 Emergency.

[0156] Among these, the preferred method for triggering sudden high-risk conditions is the dual-evidence trigger rule. ,in For the set of sudden sensitive categories corresponding to screams, cries for help, and sudden high-energy human voices, when the following conditions are met... and or satisfy and If so, it is determined that the current short-term audio window meets the preset conditions for sudden high-risk events. For the probability threshold of sudden risk categories, For sudden acoustic anomaly threshold, For sudden event transition threshold, Develop a confidence threshold for voice activity detection during emergencies. This represents the lower limit of acoustic reliability.

[0157] When acoustic reliability factor Below the reliability lower limit In this case, bypassing based solely on a single high probability is not allowed. Instead, at least one of the following anomalies must be met simultaneously: short-time energy transition and spectral flux, pitch change rate, or screaming index, to reduce the probability of low-reliability noise triggering a Level 3 emergency alarm. Candidate Level 3 emergency alarms that meet the sudden high-risk conditions are entered into the emergency bypass of S9; Level 1 and Level 2 candidate alarms are still processed according to the continuous window stabilization rules of S9.

[0158] S9. Perform streaming alarm stabilization processing.

[0159] The candidate alarm levels obtained by S8 are stabilized by streaming.

[0160] For candidate level 1 attention and candidate level 2 alert, when the corresponding candidate alert level is consecutive The audio value remains within a short audio window, or the corresponding dynamic risk value remains within a continuous period. When the alarm level shows an upward trend within a short audio window, the corresponding candidate alarm is identified, and the final alarm level is determined. .in, The number of alarm stabilization windows is a positive integer greater than or equal to 2, which can be preset according to the window step size, the expected alarm confirmation time, and the inspection scenario.

[0161] For voice events that meet the conditions for sudden high-risk events, such as screams, calls for help, or sudden high-energy human voices, the above continuous window waiting conditions can be skipped, and the candidate level 3 emergency alarm can be directly determined as the final level 3 emergency alarm, or the corresponding voice event can be sent to the manual review queue.

[0162] Therefore, for persistent risks such as arguments, crying, and screaming in fear, a stable alarm is only generated after continuous risk evidence meets the requirements, which can reduce the repeated alarms caused by single-window probability fluctuations; for short-duration risks such as screaming, calling for help, and sudden high-energy human voices, the emergency response will not be significantly delayed due to the ordinary continuous confirmation mechanism.

[0163] S10. Generate alarm records and execute robot and platform linkage.

[0164] Based on the final alarm level Generate alarm records. The alarm records shall include at least the alarm number, robot number, timestamp, location coordinates, area name, risk level, dominant risk category, model confidence level, acoustic reliability factor, risk curve summary, audio evidence segment index, and robot motion status.

[0165] Based on the final alarm level, risk handling information is sent to the inspection platform and / or security terminal, and the robot is controlled to perform actions such as approaching, stopping, turning, camera evidence collection, voice reminders, or maintaining a safe distance, depending on the alarm level.

[0166] When the communication network is available, the alarm summary and necessary audio evidence segments are uploaded to the inspection platform; when the network is unavailable, the corresponding data is cached locally on the robot and the robot body alarms continue to be executed, thereby ensuring continuous inspection capability in weak network or network outage environments.

[0167] III. Experimental Verification

[0168] To verify the technical effectiveness of the above method in a park inspection voice risk alarm scenario, tests were conducted using a park acoustic scenario, robot self-noise playback, and edge inference processes. The tests employed the same short-time audio window, reliability compensation, and streaming alarm logic as the aforementioned embodiments.

[0169] 1. Validation equipment and samples

[0170] The test inspection robot is equipped with a single or four-microphone array, an edge computing unit, a positioning module, a motion control system, and a wireless communication module.

[0171] In this verification, the audio sampling rate was set to 16kHz, the short audio window length was set to 1.0s, and the window step size was set to 0.25s.

[0172] The test route covers park roads, building lobbies, underground parking lots, equipment room perimeters, green belts, night patrol routes, densely populated areas, and open, far-field areas.

[0173] The audio samples included normal conversations, background broadcasts, pedestrian noise, vehicle noise, wind noise, robot self-noise, as well as arguments, crying, fearful shouts, screams, calls for help, and urgent requests for assistance.

[0174] The robot's operating states include stationary, low-speed straight movement, acceleration, deceleration, turning, crossing uneven surfaces, approaching noise sources, and moving away from speakers. Simultaneously, the robot records motion speed, angular velocity, IMU vibration, motor speed, position, and timestamps.

[0175] The continuous playback test lasted approximately 10 hours, during which 1200 audio segments were constructed or extracted, including 240 high-risk speech events and 960 normal speech and background noise segments. The speaking distance was approximately 2–8 meters, and the equivalent signal-to-noise ratio coverage was [not specified]. .

[0176] 2. Comparison Methods and Evaluation Indicators

[0177] Set up the following five methods:

[0178] Method A: ASR transcription plus text sentiment or keyword analysis;

[0179] Method B: Single-window speech emotion recognition model with fixed threshold alarm;

[0180] Method C: End-to-end acoustic emotion risk model, without using contextual reliability compensation;

[0181] Method D: End-to-end acoustic emotion risk model with contextual reliability compensation, but without using streaming risk accumulation;

[0182] Method E: The complete method in this embodiment, namely end-to-end model, context reliability compensation, dynamic risk accumulation and multi-level alarm.

[0183] Evaluation metrics include accuracy, recall, F1 score, false positive rate, false negative rate, average alarm latency, emergency response time, model size, and single-window inference time.

[0184] The false alarm rate is calculated based on the proportion of normal samples or non-risk background sounds that are output as risk alarms of level 1 or above; the false negative rate is calculated based on the proportion of high-risk samples that do not trigger warnings of level 2 or above or emergency alarms of level 3 within the effective time window; the emergency response time is the time from the start of a short high-risk event such as screaming or calling for help to the output of a level 3 emergency alarm or entry into the manual review queue.

[0185] 3. Risk identification results of different methods

[0186] Table 1 Comparison results of different methods in the voice risk recognition task of park inspection

[0187]

[0188] As shown in Table 1, compared with method C which only uses an end-to-end acoustic emotion risk model, method D, which incorporates contextual reliability compensation, has improved accuracy, recall, and F1 score. The false alarm rate decreased from 9.3% to 5.7%, indicating that reliability compensation for window-level risk evidence based on the robot's actual acquisition conditions can reduce false triggering caused by low-reliability audio windows.

[0189] After further incorporating streaming risk accumulation and multi-level alarm mechanisms to form a complete method E, the F1 score increased to 91.5%, the false alarm rate decreased to 3.5%, and the false negative rate decreased to 8.4%, indicating that cross-window risk status can further improve the stability of judgment of continuous risk events.

[0190] 4. Real-time performance and edge deployment testing

[0191] Table 2 Real-time performance and edge deployment metrics for different methods

[0192]

[0193] The average alarm latency of method E is 0.47s, which is significantly lower than that of method A (2.86s). The model size after INT8 quantization is approximately 4.5MB, and the single-window inference time is approximately 25.1ms, which is lower than the 0.25s window step size used in this embodiment. Therefore, the edge inference processing of the current window can be completed before the next short audio window arrives, meeting the continuous streaming operation requirements of the inspection robot.

[0194] 5. Ablation Experiment of Key Modules

[0195] To further analyze the contribution of the three components—contextual reliability compensation, streaming risk accumulation, and sudden event transition—to the technical effect, the following ablation experiment was set up.

[0196] Table 3 Ablation Experiment Results of Key Modules

[0197]

[0198] As shown in Groups 1 and 2, when context reliability compensation is enabled under otherwise basically the same conditions, the F1 score increases from 85.3% to 88.1%, and the false alarm rate decreases from 9.3% to 5.7%, indicating that distinguishing and compensating for window-level risk evidence under different acquisition conditions can effectively suppress low-reliability isolated evidence.

[0199] As shown in Groups 2 and 3, after further enabling streaming risk accumulation, the F1 value increased from 88.1% to 90.4%, and the false alarm rate further decreased to 4.2%, indicating that using continuous audio windows to form dynamic risk status helps to improve the stability of continuous risk alarms.

[0200] Since conventional streaming cytometry accumulation requires a certain amount of time to form continuous evidence, the burst event response time for Group 3 is 0.82s. Therefore, this embodiment further introduces a burst event transition mechanism. As can be seen from Groups 3 and 4, after enabling the burst transition, the burst event response time is reduced from 0.82s to 0.38s, while the F1 score is further increased to 91.5%, and the false alarm rate is reduced to 3.5%.

[0201] This demonstrates that the streaming stabilization mechanism and the sudden event transition are used to improve the stability of continuous risk warnings and the timeliness of short-term high-risk response, respectively.

[0202] 6. Testing in different inspection scenarios

[0203] To verify the adaptability of the complete method to different acoustic environments, further tests were conducted in various real-world inspection scenarios.

[0204] Table 4. Test results of the complete method in different inspection scenarios.

[0205]

[0206] As shown in Table 4, this embodiment can maintain a high risk event recall rate in different environments such as park roads, building lobbies, underground parking lots, equipment room surroundings, and night patrol routes.

[0207] Even around the equipment room Even in low signal-to-noise ratio environments of ~5dB, the recall rate still reached 87.5%, indicating that the combined use of environmental noise reliability, robot self-noise reliability, VAD reliability, and historical trend information can enhance the method's adaptability to complex inspection acoustic conditions.

[0208] IV. Explanation of Implementation Results

[0209] Based on the above implementation process and verification results, this embodiment does not simply use the model classification probability of a single short-term audio window to directly output alarms. Instead, it forms the following continuous processing relationship: short-term audio risk identification → context reliability modeling → window-level risk evidence compensation → cross-window dynamic risk accumulation → dynamic threshold candidate alarms → streaming stabilization and sudden bypass → final alarm and robot linkage.

[0210] Among them, the acoustic reliability factor is used to address the issue of varying credibility of audio evidence caused by changes in robot motion state and environment; the continuous risk state is used to express the process of risk appearing, persisting, increasing, and diminishing over time; and the sudden event transition and emergency alarm bypass are used to avoid delaying alarms for short, high-risk events such as screams and calls for help by the ordinary continuous window confirmation mechanism.

[0211] According to the verification data, the complete method achieved an F1 score of 91.5%, a false alarm rate of 3.5%, a false negative rate of 8.4%, an average alarm latency of 0.47s, and a sudden event response time of 0.38s. The model size after INT8 quantization is approximately 4.5MB, and the single-window inference time is approximately 25.1ms, which can meet the continuous operation requirements of the inspection robot at the edge.

[0212] Example 2:

[0213] A context-compensated voice risk alarm system for inspection robots includes:

[0214] The data acquisition module is used to continuously acquire audio signals around the inspection robot and obtain robot context data corresponding to the audio signals, and align the audio signals and robot context data according to a unified timestamp.

[0215] The audio processing module is used to preprocess the audio signal and divide it into continuous short-time audio windows according to a preset window length and window step size, and extract the acoustic features corresponding to each short-time audio window.

[0216] The risk identification module is used to input the short-time audio window or its corresponding acoustic features into a lightweight end-to-end speech emotion risk identification model to obtain the probability of the emotion risk category corresponding to each short-time audio window.

[0217] The reliability modeling module is used to construct a context reliability vector based on the environmental information, robot motion state, position and time information and historical risk trend information corresponding to the current short-time audio window, and to determine the acoustic reliability factor of the current short-time audio window based on the context reliability vector.

[0218] The evidence compensation module is used to compensate the emotional risk evidence of the current short audio window based on the acoustic reliability factor, the probability of the emotional risk category, the continuity and consistency of similar emotions, sudden acoustic anomalies, and the situation of low-reliability isolated evidence, so as to obtain the compensated window-level risk evidence.

[0219] The dynamic risk calculation module is used to attenuate the dynamic risk value based on the window-level risk evidence and the dynamic risk value corresponding to the previous short audio window, and determine the dynamic risk value corresponding to the current short audio window by combining the window-level risk evidence, risk upward trend, sudden event transition and safe release status.

[0220] The candidate alarm determination module is used to dynamically adjust the preset basic risk threshold based on the current environmental noise, the robot's location, and the current time period, compare the dynamic risk value with the adjusted dynamic risk threshold, and determine the candidate alarm level corresponding to the current short-time audio window.

[0221] The alarm processing module is used to perform streaming stabilization processing on candidate alarm levels and dynamic risk values ​​corresponding to multiple consecutive short-term audio windows, determine the final alarm level, generate alarm records based on the final alarm level, and perform linkage with robots and / or inspection platforms.

[0222] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A voice risk alarm method for inspection robots based on context compensation, characterized in that, include: Continuously collect audio signals around the inspection robot and obtain robot context data corresponding to the audio signals. Align the audio signals and robot context data according to a unified timestamp. The audio signal is preprocessed and divided into continuous short-time audio windows according to a preset window length and window step size, and the acoustic features corresponding to each short-time audio window are extracted. Input the short-time audio window or its corresponding acoustic features into a lightweight end-to-end speech emotion risk recognition model to obtain the probability of the emotion risk category corresponding to each short-time audio window. A context reliability vector is constructed based on the environmental information, robot motion state, position and time information, and historical risk trend information corresponding to the current short-term audio window, and the acoustic reliability factor of the current short-term audio window is determined based on the context reliability vector. Based on the acoustic reliability factor, the probability of the emotional risk category, the continuity and consistency of similar emotions, sudden acoustic anomalies, and the situation of low-reliability isolated evidence, the emotional risk evidence of the current short audio window is compensated to obtain compensated window-level risk evidence. Based on the window-level risk evidence and the dynamic risk value corresponding to the previous short audio window, the dynamic risk value is attenuated, and combined with the window-level risk evidence, risk upward trend, sudden event transition and safe release status, the dynamic risk value corresponding to the current short audio window is determined. The preset basic risk threshold is dynamically adjusted based on the current environmental noise, the robot's location, and the current time period. The dynamic risk value is compared with the adjusted dynamic risk threshold to determine the candidate alarm level corresponding to the current short-term audio window. The candidate alarm levels and dynamic risk values ​​corresponding to multiple consecutive short-term audio windows are subjected to streaming stabilization processing to determine the final alarm level. Based on the final alarm level, alarm records are generated and the robot and / or inspection platform are linked.

2. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, The robot context data includes motion speed, angular velocity, IMU vibration, motor speed, wheel speed, navigation status, current position, region category, and current time period; The preprocessing includes at least one of resampling, gain normalization, pre-emphasis, bandpass filtering, noise reduction or echo suppression; The acoustic features include VAD confidence, short-time energy, spectral centroid, spectral flux, zero-crossing rate, fundamental frequency, pitch change rate, harmonic-to-noise ratio, screaming index, and Log-Mel spectrum.

3. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, The lightweight end-to-end voice emotion risk recognition model includes an acoustic feature front-end, a time-frequency encoder, a temporal aggregation layer, and a risk classification head. The time-frequency encoder employs one or more combinations of depthwise separable convolution, lightweight convolutional neural network, TCN, GRU, and Tiny Transformer.

4. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, The context reliability vector includes: Environmental noise reliability characteristics determined based on non-speech segment noise floor, signal-to-noise ratio, background sound type, and reverberation intensity; The robot's self-noise reliability characteristics are determined based on motor speed, wheel speed, fan status, chassis vibration, movement speed, angular velocity, and navigation actions. The reliability characteristics of VAD are determined based on VAD confidence, speech duration, the proportion of human voice frequency band energy, and the probability of non-speech events. Motion state reliability characteristics are determined based on at least one of the robot's motion states, including stationary, low-speed uniform motion, turning, accelerating, obstacle crossing, and approaching the equipment room. Location time reliability characteristics determined based on region type, historical risk areas, current time period, and peak population time period; And the historical trend reliability characteristics determined based on the mean, variance, number of consecutive increases, continuity of similar emotions, and historical risk level change rate of high-risk probabilities corresponding to multiple processed short audio windows before the current short audio window.

5. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, Based on the signal-to-noise ratio, VAD confidence, robot self-noise normalization value, motion stability, location area weight, time period weight, and historical evidence consistency corresponding to the current short-time audio window, the parameters obtained by pre-training or calibration are combined and mapped through the Sigmoid function to obtain the acoustic reliability factor with a value between 0 and 1. The acoustic reliability factor is used to characterize the reliability of acoustic evidence in the current short-time audio window under the corresponding environmental state and robot operating state; the motion stability is determined by a combination of velocity change rate, angular velocity and IMU vibration normalization value; the position region weight is determined by the region context calibration value corresponding to the current position; the time period weight is determined by the time period context calibration value corresponding to the current time period; and the historical evidence consistency is jointly determined by the comprehensive high-risk probability variance of the most recent multiple short-time audio windows and the proportion of consecutive occurrences of the current dominant high-risk category. All of the above intermediate quantities are mapped to 0 to 1.

6. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, The process of compensating for the emotional risk evidence in the current short-term audio window to obtain compensated window-level risk evidence includes: For each high-risk emotion category, basic risk evidence is determined based on the acoustic reliability factor and the corresponding emotion risk category probability, and combined with: A continuity consistency term representing the occurrence of a high-risk emotion consecutively in multiple recent short audio windows; A sudden acoustic anomaly characterizing sudden acoustic changes in the current short-term audio window, wherein the sudden acoustic anomaly is determined based on at least two of the following: short-term energy change, spectral centroid change, spectral flux, pitch change rate, and screaming index; And the penalty item for low-reliability isolated evidence that represents the probability of high-risk emotion categories only appears in low-reliability isolated short-time audio windows; The basic risk evidence is enhanced or suppressed, and the processing result is limited to a preset risk evidence value range to obtain window-level risk evidence corresponding to each high-risk emotion category. Among them, the continuity consistency term of the same emotion is determined according to the proportion of windows in which the probability of the corresponding category in the most recent short-time audio windows reaches the consistency threshold. The sudden acoustic anomaly term is determined according to at least two of the following: short-time energy change, spectral centroid change, spectral flux, pitch change rate and screaming index. The low reliability isolated evidence penalty term is determined according to the joint conditions that the acoustic reliability factor is lower than the reliability lower limit, the current category probability is higher than the high probability threshold, the adjacent windows lack the same continuous evidence, and the sudden acoustic anomaly term is lower than the sudden anomaly lower limit.

7. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, Determining the dynamic risk value corresponding to the current short-time audio window includes: The degree of risk decay is determined based on the time interval between adjacent risk update times and the risk decay time constant, and the dynamic risk value corresponding to the previous short audio window is decayed accordingly. Based on the risk weights corresponding to different high-risk emotion categories, the risk evidence at each window level corresponding to the current short audio window is accumulated; The risk upward trend is determined based on the risk changes over multiple consecutive short audio windows, and the risk upward process is enhanced. When a sudden high-risk event such as screaming, calling for help, or a sudden high-energy human voice is detected, the current risk is amplified by a jump. When normal speech or non-risk background noise is continuously detected, historical risks are safely released. The dynamic risk value is determined based on attenuated historical risk, accumulated window-level risk evidence, risk escalation trend, sudden event transitions, and safe release status. The risk escalation trend is determined by the positive increment of weighted risk evidence from the most recent multiple windows and the number of consecutive increases. Sudden event transitions are determined by the probability of the risk category corresponding to screams, cries for help, or sudden high-energy human voices, combined with sudden acoustic anomalies. For sudden high-energy human voices, the value is determined based on speech activity detection results and sudden acoustic anomalies. Safe release is determined by the probability of normal or non-risk speech from multiple consecutive windows and the acoustic reliability factor. The initial risk value is set to 0 when the dynamic risk recursion is first initiated.

8. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, The determination of candidate alarm levels includes: Pre-set a first basic risk threshold, a second basic risk threshold, and a third basic risk threshold, respectively, corresponding to the attention level, the warning level, and the emergency level; Based on the noise penalty corresponding to the current noise conditions, the position risk corresponding to the robot's current position, and the time period risk corresponding to the current time period, the first basic risk threshold, the second basic risk threshold, and the third basic risk threshold are dynamically adjusted to obtain the first dynamic risk threshold, the second dynamic risk threshold, and the third dynamic risk threshold. Among them, the noise penalty is used to increase the corresponding basic risk threshold, and the position risk and time period risk are used to decrease the corresponding basic risk threshold. Monotonic constraints are applied to the three adjusted dynamic risk thresholds to keep the first dynamic risk threshold less than the second dynamic risk threshold and the second dynamic risk threshold less than the third dynamic risk threshold. When the dynamic risk value is lower than the first dynamic risk threshold, the candidate alarm level is determined to be level 0 (normal). When the dynamic risk value is not lower than the first dynamic risk threshold and is lower than the second dynamic risk threshold, the candidate alarm level is determined to be Level 1 concern; When the dynamic risk value is not lower than the second dynamic risk threshold and is lower than the third dynamic risk threshold, the candidate alarm level is determined to be a Level 2 warning. When the dynamic risk value is not lower than the third dynamic risk threshold or the current short-term audio window meets the preset sudden high-risk conditions, the candidate alarm level is determined to be Level 3 emergency; the preset sudden high-risk conditions include at least: the risk category probability corresponding to screaming, calling for help or sudden high-energy human voice reaches the sudden probability threshold and the sudden acoustic abnormality item reaches the sudden abnormality threshold, or the sudden event transition item reaches the preset transition threshold.

9. The method for voice risk alarm of inspection robot based on context compensation according to claim 1, characterized in that, The alarm record includes alarm number, robot number, timestamp, location coordinates, area name, risk level, dominant risk category, model confidence level, acoustic reliability factor, risk curve summary, audio evidence segment index, and robot motion status. Based on the final alarm level, the inspection robot is controlled to perform at least one of the following operations: docking, turning, camera evidence collection, voice reminder, approaching the risk site or maintaining a safe distance, and risk handling information is sent to the inspection platform and / or security terminal. When the communication network is available, the alarm summary and audio evidence fragments are uploaded to the inspection platform. When the communication network is unavailable, the corresponding alarm records and audio evidence fragments are cached locally on the inspection robot, and the robot body alarms continue to be executed.

10. A voice risk alarm system for inspection robots based on context compensation, characterized in that, include: The data acquisition module is used to continuously acquire audio signals around the inspection robot and obtain robot context data corresponding to the audio signals, and align the audio signals and robot context data according to a unified timestamp. The audio processing module is used to preprocess the audio signal and divide it into continuous short-time audio windows according to a preset window length and window step size, and extract the acoustic features corresponding to each short-time audio window. The risk identification module is used to input the short-time audio window or its corresponding acoustic features into a lightweight end-to-end speech emotion risk identification model to obtain the probability of the emotion risk category corresponding to each short-time audio window. The reliability modeling module is used to construct a context reliability vector based on the environmental information, robot motion state, position and time information and historical risk trend information corresponding to the current short-time audio window, and to determine the acoustic reliability factor of the current short-time audio window based on the context reliability vector. The evidence compensation module is used to compensate the emotional risk evidence of the current short audio window based on the acoustic reliability factor, the probability of the emotional risk category, the continuity and consistency of similar emotions, sudden acoustic anomalies, and the situation of low-reliability isolated evidence, so as to obtain the compensated window-level risk evidence. The dynamic risk calculation module is used to attenuate the dynamic risk value based on the window-level risk evidence and the dynamic risk value corresponding to the previous short audio window, and determine the dynamic risk value corresponding to the current short audio window by combining the window-level risk evidence, risk upward trend, sudden event transition and safe release status. The candidate alarm determination module is used to dynamically adjust the preset basic risk threshold based on the current environmental noise, the robot's location, and the current time period, compare the dynamic risk value with the adjusted dynamic risk threshold, and determine the candidate alarm level corresponding to the current short-time audio window. The alarm processing module is used to perform streaming stabilization processing on candidate alarm levels and dynamic risk values ​​corresponding to multiple consecutive short-term audio windows, determine the final alarm level, generate alarm records based on the final alarm level, and perform linkage with robots and / or inspection platforms.