Heterogeneous multi-engine causal fusion method and system for streaming voice activity detection
By introducing a unified time step and a learning-based fusion model into streaming speech activity detection, the problem of asynchronous output from multiple engines is solved, achieving low-latency speech boundary determination and stable output, thus adapting to the performance requirements of different application scenarios.
Patent Information
- Application Number
- CN202611250530.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-12-01
AI Technical Summary
Existing speech activity detection solutions struggle to time-align multiple speech activity detection engines under low-latency conditions in streaming applications, leading to increased processing latency and inconsistent fusion results, and failing to effectively distinguish speech start and end boundaries.
A heterogeneous multi-engine causal fusion method for streaming speech activity detection is adopted. By generating and maintaining engine identifiers, probability update indicators, hold duration and validity flags through a unified time step, a learning-based fusion model and a global post-processing state machine are used to stably output speech start and end events.
It achieves low-latency time alignment of multi-engine probabilities, reduces waiting and data misalignment caused by asynchronous output, improves the accuracy and stability of voice boundary determination, and adapts to the performance of different application modes.
Smart Images

Figure CN123201719A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of speech signal processing and real-time audio detection technology, specifically to a heterogeneous multi-engine causal fusion method for streaming speech activity detection, a fusion model training and post-processing parameter determination method, a system, an electronic device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] Voice activity detection is used to determine whether the current audio in a continuous audio stream contains valid speech and to identify the start and end positions of speech segments. The results are typically used to control audio segmentation in automatic speech recognition, uplink transmission in voice communication links, the activation and deactivation of voice enhancement processing, and the power consumption of terminal devices. For streaming applications, audio arrives continuously during acquisition, and the detection system needs to continuously output speech probabilities or speech states within a limited processing delay. Therefore, in addition to frame-level detection accuracy, it is also necessary to consider speech start response, speech end release, short speech recall, noise-induced false triggering, and endpoint time consistency.
[0003] Existing speech activity detection schemes typically improve detection performance by addressing one aspect: acoustic features, detection models, or post-processing rules. For example, the technical solution published in CN111696580A, entitled "A Speech Detection Method, Apparatus, Electronic Device, and Storage Medium," divides the audio to be tested into frames according to different frame lengths, extracts acoustic features including multi-resolution cochlear map features, and uses a deep neural network to output probability values corresponding to the audio frames. This scheme can improve detection capabilities under low signal-to-noise ratio conditions by utilizing acoustic information at different time scales, but its processing focus is on fusing multi-resolution input features from a single speech detection model, without addressing the probability synchronization of multiple independent speech activity detection engines at different inference steps and output times. This scheme also allows for... Frame to the The average probability of each frame determines the i-th frame; when It requires obtaining the probability of subsequent frames, and is not entirely suitable for low-latency causal processing that strictly does not access future information.
[0004] The technical solution authorized by CN111370014B and entitled "System and Method for Multi-Stream Target-Speech Detection and Channel Fusion" generates multiple target streams using different enhancement or separation criteria for multi-channel audio. Multiple target speech detectors determine the quality or target speech presence confidence of each enhanced target stream and generate weights accordingly. These weights are then applied to the multiple enhanced target streams to form an enhanced output signal. This solution embodies the concepts of multi-stream detection and dynamic weighting, but its fusion object primarily consists of audio streams obtained through different enhancement processes. Its goal is to output a combined enhanced audio signal, rather than unifying the probability results of multiple speech activity detection engines with different inference steps and output times onto the same streaming timeline.
[0005] Furthermore, existing research has proposed feature-level or decision-level fusion of outputs from different acoustic features or classifiers in speech activity detection. Such fusions can leverage the complementarity between different features or classifiers; however, using simple averaging, fixed weights, or majority voting typically fails to dynamically adjust the contributions of different information sources based on the current acoustic environment, the response state of each detector, and the freshness of the detection results. Majority voting also quantifies continuous probabilities into binary results before fusion, thus losing information such as probability amplitude, direction of change, and divergence between detectors.
[0006] In real-time streaming scenarios, different speech activity detection engines may employ different model structures, input windows, inference steps, and thread scheduling methods, thus failing to guarantee the simultaneous generation of new probabilities at each unified time step. If fusion is performed only after all engines have completed their current inference, the overall processing latency is easily limited by the engine with the largest inference step or the slowest running engine. If the most recent probability from each engine is directly used, the same probability from a slower engine may be used consecutively. When an engine experiences inference timeout, output anomalies, pauses operation, or resource degradation, its long-held historical probabilities may continue to participate in fusion. Therefore, if an engine has not generated a new probability at the current unified time step, the current processing needs to be completed without waiting for its new output, while simultaneously recording whether the probability has been updated, its duration of retention, and its current valid state to distinguish between real-time evidence, normally retained evidence, and abnormally outdated evidence.
[0007] Existing fusion processes may only use the detection results at the current moment, or only perform fixed smoothing on a few adjacent probabilities, without uniformly representing the historical trends and interrelationships of probabilities across multiple engines. The start of speech typically manifests as multiple probabilities rising at different rates within a short period, while the end of speech and natural pauses may show a slow decrease in probabilities or temporary divergence between engines. Impulse noise such as keyboard tapping and collision sounds may cause some engines to momentarily increase their probabilities while others maintain lower probabilities. Relying solely on a single time step or a fixed threshold is insufficient to fully distinguish these different temporal patterns.
[0008] Regarding endpoint output, if each voice activity detection engine performs threshold judgment, continuous acknowledgment, continuation processing, or start / endpoint compensation separately, and then performs secondary fusion on the binary states or endpoint events generated by each engine, it is easy to form repeated smoothing and repeated acknowledgment, and may lead to conflicts in start / endpoint events, inconsistent boundary positions, and superimposed acknowledgment delays between multiple engines. Although existing combined decision and continuation processing schemes can improve the stability of single decisions, the problem of connecting the asynchronous probabilities of multiple engines with the unified endpoint state still needs to be solved.
[0009] Therefore, a technical solution suitable for low-latency streaming processing is still needed to map multiple speech activity detection engines with different inference characteristics to a continuous unified time axis without accessing future audio frames or future probability outputs; at the same time, describe the update state, retention duration, freshness and effective state of each probability, use the changing trends of current and historical probabilities, aggregate statistics and divergence between engines to form causal temporal features, and stably output speech start events and speech end events through a learning-based fusion model and a single global post-processing state machine. Summary of the Invention
[0010] The technical problem this invention aims to solve is: how to perform low-latency time alignment of multiple speech activity detection engines with different inference steps, output times, probability distributions, and response characteristics in streaming speech activity detection, suppress interference from outdated probabilities and invalid engines, and stably determine the start and end boundaries of speech using causal temporal information of current and historical probabilities. The response characteristics include at least one of the following: start response delay, end release delay, short speech recall rate, noise false trigger rate, and probability fluctuation.
[0011] To address the aforementioned technical problems, this invention provides a heterogeneous multi-engine causal fusion method for streaming speech activity detection, comprising: receiving an input audio stream and generating continuous unified time steps; multiple heterogeneous speech activity detection engines outputting original speech probabilities associated with engine identifiers and unified time step identifiers; when the current unified time step does not generate a new valid probability, using the latest valid probability without waiting for the corresponding engine output; synchronously generating and updating indicators, probability retention duration, probability freshness, and validity flags, and excluding engines that fail due to timeout, numerical anomalies, identifier mismatch, or retention exceeding limits until they generate the next valid output; extracting multidimensional causal temporal features based on current and historical data; performing validity mask normalization using a learning-based fusion model and outputting fused speech probabilities; and outputting speech start events and speech end events using a single global post-processing state machine shared by multiple engines.
[0012] Furthermore, the input audio stream is received in audio data blocks of varying lengths; any remaining audio samples that are less than one unified time step are retained for the next processing; each speech activity detection engine has its own independent input buffer and independently triggers inference when the corresponding input window and inference step conditions are met.
[0013] Furthermore, the plurality of voice activity detection engines includes at least two voice activity detection engines; the functional division of each engine is determined based on at least one of the following measured on the verification data: voice start response delay, voice end release delay, short voice recall rate, noise false trigger rate, and probability fluctuation.
[0014] Furthermore, the time alignment is maintained by the i-th speech activity detection engine to ensure the latest effective probability; when the t-th unified time step generates an effective original speech probability q i,t At that time, with q i,t Update the latest effective probability and determine the aligned probability p i,t If no valid original speech probability is generated, the latest valid probability is determined as p. i,t Late results will not be written back to the unified time step that has been integrated.
[0015] Furthermore, for the i-th voice activity detection engine, an update indicator u is generated at the t-th unified time step. i,t , probability retention time a i,t Probability of freshness h i,t and validity marker e i,t When a new effective probability is generated, and When no new valid probabilities are generated and valid outputs have already been generated, and ;according to Determine the probability of freshness.
[0016] Furthermore, before the first valid output, a preset neutral probability p is used. n Place the entry and set the validity flag and freshness to 0; when a valid original speech probability is generated, set the validity flag to 1; if no inference is triggered normally and the duration is not exceeded, continue the previous valid state; if an output abnormality occurs, the duration is exceeded, or the previous state is invalid, set the validity flag and freshness to 0 and remain invalid until the next valid original speech probability is generated.
[0017] Furthermore, the multidimensional causal time-series features include at least two of the following: current probability and probability state features, causal moving average and probability difference within the historical window, aggregate statistics and divergence of effective engine probabilities, and cross features between different engines.
[0018] Furthermore, let the number of engines be M, the historical window length be W, and the actual window length be... ; Calculate the causal moving average and probability difference based on the current and historical aligned probabilities; form a mask according to the validity flag, and calculate the number of valid engines, the mean probability of valid engines, and the degree of divergence; when the number of valid engines is 0, set the mean and the degree of divergence to 0.
[0019] Furthermore, the multidimensional causal time series features are calculated using a fixed-length circular buffer, which only stores the probability vectors and corresponding state variables of the current unified time step and earlier; when the buffer is full, the oldest historical data is overwritten with newly written data.
[0020] Furthermore, prior to time alignment, probability calibration is performed on the raw speech probabilities newly generated by at least one speech activity detection engine; under independent calibration datasets and with the same evaluation threshold or the same post-processing parameters, the raw speech probabilities are kept unchanged when at least one of the calibrated expected calibration error, negative log-likelihood, or F1 score is worse than the result before calibration.
[0021] Furthermore, the learning-based fusion model outputs the fusion score of each speech activity detection engine. Based on the validity flag, the index score after subtracting the maximum valid score is masked and normalized to obtain the fusion weight of each engine. The aligned probabilities of the valid engines are then weighted and summed to obtain the fused speech probability.
[0022] Furthermore, when all validity flags are 0, the preset mute probability is output; when the state machine is in the mute state, it remains mute; when it is in the voice state, it remains in the voice state for a preset fault tolerance period; if there is still no valid engine after the fault tolerance period, the voice end event or mute confirmation is output.
[0023] Furthermore, the learning-based fusion model is any one of gradient boosting decision trees, random forests, logistic regression models, shallow neural networks, temporal convolutional networks, or lightweight self-attention networks employing causal masks.
[0024] Furthermore, the global post-processing state machine includes a silence state, a voice candidate state, a voice state, and a silence candidate state, and maintains a voice continuous confirmation count and a silence continuous confirmation count, respectively; the voice entry threshold θ1 is greater than the silence exit threshold θ0; the state transition is driven only by the fused voice probability and the count.
[0025] Furthermore, when the fused speech probability is not lower than θ1 for K1 consecutive unified time steps, a speech start event is output and backfilled according to B1; when the fused speech probability is not higher than θ0 for K0 consecutive unified time steps, a speech end candidate is determined, and a speech end event is output after the silence condition is continuously met during the delay period corresponding to B0.
[0026] Furthermore, on validation data that is isolated from the training data and the final test data, the parameters of the learning fusion model and the global post-processing state machine are optimized in stages or alternately. The optimization objective is to maximize the minimum F1 in multiple validation scenarios, or to maximize the average recall under the constraint that the F1 in each validation scenario is not lower than a preset lower limit.
[0027] Furthermore, while keeping the parameters of the learning-based fusion model unchanged, the comprehensive performance balancing parameter group or the recall priority parameter group is invoked according to the application mode.
[0028] This invention also provides a method for training and determining post-processing parameters of a heterogeneous multi-engine fusion model, comprising: acquiring training audio with speech activity annotations; generating training features according to the same unified time step, time alignment rules, validity state update rules, and causal feature extraction rules as online inference; training a learning-oriented fusion model based on the training features and speech activity labels; searching for global post-processing state machine parameters based on the fusion probability on the validation data; and performing a final evaluation using test data that is isolated from both the training and validation data.
[0029] Furthermore, during training, scene-balanced sampling and speech boundary weighting are employed, and the probability of fused speech entering the logarithmic function is truncated with upper and lower limits; the differentiable fusion model is trained end-to-end based on weighted binary cross-entropy; the gradient boosting decision tree or random forest scoring sub-model is trained separately based on a normalized reliability target constructed from the prediction errors of each engine.
[0030] This invention also provides a heterogeneous multi-engine causal fusion system for streaming speech activity detection, including an input buffer module, a multi-engine inference module, a time alignment module, a causal feature extraction module, a learning-based fusion module, and a post-processing module. The time alignment module does not wait for new outputs when no new valid probabilities are generated at the current unified time step of the engines, but instead uses the latest valid probabilities and maintains update, preservation, freshness, and validity states. The causal feature extraction module forms features based only on current and historical data. The learning-based fusion module performs mask normalization based on validity flags and outputs the fused speech probability. The post-processing module outputs speech start and end events through a single global post-processing state machine shared by multiple engines.
[0031] Furthermore, the system selects two or at least three speech activity detection engines based on the actual processing time, running memory, and average power consumption constraints within any unified time step, and selects a learning fusion model that matches the current number of engines and feature dimensions.
[0032] The beneficial effects of this invention are as follows: By establishing a unified time step, multiple speech activity detection engines with different inference steps, output times, and response characteristics are mapped to the same streaming time axis, and a multi-engine probability input with fixed dimensions and clear time correspondence is formed at each unified time step. When a certain engine does not generate a new valid probability in the current unified time step, it does not wait for the engine's new output, but uses its latest valid probability to complete the processing of the current unified time step; late results are not written back to the time steps that have already been completed, thus reducing the waiting, data misalignment, and historical result contamination caused by asynchronous output.
[0033] This invention synchronously maintains and updates the indicator, probability retention duration, probability freshness, and validity flag, enabling the same probability value to be distinguished from its source state. Probabilities retained within the normal inference interval can continue to participate in fusion and undergo soft decay with the retention duration; when inference times out, output is abnormal, flags mismatch, or there is no update for a long time, hard exclusion is performed through the validity flag, and the value remains invalid until the next valid output is generated, preventing abnormal states from automatically re-entering fusion without recovery. Dynamic fusion weights are generated based on multi-engine probabilities, probability state information, and their historical changes; mask normalization first subtracts the maximum valid score, reducing the risk of exponential overflow. Multiple speech activity detection engines share a single global post-processing state machine, uniformly performing hysteresis judgment, continuous confirmation, start-point filling, and end-point delay on the fused speech probabilities, helping to reduce the superposition of confirmation delays and boundary inconsistencies caused by repeated post-processing.
[0034] This invention trains a fusion model according to time alignment, validity state update, and causal feature generation rules consistent with online inference, and determines global post-processing state machine parameters on independent validation data. The final test data is used only for evaluation. By setting a comprehensive performance balancing parameter group and a recall priority parameter group, different application modes can be adapted while keeping the core of the fusion model unchanged. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the overall system architecture of the present invention;
[0036] Figure 2 This is a schematic diagram of the multi-inference step probability time alignment and probability state maintenance of the present invention;
[0037] Figure 3 This is a schematic diagram of causal temporal feature extraction and state feature input according to the present invention;
[0038] Figure 4 This is a schematic diagram of the global post-processing state machine of the present invention;
[0039] Figure 5 This is a schematic diagram of the process for jointly determining the fusion model and post-processing parameters according to the present invention;
[0040] Figure 6 This is a schematic diagram of the module structure of the heterogeneous multi-engine causal fusion system of the present invention;
[0041] Figure 7 This is a schematic diagram illustrating the data processing relationships of a Bluetooth headset as an electronic device carrying the method and system of this invention.
[0042] Reference numerals: Input audio stream 100; Input buffer module 110; Multi-engine inference module 120; First speech activity detection engine 121; Second speech activity detection engine 122; Third speech activity detection engine 123; Original speech probability 124; Time alignment module 130; Latest valid probability 131; Multi-engine probability vector 132; Causal feature extraction module 140; Fixed-length circular buffer 141; Multi-dimensional causal temporal features 142; Learning-based fusion module 150; Learning-based fusion model 151; Fusion speech probability 152; Post-processing module 160; Global post-processing state machine 161; Speech start event 162; Speech end event 163; Joint optimization module 170; Post-processing parameters 171; Electronic device (Bluetooth headset) 180; Audio acquisition unit 181; Processing and storage unit 182; Bluetooth communication unit 183. Detailed Implementation
[0043] The following is combined with Figures 1 to 7 The technical solution of the present invention will be described using three specific embodiments. The three embodiments focus on online input and time alignment, probabilistic fusion and endpoint output, and model training and system deployment, respectively. In the following text, "one implementation" indicates an optional solution within the scope of protection, "this embodiment" indicates a specific embodiment with complete parameters and processing flow, and "for example" indicates an example used to explain the calculation. Unless otherwise specified, the following numerical parameters are only used to illustrate this embodiment and do not constitute a limitation on the scope of protection of the present invention; all calculations at the t-th unified time step only access data obtained at the t-th unified time step and before.
[0044] Combination Figure 1 and Figure 6 The online processing chain in this embodiment sequentially includes an input buffer module 110, a multi-engine inference module 120, a time alignment module 130, and a causal feature extraction module 140. The input audio stream 100 can be provided by a single microphone, a microphone array, a Bluetooth audio interface, or a network audio decoder. The audio format can be a pulse code modulation sampling sequence or other audio representations that can be read in the sampling order after decoding. The input buffer module 110 does not require the upper layer to submit a fixed length of data each time; instead, it appends each received data to a unified input buffer and retrieves it sequentially according to the number of sampling points required at a unified time step.
[0045] Let the audio sampling rate be F.s The duration of the unified time step is ΔT, and the number of sampling points corresponding to each unified time step is N. s This embodiment takes , Therefore, each unified time step contains 160 sampling points. s The unit is Hertz, the unit of ΔT is seconds, and N s This represents the dimensionless number of sampling points. If the product is not an integer, a uniform time step that is divisible by the sampling rate can be chosen, or timestamp accumulation and resampling can be used to maintain consistency over the long term.
[0046] (1)
[0047] For example, in the first call, 350 sample points are input. The input buffer module 110 generates two complete unified time steps and consumes 320 sample points, retaining the remaining 30 sample points. In the second call, another 290 sample points are input, bringing the total buffer size to 320 sample points, and two more unified time steps are generated. This process ensures that audio blocks of any length are continuously mapped to a unified timeline without discarding tail samples that are less than one unified time step. After each unified time step is generated, the new samples for that time step are simultaneously written to the independent input buffers corresponding to each speech activity detection engine.
[0048] The input buffer module 110 also maintains the cumulative sampling point number and the unified time step number. The unified time step starts from... Starting with numbering, the initial sampling point of the t-th unified time step is... ,cover The corresponding half-open time interval; its nominal start time is The interval end time is Even if there is jitter in the arrival time of the upper-level callback, the unified time step still proceeds according to the audio sampling order, instead of directly using the wall clock time of the callback arrival as the voice boundary.
[0049] Each speech activity detection engine has an independent input buffer and inference trigger state. Let L be the input window required for one inference by the i-th engine. i There are 1 sampling point, and the reasoning step between two adjacent inferences is S. i N sampling points; for each unified time step generated, the newly added N s Each sampling point is written to the engine buffer, and inference is triggered when the accumulated available samples meet the input window and inference step conditions. After inference is complete, only S can be removed. i The earliest sample is selected while preserving the window overlap.
[0050] When the duration of a unified time step is not an integer multiple of the inference step size of a particular engine, a phase accumulator can be used to determine the triggering time. The system still processes data step-by-step in 10-millisecond unified time steps. When the inference step size of a particular engine is 16 milliseconds, its new probability is generated only in the unified time steps that satisfy the phase accumulation condition; other unified time steps use the latest valid probability. The accumulator increments by 10 for each unified time step; when the accumulated value reaches 16, an inference is triggered and 16 is subtracted.
[0051] To avoid confusing "no new output should be generated according to the engine's inherent inference step" with "output should have been generated but a timeout or exception occurred," the unified scheduling thread also generates a planned trigger indicator si,t for the i-th voice activity detection engine at the t-th unified time step. If the engine's input window is complete and inference should be initiated at the current unified time step according to the inference step Si or the phase accumulator state, then... ;otherwise The valid update indicator ui,t is set to 1 only if the corresponding inference result is returned before the preset processing deadline of the current unified time step, the unified time step identifier carried by the result matches, and the probability value is valid. Therefore, and This indicates that the update was not planned and is part of the engine's normal multi-rate operation. and This indicates that a valid result was not obtained on time after the plan was triggered, and it needs to be determined as an abnormal missing result by combining timeout, numerical anomaly, or identifier mismatch.
[0052] This can be further used to generate an abnormal missing indicator fi,t. When and Furthermore, if at least one of the following conditions exists: inference timeout, return a non-finite number, probability obviously out of bounds, mismatched uniform time step identifiers, or inference thread fails to submit results before the deadline, let In other cases The planned trigger indicator, the valid update indicator, and the abnormal missing indicator together describe three different semantic levels: "whether an update should be made, whether an update was actually made, and whether failure to update is abnormal." This allows the same aligned probability value to have distinguishable reliability semantics under different source states.
[0053] Both the input buffer and the engine buffer have capacity limits. If the upper-layer input speed exceeds the processing speed for an extended period, the system prioritizes recording the overload state and implementing pre-defined strategies such as frame dropping, reducing the number of engines, or switching to a lightweight model, rather than infinitely expanding the buffers. The aforementioned arbitrary-length input block does not equate to unlimited memory usage; rather, it indicates that the block length for each call does not need to be fixed in advance.
[0054] Multiple speech activity detection engines differ in at least one of the following: model structure, inference step, input acoustic features, training data, or response characteristics. In the three-engine configuration of this embodiment, the first speech activity detection engine 121 employs a lightweight convolutional network, triggering inference once per unified time step to provide a fast onset response; the second speech activity detection engine 122 employs a temporal convolutional network or a feedforward sequence memory network, triggering inference once every two unified time steps to provide high temporal resolution steady-state speech and boundary judgment; the third speech activity detection engine 123 employs a recurrent neural network, triggering inference once every four unified time steps to provide probabilistic smoothing and jitter suppression. A two-engine configuration can retain a fast response engine and a probabilistic smoothing engine, while a configuration with at least three engines further introduces a high temporal resolution boundary engine.
[0055] The following is an example configuration of a heterogeneous speech activity detection engine:
[0056] Engine: First Engine 121; Example Structure: Lightweight Convolutional Network; Inference Step: 1 uniform time step; Main Function: Quickly captures the probability increase of weak onset sounds and short speech sounds.
[0057] Engine: Second Engine 122; Example Structure: Temporal Convolutional Network or Feedforward Sequential Memory Network; Inference Step: 2 unified time steps; Main Function: Provides high temporal resolution steady-state speech and boundary judgment.
[0058] Engine: Third Engine 123; Example Structure: Recurrent Neural Network; Inference Steps: 4 unified time steps; Main Function: Probability smoothing and jitter suppression using longer context.
[0059] The functional division in the above example configuration is not determined by the model names themselves, but rather by measuring the onset response delay, endpoint release delay, short speech recall, noise false trigger rate, and probability variance of each engine using validation data. For example, the first engine, which has the fastest probability increase within two uniform time steps after a weak onset, can be selected as the fast-response engine; the third engine, with the lowest probability variance and insensitivity to short impulse noise, can be selected as the smoothing engine. This asymmetric division of labor makes the multi-engine combination verifiable complementarity.
[0060] In the minimum two-engine configuration, the first engine 121 and the third engine 123 can be retained; in the three-engine configuration, the second engine 122 can be added; in servers or conferencing terminals with more computing power, a fourth engine can also be added for training on far-field speech, music interference, or specific languages. When the number of engines M increases, the dimensions of the time alignment vector, state vector, and fusion score expand synchronously, but the unified time step, causal window, and state machine processing method remain unchanged.
[0061] Different engines can use different acoustic features. For example, the first engine uses logarithmic energy and low-order spectral features, the second engine uses Mel frequency cepstral coefficients, and the third engine directly uses waveforms or log-Mel spectra. The input buffer module can share resampling and pre-emphasis results, or it can perform feature extraction separately for each engine. Regardless of the method used, the original speech probability 124 must be accompanied by a corresponding unified time step and engine identifier to avoid writing incorrect time positions when the asynchronous thread returns results.
[0062] If each engine contains probabilistic smoothing or model states, these internal calculations can be retained; however, the binary events of speech start or end generated within the engine are not directly sent to the final output. The system only uses continuous raw probabilities or calibrated probabilities to enter unified fusion, enabling the global post-processing state machine to complete hysteresis, continuous acknowledgment, and boundary compensation at a single location.
[0063] Combination Figure 2 Let q be the probability of the effective raw speech newly generated by the i-th speech activity detection engine at the t-th unified time step. i,t The probability after time alignment is p i,t When the input window is complete, the inference is completed within the preset processing deadline, the output is a finite number between 0 and 1, and the uniform time step identifier matches, the indicator is updated. If the inference trigger condition is not met, the inference times out, the output is invalid, or the uniform time step identifier does not match, The system starts with a neutral probability p. n As a placeholder for a fixed dimension, but the validity flag remains 0 until the first valid output. Figure 2 The same output phase is used as in the continuous uniform time step example below.
[0064]
[0065]
[0066] (2)
[0067] Equation (2) uses conditional branching to determine the alignment probability: when At that time, with q i,t Update the latest valid probability; when Furthermore, if valid output has already been generated, the original output that does not exist or is invalid will not be read; instead, the existing output will be used. Therefore, if a certain engine has not generated new valid probabilities at the current unified time step, the system can complete feature extraction and probability fusion for the current unified time step without waiting for the engine's new output. Late results carry the identifier of the original unified time step; if fusion has already been completed at that time step, the historical output is not written back.
[0068] Each raw speech probability is associated with both media temporal semantics and processing completion time semantics: the media temporal semantics are determined by its target unified time step identifier, and the processing completion time semantics are determined by the completion timestamp of the result submitted by the inference thread. For the t-th unified time step, the unified scheduling thread sets the processing deadline Dt; the result is allowed to update the latest valid probability of the t-th unified time step only if the target unified time step of the result is t, the completion timestamp is not later than Dt, and the numerical validity check is passed. Results with a target unified time step of t but a completion time later than Dt are marked as late results, without changing the already output fused speech probabilities, state machine states, or endpoint events, thus maintaining the causality of the online processing chain and the monotonic non-rewriteability of completed results.
[0069] Time alignment module 130 synchronization maintenance probability retention time a i,t a i,t Represented by a uniform number of time steps: The time step count is reset to zero when the engine generates new valid output; it is incremented when the engine has previously generated valid output but has not yet updated; and it is set to zero when no first valid output has been generated. i,t Set to greater than A i,max The preset invalid retention value is taken in this embodiment. This ensures that fixed-dimensional state variables also have definite values during the startup phase.
[0070]
[0071]
[0072] (3)
[0073] The i-th engine corresponds to the attenuation constant. and maximum retention time A i,max a i,t τ i and A i,max All are measured in units of a uniform number of time steps. When a new valid output is generated, the validity flag is... Normally, no inference was triggered, the previous unified time step was valid, and At that time, e i,t The value remains 1; if an inference timeout occurs, or if there is a non-finite number, obvious out-of-bounds error, mismatch in the unified time step identifier, out-of-bounds maintenance, or the previous unified time step is invalid, the value remains 1. If an engine becomes invalid due to an anomaly or exceeding its limit, it remains invalid until the next valid original speech probability is generated. The freshness of an invalid engine is set to 0.
[0074] (4)
[0075] (5)
[0076] For heterogeneous engines with different inference steps, a normal hold-up grace period Gi corresponding to the normal update rhythm of each engine can be set based on equation (4). Gi can be determined according to the maximum uniform time step interval that may occur between two adjacent planned triggers, so that low-frequency engines are not mistakenly regarded as obsolete due to "normal non-triggering" within their design-allowed non-update time steps. Define excess hold-up duration. And the enhanced freshness can be determined according to the following formula:
[0077] (4a)
[0078] In equation (4a), when hour, Unplanned lack of updates will not reduce freshness; however, when the retention period exceeds the normal update frequency, As the excess retention time increases, freshness gradually decreases. Equation (4) can be considered as A special case at that time. For The abnormal missing information can be directly... Setting it to 0 performs hard exclusion, and freshness can also be penalized in fault-tolerant implementations that have not yet reached the hard failure condition, so that "planned non-update" and "abnormal missing" have different fusion effects.
[0079] This embodiment takes , , and take , , The actual time corresponding to the duration of the hold is... The parameters described above are only used to illustrate the state update and failure determination process and do not constitute a limitation on the scope of protection of this invention.
[0080] The following is a calculation example for eight consecutive uniform time steps. Q t This represents the current actual probability of the original speech output; the dash indicates that the engine has not produced any new output at the current unified time step; U t P t A t H t and E t These represent the update indicator vector, aligned probability vector, retention time vector, freshness vector, and validity vector, respectively. (Third engine) Before the first output at the third unified time step, its aligned probability is 0.5, the holding time is placed with an invalid holding value of 9, and the validity flag is 0.
[0081] An example of probability alignment and state maintenance for consecutive uniform time steps is as follows:
[0082] t: 0; Original output and update instructions: ; ; Probability after alignment: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0083] t: 1; Original output and update instructions: ; ; Probability after alignment: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0084] t: 2; Original output and update instructions: ; ; Probability after alignment: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0085] t: 3; Original output and update instructions: ; ; Alignment probability Pt: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0086] t: 4; Original output and update instructions: ; ; Alignment probability Pt: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0087] t: 5; Original output and update instructions: ; ; Alignment probability Pt: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0088] t: 6; Original output and update instructions: ; ; Alignment probability Pt: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0089] t: 7; Original output and update instructions: ; ; Alignment probability Pt: ; Maintaining duration, freshness, and effectiveness: ; ; .
[0090] In the example above, step 0 illustrates the initial output initialization: the first and second engines have already produced valid output, therefore their retention time is 0, freshness is 1, and validity flag is 1; the third engine has not yet outputted, although the aligned probability uses a neutral value of 0.5 as a placeholder, but... and It will not enter the effective mean or dynamic weight denominator. In step 1, the second engine is not updated, its probability remains at 0.12, the retention time increases to 1, and the freshness decreases to 0.7165; this state is numerically the same as "the second engine is currently re-outputting 0.12", but the update indicator and freshness are different, which can be used to distinguish the fusion model.
[0091] In step 3, the third engine becomes an effective engine immediately after its first output of 0.10; from steps 4 to 6, the third engine is not updated, the probability remains at 0.10 while the freshness gradually decreases; in step 7, the third engine outputs 0.74, the duration is reset to zero and the freshness is restored to 1. This process clearly demonstrates that the alignment probability, the probability source state, and the effective state of the engine are interrelated but distinct quantities.
[0092] The validity check of the raw output may include the following steps: determining whether the output is a finite number; determining whether the output is within the legal probability range of 0 to 1; determining whether the audio window corresponding to the output is complete; determining whether the inference completion time is earlier than the preset processing deadline of the current unified time step; and determining whether the unified time step identifier, model version, and feature version match. For minor out-of-bounds values caused only by floating-point rounding, they can be truncated to 0 to 1; for non-numerical, infinite, obviously out-of-bounds, timeout results, or time step identifier mismatch results, the current update indicator is set to 0, the validity flag is set to 0, and the anomaly count is recorded; the engine remains invalid until the next valid raw speech probability is generated.
[0093] The maximum hold duration can be determined based on the engine's normal inference steps and the allowable duration of a fault. For example, if the second engine normally updates every two uniform time steps, A can be... 2,max Setting it to 4 ensures that a normal missing value does not immediately invalidate the engine; the third engine updates normally every four unified time steps, which can improve A. 3,max Set to 8. The maximum hold time should not be less than the normal inference interval, nor should it be so large that the failure probability participates in the fusion for a long time.
[0094] Taking the third unified time step as an example, the first and third engines generate new outputs, while the second engine uses the latest effective probability. According to equation (2). , , According to equation (3), The second engine's freshness is... All three engines have provided effective output and maintained it for the duration that is within the limit, therefore .
[0095] If the third engine does not update for nine consecutive unified time steps after outputting 0.74 at the 7th unified time step, then ,corresponding and The time alignment module can retain 0.74 for fault diagnosis, or it can use p. n Placeholder; regardless of the storage method used, the learning fusion module is based on Set the fusion weight of the third engine to 0. Thereafter, even if a normal, non-triggered inference unified time step occurs, e 3,t It remains at 0; only when the third engine regenerates the probability of valid original speech will its duration be reset to zero, its freshness restored to 1, and it be re-integrated into the fusion.
[0096] To avoid the first valid probability after a failed engine recovery immediately acquiring an excessively high fusion weight, a recovery confidence level vi,t is also maintained. When Furthermore, when a new valid original speech probability is generated, ei,t is restored to 1 and the recovery phase begins; let ni,t be the number of consecutive valid outputs obtained since the recovery began at the planned trigger time, and let the recovery confirmation length be... , can be according to Determine the recovery confidence. If an abnormal loss occurs again during the recovery phase, reset vi,t to 0 and re-enter the engine into an invalid state; when hour, This indicates that the engine has returned to a normal, reliable state.
[0097] For example, If an engine recovers from a failure state and receives valid output in three consecutive planned triggers, its recovery confidence can be ranked as follows: , And 1. The recovery confidence does not change the original probability itself, but is used for subsequent fusion scoring or reliability correction, thereby distinguishing between "whether there is a new output" and "whether the recovery has been proven to be stable".
[0098] Combination Figure 3 The causal feature extraction module 140 will extract P t U t A t H t and E t Write to a fixed-length circular buffer 141. Assume the number of engines is M and the preset history window length is W; the streaming startup phase only... One unified time step is available, therefore the actual window length for the t-th unified time step is W. t .
[0099] (6)
[0100] (7)
[0101] (8)
[0102] In addition to the moving average and difference for each engine, the number of effective engines n is also calculated. t Mean of effective engine probability And the degree of divergence d t The validity flag is used as a mask in statistical calculations; when At that time, and d t Set to 0, and have the learning fusion module perform a downgrade process that invalidates all engines.
[0103] (9)
[0104] (10)
[0105] (11)
[0106] A complete causal feature vector connects state features, historical features, aggregation features, and cross features in a fixed order. t This includes maximum, minimum, range, pairwise differences, probability products, and the difference between the short-window mean and the long-window mean. Training and deployment use the same feature names, order, and normalization parameters.
[0107] (12)
[0108] In implementations employing planned triggering, anomalous missing data, and recovery state extension, the causal feature vector can also explicitly include St, Ft, Bt, and Vt, where St is the planned triggering indicator vector, Ft is the anomalous missing data indicator vector, Bt is the excess hold duration vector, and Vt is the recovery confidence vector. An example of the extended feature vector is:
[0109] (12a)
[0110] The state variables listed in Equation (12a) are all determined by the scheduling, inference, and probability results that have occurred up to and including the t-th unified time step, without using whether future unified time steps are triggered, the completion status of future inference, or future audio content. By simultaneously inputting St and Ut, the fusion model can learn the different reliability meanings of "this time step was not updated because the planned inference time has not arrived" and "it has been planned to be triggered but an abnormal loss has occurred"; through Bt, Ht, and Vt, the fusion model can respectively characterize the degree of obsolescence that exceeds the normal update rhythm, the current soft reliability, and the stability of fault recovery.
[0111] Taking the 7th unified time step as an example, the three most recent probability vectors are: , and .Pick The moving averages of the three engines are 0.8600, 0.8333, and 0.3133, respectively; the probability differences are... The mean probability of an effective engine is The degree of divergence is 0.0294.
[0112] If fifteen-dimensional basic features are used, they can be sequentially set as three current probabilities, three three-step moving averages, three probability differences, maximum value, minimum value, range, a five-step moving average of the first engine, a five-step moving average of the second engine, and the product of the probabilities of the first and second engines. In another embodiment, U can also be added. t A t H t and E tThis allows the fusion model to directly obtain the old and new states and effective states for each probability. The aforementioned features only use data from the current unified time step and earlier.
[0113] When using full state extension, the P of the three engines t U t A t H t and E t A total of 15 state features are formed. Adding 3-dimensional three-step moving average, 3-dimensional five-step moving average, 3-dimensional difference, 1-dimensional effective mean, 1-dimensional divergence, 1-dimensional maximum, 1-dimensional minimum, 1-dimensional range, and three 3-dimensional pairwise products, a total of 28 features can be formed. The name and order of each dimension are saved in the model training file, and each dimension is verified during online inference when loading the model to prevent the incorrect use of features of the same dimension but in a different order.
[0114] The probability retention time can be the original integer or divided by the maximum retention time to obtain a normalized value around 0 to 1. Moving averages, differencing, and crossover features can be standardized based on the mean and standard deviation of the training data. Tree models typically do not require strict standardization, while logistic regression and neural networks can use standardization to improve optimization stability. Standardization parameters are determined only by the training data and are stored with the model.
[0115] When an engine fails, its historical moving average can continue to be calculated based on the saved aligned probabilities, while inputting the validity flag and freshness into the model; alternatively, a masked moving average can be calculated only for the valid time steps. Both methods must be consistent during the training and online phases. This embodiment preserves the aligned probability sequence and adds a validity mask, enabling the model to learn the changes in probability before and after failure, while the invalid engine does not receive fusion weights.
[0116] The storage overhead of a circular buffer can be pre-calculated. For example, Buffer length When storing probabilities, retention duration, and freshness as 32-bit floating-point numbers, and update indicators and validity flags as 8-bit integers, the core state storage size is less than 3 kilobytes. Even if the audio stream lasts for several hours, the buffer retains only the most recent 50 uniform time steps, and does not increase with session duration.
[0117] This embodiment builds upon the multidimensional causal time-series features obtained in Embodiment 1, combined with... Figure 3 and Figure 4This section explains probability calibration, learned fusion, and global endpoint output. Different engines may have different output layers, training data, and loss functions; the same numerical value does not necessarily represent the same level of confidence. Therefore, the raw probabilities of at least one engine can be calibrated before time alignment or before feature extraction. The calibration module is optional; it is not required that all engines use the same calibration method.
[0118] Taking Pratt scaling as an example, let q be the probability of the new original speech of the i-th engine at the t-th unified time step. i,t When the engine only outputs probabilities, the probabilities are first limited to a certain value using a dimensionless, small constant ξ. Get q inside i,t (c) Then convert to logarithmic probability s i,t When the engine can directly output the unnormalized score, use that score as s. i,t . κ i and b i These are the scaling factor and the bias, respectively, and the calibration probability is denoted as... .
[0119] (13)
[0120] For example, ,Pick ,but , Take again , The calibration probability is 0.6021. The calibrator is only activated when the desired calibration error, negative log-likelihood, and F1 do not deteriorate under conditions of independent calibration sets, the same evaluation threshold, or the same post-processing parameters. The above values are for illustrative purposes only.
[0121] Temperature scaling divides the logarithmic probability output by the positive temperature parameter before executing the logic function; it flattens the probability distribution when the temperature is greater than 1 and sharpens it when the temperature is less than 1. Piecewise linear calibration divides the range from 0 to 1 into several intervals and uses a monotonic linear mapping in each interval; isotonic regression fits a monotonic mapping without pre-setting the function form. The calibration method is selected based on the amount of calibration data and the computing power of the target device.
[0122] Calibration evaluation not only compares overall metrics but also allows for stratified comparisons based on noise type, signal-to-noise ratio, speech length, and device type. If a calibrator improves the overall F1 score but significantly reduces short speech recall, it can be disabled only for specific application modes, or different calibration configurations can be saved for different parameter groups. Each engine independently decides whether to calibrate; uncalibrated engines directly output the raw probabilities.
[0123] Calibration can be applied first to newly generated raw speech probabilities, ensuring that the latest valid probabilities that have been calibrated are maintained; alternatively, the raw probabilities can be maintained first, and then the same monotonic mapping can be applied at each uniform time step. When the mapping parameters are fixed, the two orders are numerically identical, but the former method does not require recalculation at time steps that are not updated.
[0124] The learning-based fusion model 151 can adopt two output structures. The first is a direct probability output structure, where the model outputs probabilities based on φ. t The first type outputs the fused speech probability between 0 and 1. The second type is a dynamic weighted output structure, which outputs a fused score g from a multi-output model with M outputs or M scoring sub-models. i,t Then, masked normalization is performed based on the validity flag. To improve the numerical stability of exponential normalization, the maximum valid score m is first subtracted from each valid engine score. t When using a lightweight self-attention network, a causal mask is used for the time dimension, allowing access only to the current and historical unified time steps.
[0125] (14)
[0126] (15)
[0127] At the 7th unified time step, take the aligned probability. Integration score and validity vector .Pick The three index scores were then masked and normalized, yielding fusion weights of 0.4967, 0.3013, and 0.2020, with a sum of 1; the fused speech probability was... Subtracting m7 does not change the normalization result.
[0128] If the third engine fails to maintain its position for an extended period of time... If the third engine does not enter the numerator and normalize the denominator, the first two weights are renormalized. If all validity flags are 0, the learning fusion module 150 outputs the preset silence probability and the degraded state; when the global post-processing state machine is in the silence state, it remains silent, and when it is in the voice state, it waits for at least one engine to recover within the preset fault tolerance time.
[0129] Fusion scoring can explicitly use freshness. For example, a linear scoring sub-model can include current probability, three-step moving average, differencing, divergence, and freshness. When the freshness coefficient is positive, new outputs typically receive higher scores; as retention time increases, freshness decreases, and scores drop accordingly. Complex models can learn non-linear relationships such as "a slow smoothing engine, though not new, is still valuable during noise spikes." Hard masking of validity indicators and soft decay of freshness work together to handle both completely invalidated and gradually obsolete states, respectively.
[0130] To ensure that probabilistic freshness, anomalous missing states, and recovery confidence not only serve as input features that can be selectively ignored by the model, but also directly constrain the fusion contribution in a verifiable implementation, a reliability correction layer can be added after the learning-based fusion model outputs the basic fusion score g'i,t. The reliability correction layer, for example, yields the corrected fusion score g'i,t according to the following formula:
[0131] (14a)
[0132] Where λi, κi, and νi are nonnegative parameters, and εh and εv are positive lower bound constants to prevent taking the logarithm of 0. When the probability remains above the normal update rhythm, hi,t decreases, causing the corrected fusion score to drop; in the recovery phase and When this occurs, its fusion score is suppressed; when abnormal deletions occur, it can be addressed through... Further reduce the score; when At that time, the validity mask of equation (14) still forces the engine weight to 0. Therefore, freshness is used for soft decay, validity flag is used for hard exclusion, and recovery confidence is used for gradual re-admission during the recovery period, and the three play different reliability control roles. If the recovery phase is not enabled, it can be set to If explicit reliability correction is not enabled, it can be made At this point, it degenerates into the original learning-based scoring and mask normalization.
[0133] To avoid drastic changes in fusion weights between adjacent unified time steps, a first-order causal smoothing that relies solely on historical values can be performed on the scores or weights. For example, the current smoothed weights can be obtained by weighting the current original weights and the smoothed weights from the previous unified time step. The smoothing coefficients should be part of the model or post-processing configuration and remain consistent throughout training data generation and online inference. Weight smoothing can also be omitted if the goal is to minimize attack delay.
[0134] When using gradient boosting decision trees and random forests, M regression or classification scoring sub-models can be trained respectively; when using shallow neural networks or lightweight self-attention networks, the front feature encoding layer can be shared and M scoring output nodes can be set at the end. The direct probability output structure is suitable for devices with low computing power, while the dynamic weight structure can output interpretable contributions from each engine. Both structures use the continuously fused speech probability 152 as the state machine input.
[0135] The degradation handling when all engines fail can also be differentiated based on the current state: if the state machine is in a mute state, it remains mute; if it is already in a voice state, it can maintain the voice state and continue to buffer audio for a preset fault tolerance period, waiting for at least one engine to recover; if no effective engine is found after the fault tolerance period, an abnormal termination event is output or a termination confirmation is completed according to the mute probability. This fault tolerance period does not exceed the maximum pending audio buffer length allowed by the device.
[0136] Combination Figure 4 The post-processing module 160 sets up a global post-processing state machine 161 shared by all engines. Each engine can retain caches or probabilistic smoothing for stable operation of its own model, but its binary endpoint events are not directly used as the final speech start event 162 and speech end event 163. The global state machine includes a silence state, a speech candidate state, a speech state, and a silence candidate state. The speech entry threshold θ1 is greater than the silence exit threshold θ0, forming a hysteresis interval between the two.
[0137] The system maintains a continuous voice confirmation count c. 1,t And silent continuous confirmation count c 0,t K1 and K0 represent the number of consecutive voice acknowledgments and the number of consecutive silence acknowledgments, respectively, both expressed in the same number of time steps. In the silence state and the voice candidate state, the voice count is increased when the fused voice probability reaches the voice entry threshold, otherwise it is reset to zero; in the voice state and the silence candidate state, the silence count is increased when the fused voice probability is not higher than the silence exit threshold, otherwise it is reset to zero.
[0138] (16)
[0139] (17)
[0140] When the voice count first changes from 0 to 1, the state machine transitions from the silence state to the voice candidate state. When the count reaches K1, the state machine enters the voice state and outputs a voice start event. If the probability is below the threshold before reaching K1, the candidate state is canceled and the machine returns to the silence state. In the voice state, when the silence count first changes from 0 to 1, the machine enters the silence candidate state; after the count reaches K0, it enters the endpoint delay phase. If the fusion probability recovers during the delay, the endpoint candidate state is canceled and the machine returns to the voice state; otherwise, a voice end event is output after the delay is completed.
[0141] This embodiment takes , , , , Starting point replenishment length and the length of the end point delay K0, K1, B0, and B1 are all uniform time step numbers. Let t be the uniform time step number where the voice confirmation occurs. s The candidate starting point number is t candidate .
[0142] (18)
[0143] (19)
[0144] For example, if the fusion probability at the 20th to 25th unified time steps is not less than θ1 for six consecutive steps, then... , Forward fill Then, the speech start position is 150 milliseconds. Subsequently, if the silence condition is met consecutively in unified time steps 100 to 114, and the speech is completed in unified time steps 115 to 117... If the endpoint is delayed, a silent confirmation of the unified time step will be used. Calculate the final end time.
[0145] (20)
[0146] For short pauses, a minimum speech segment length and a short silence tolerance length can be set. For example, when already in speech mode, if a silence candidate lasts only 6 uniform time steps without reaching the target, the pause can be allowed. Subsequently, the fusion probability recovers, and the state machine returns to the speech state without outputting a speech end event. For isolated candidate segments that are shorter than the preset minimum speech length, the segment can be discarded upon end confirmation, or it can be recorded as a noise event only.
[0147] The starting point replenishment requirement is that the system saves at least the most recent data. The audio is either raw or pre-processed and stored at a uniform time step. The endpoint delay requires buffering B0 uniform time steps after silence confirmation. Audio buffering, event timestamps, and state machine counts all use uniform time step numbers starting from 0 to avoid boundary conversion errors caused by different indexing rules.
[0148] The global state machine can also be configured with a maximum audio segment length. When continuous audio exceeds a preset length, a segmentation event can be output and the next audio segment can be established immediately, preventing long conferences or continuous noise from causing a single segment to grow indefinitely. For voice assistant commands, a shorter maximum segment length can be set; for conference transcription, a longer maximum segment length can be set. The maximum segment length processing does not change the probability of audio activity, but only affects event output and audio segmentation.
[0149] The speech entry threshold and silence exit threshold can be fixed or selected based on the current noise estimation or application mode, but should remain definite within a set of parameters. If dynamic thresholds are used, they should rely solely on current and historical noise statistics, and the thresholds themselves should be recorded as state machine inputs to ensure traceability for training, validation, and online diagnostics.
[0150] The state machine output event should include at least the event type, unified time step number, converted time position, and current session identifier. It can also include fusion probability, number of effective engines, and degradation status for subsequent automatic speech recognition, speaker segmentation, and operation logging. The event output itself is not written back to the engine probability to avoid creating an uncontrollable feedback loop.
[0151] Post-processing parameters 171 can be saved as multiple validated parameter sets. A balanced parameter set can use a higher speech entry threshold and a moderate number of consecutive acknowledgments to balance precision and recall; a recall-priority parameter set can appropriately lower the speech entry threshold, reduce the number of speech acknowledgments, and increase the number of silent acknowledgments to reduce missed detections of short and weak speech. When switching parameter sets, the learned fusion model 151 and its feature order remain unchanged, thus eliminating the need to repeatedly train the complete fusion model for different application modes.
[0152] Combination Figure 5 This embodiment illustrates the process of determining the training and post-processing parameters 171 of the learning-based fusion model 151. The training data includes real recordings, device-acquired audio, publicly available speech data, and simulated noise mixed audio, and is divided into training data, calibration data, validation data, and test data according to the recording file, speaker, or acquisition session, avoiding the cross-set allocation of adjacent segments of the same continuous recording.
[0153] Training samples are generated in the same manner as online inference: training audio is input into the offline simulation program as data blocks of varying lengths, using the same unified time step, inference step, probability preservation rule, preservation duration update, freshness calculation, validity judgment, and feature order. The t-th training sample must not use audio, probability, or label statistics from the t-th unified time step onwards.
[0154] When using planned trigger indicators and anomalous missing indicators, the offline training sample generation program first generates si,t according to the same engine input window, inference step, and trigger phase as the online deployment, and then generates ui,t and fi,t according to the online processing deadline and result validity rules. The unified time step, not to Interpreted as a fault; only when Only after the planned trigger time step is reached, inference timeouts, invalid probabilities, label mismatches, and continuous failures are simulated according to real equipment statistics or preset fault models. Therefore, the same state semantics are used for "normal maintenance" and "abnormal missing" in both the training and online phases, preventing the fusion model from incorrectly learning the normal inference intervals of the slow engine as a signal of reliability degradation.
[0155] Training data can be organized hierarchically by scene, including quiet near speech, far-field reverberation, public transportation noise, keyboard typing, footsteps, music, multi-person conversations, and short commands. Scene-balanced sampling does not simply replicate a few scenes, but first selects batch quotas at the scene level, and then selects speech and silence samples within the scene, so that large-scale quiet recordings do not drown out a small number of important low signal-to-noise ratio samples.
[0156] Training, calibration, validation, and test sets should be isolated by speaker, device, or recorded session. If adjacent segments from the same speaker are included in the training and test sets respectively, the model may exploit information leaked by the speaker or background environment, leading to inflated evaluations. When simulating noise mixing, clean speech, noise files, and mixing parameters are also recorded separately to ensure that the test mix does not overlap with the training mix.
[0157] For cases where different engines produce missing or abnormal outputs, during the training sample generation phase, statistical random simulations of inference timeouts, probabilistic invalidity, and prolonged periods without updates can be performed using real devices. This allows the model to learn the roles of validity indicators and freshness features. The proportion of simulated failures should not exceed the range likely in real deployment, and a portion of completely normal samples should be retained as a baseline.
[0158] For fault recovery samples, recovery confidence (vi,t) can be generated within the time period after simulating continuous failures and recovering valid output, according to the recovery confirmation length Ri consistent with online inference, and the recovery phase can be preserved in the training features. In this way, model training can cover the complete state transition chain of "normal update - planned maintenance - abnormal failure - continuous recovery - recovery completion", instead of creating gaps only at independent random time steps.
[0159] Speech activity labels can be generated by manually marking boundaries or by automatically marking labels after manual review. Let b be the start and end sampling positions of a certain speech segment. s and b e When the overlap ratio between the unified time step coverage area and the speech segment reaches a preset ratio, the label y is... t Set to 1 otherwise set to 0. Set higher sample weights at several uniform time steps before and after the start and end boundaries of the speech.
[0160] When using weighted binary cross-entropy, the probability of the fused speech is first limited to... Internal ,in To avoid taking the natural logarithm of 0. B is the set of samples at a uniform time step in a mini-batch. For voice activity tags, Let L be the sample weights, and ln be the natural logarithm. The training loss L is normalized according to the sum of the sample weights.
[0161] (twenty one)
[0162] (21a)
[0163] For differentiable dynamic weight models composed of logistic regression, shallow neural networks, temporal convolutional networks, or lightweight self-attention networks, equations (14) and (15) can be integrated into equation (21) to solve the fusion score end-to-end. For M scoring sub-models composed of gradient boosting decision trees or random forests, a normalized reliability target r can be constructed according to equation (21a). i,t : Used to control sensitivity to prediction errors; when the denominator is greater than 0, it is... As the regression target or r i,t Each scoring sub-model is trained using the soft classification labels as sub-labels. When all validity flags are 0, the sample is not used for training the scoring sub-model. Validity mask normalization using equation (14) is still used uniformly during deployment.
[0164] For example, a small batch contains four samples, which ( The values are (1, 0.7710, 2.0), (0, 0.12, 1.0), (1, 0.67, 1.5), and (0, 0.08, 1.0) respectively. In ε p When the distance between the above probabilities and 0 or 1 is less than the distance between the probabilities, truncation does not change the example probability; the four weighted losses are approximately 0.5200, 0.1278, 0.6007, and 0.0834, and after normalization with a weighted sum of 5.5, the mini-batch average loss is approximately 0.2422. The above values are for illustrative purposes only.
[0165] The predefined boundary neighborhood can be defined as five unified time steps before and after the start and end points of the speech. If the unified time step is 10 milliseconds, then the neighborhood covers 50 milliseconds before and after the boundary. For short speech segments, the start and end neighborhoods may overlap. In this case, the sample weight is taken as the larger value of the two boundary weights to avoid excessively large weights caused by repeated multiplication.
[0166] During training, the training loss, validation loss, validation F1 score, short speech recall rate, and noise false trigger rate are monitored. If the validation metrics no longer improve over several consecutive rounds, training is stopped and the optimal round parameters are restored. Tree models control complexity by limiting depth, minimum number of samples per leaf node, and number of trees; neural networks can use weight decay and deactivation layers to control overfitting.
[0167] The probabilistic calibration parameters are determined using an independent calibration set, the state machine parameters are determined using a validation set, and the final test set is used only for a one-time evaluation. This avoids repeatedly selecting models, calibrators, or thresholds based on test results. If the amount of data is limited, cross-validation based on recorded sessions can also be used, but each session still maintains the separation of training, calibration, and validation roles.
[0168] The model output version saves the uniform time step, engine order, feature dimensions, feature names, normalization parameters, and calibration configuration from the training process. After loading the model into the online system, a known test vector is constructed, and the output dimensions and numerical range are checked; if the check fails, the version is rejected.
[0169] Learning-based fusion models can employ gradient boosting decision trees, random forests, logistic regression, shallow neural networks, temporal convolutional networks, or lightweight self-attention networks. In an example search range, gradient boosting decision trees have 200 to 400 trees, a maximum depth of 4 to 6, and a learning rate of 0.03 to 0.08; shallow neural networks have 1 to 3 hidden layers, each with a hidden dimension of 32 to 128. When using a dynamic weight structure, a single model with M outputs can be used, or M scoring sub-models can be trained separately; when using a direct probability structure, only a fusion probability is output.
[0170] After model training is complete, the complete fusion probability sequence is cached on the validation data. Then, the global post-processing state machine is searched for the speech entry threshold, silence exit threshold, number of consecutive speech confirmations, number of consecutive silence confirmations, start-point backfill length, and end-point delay length. Parameter search can be performed in stages with model training, or alternately: first, the post-processing parameters are fixed and the model is trained; then, the model output is fixed and the state machine parameters are searched; the boundary sample weights are readjusted based on endpoint errors, and the model is trained again.
[0171] The objective of the comprehensive performance balancing mode can be set as maximizing the minimum F1 among multiple validation scenarios. In equations (22) and (23), Θ represents at least one of the model parameters and post-processing parameters to be determined, S represents the set of validation scenarios isolated from the training data and the final test data, and η represents the preset lower limit of F1 for each validation scenario. The recall-first mode maximizes the average recall rate under the constraint that F1 in each validation scenario is not lower than η.
[0172] (twenty two)
[0173] (twenty three)
[0174] An example of a grid search is as follows: θ1 is 0.25, 0.30, or 0.35; θ0 is 0.15 or 0.20; K1 is 3, 6, or 9; K0 is 10, 15, or 20; B1 is 0, 3, or 5; and B0 is 0, 2, or 3, forming a total of Group parameters. For each group of parameters, calculate the F1 score, recall, false trigger rate, false negative rate, and endpoint latency for long dialogues, medium dialogues, short speech, and simulated noise scenarios.
[0175] Precision is the proportion of correctly detected speech duration or events to the total detected speech duration or events; recall is the proportion of correctly detected speech duration or events to the total labeled speech duration or events; the harmonic mean metric is the harmonic average of precision and recall. Frame-level metrics are used to evaluate probabilistic classification, while event-level metrics and start / end delays are used to evaluate the final state machine output.
[0176] The worst-case scenario objective requires that each candidate parameter group first calculate its scenario metrics separately, and then compare the minimum values. If the worst-case F1 scores of two parameter groups are the same, the parameter group with higher average recall, lower average latency, or simpler parameters can be prioritized. The recall priority objective first excludes any parameter group with a scenario F1 score below the lower limit, and then compares the average recall among the remaining parameter groups.
[0177] Alternating optimization can be performed in two to five rounds: the first round trains the fusion model and searches for state machine parameters; the second round increases the corresponding boundary weights based on the missegments and missed samples in the state machine output, and then trains the model again; after that, the state machine parameters are searched again. If the improvement in the worst-case F1 score and average recall rate is less than a preset threshold in two consecutive rounds, the iteration stops.
[0178] Example evaluation results for the two types of post-processing parameter groups are as follows:
[0179] Parameter group: Balanced parameter group for overall performance; worst scenario F1: 0.911; average recall: 0.947; main parameter trend: high entry threshold, medium confirmation length; applicable mode: general speech segmentation.
[0180] Parameter group: Recall priority parameter group; Worst case F1: 0.881; Average recall rate: 0.986; Main parameter trend: Lower entry threshold, longer silence confirmation; Applicable modes: Recognition front end, conference transcription, real-time call.
[0181] The above data is used to illustrate how to select parameter groups based on different objectives, and does not require that each implementation achieve the same values. Model parameters, probability calibration parameters, feature order, historical window length, state machine parameters, and engine configuration are saved as the same deployment version. When the device starts up, the expected feature dimension, feature order, and parameter version of the model are verified; if inconsistencies are found, loading of that version is stopped to avoid using misaligned features and producing uninterpretable results.
[0182] Combination Figure 6 The heterogeneous multi-engine causal fusion system includes an input buffer module 110, a multi-engine inference module 120, a time alignment module 130, a causal feature extraction module 140, a learning-based fusion module 150, and a post-processing module 160. The time alignment module maintains P... t U t A t H t and E t The causal feature extraction module maintains a circular buffer and outputs φ. t The learning-based fusion module loads models that match the current number of engines and feature order.
[0183] When the system is deployed on an edge device, the total execution time of engine inference, time alignment, feature extraction, fusion computation, and state machine processing actually triggered within any unified time step is measured before deployment. Peak memory usage and average power consumption are also measured. Let I... t This refers to the set of engines that actually trigger inference within the t-th unified time step. The corresponding configuration is enabled only when the total execution time of each unified time step does not exceed the unified time step length, the peak runtime does not exceed the available runtime memory of the device, and the average power consumption does not exceed the preset power consumption limit.
[0184] (twenty four)
[0185] In a two-engine configuration for a Bluetooth headset, with a unified time step of 10 milliseconds, the execution times of the two engines are 0.9 milliseconds and 1.4 milliseconds, respectively. Time alignment and causal feature calculation take 0.3 milliseconds, fusion and state machine processing take 0.2 milliseconds, and the total execution time is 2.8 milliseconds, which is less than 10 milliseconds. The peak additional running memory is 420 kilobytes, which is less than the device's allowed 512 kilobytes. The average additional power consumption is 24 milliwatts, which is less than the 30 milliwatt limit. Therefore, a fast response engine and a probabilistic smoothing engine are enabled, and logistic regression or shallow gradient boosting decision trees are used as the fusion model.
[0186] In a three-engine configuration of a conference terminal, the total execution time of the three engines and subsequent modules is 5.6 milliseconds, the peak additional running memory is 2.4 megabytes, and the average additional power consumption is 0.38 watts, which are lower than the 10-millisecond time budget, 8 megabytes of available running memory, and the preset power consumption limit of 0.50 watts, respectively. Therefore, the fast response engine, the probabilistic smoothing engine, and the high temporal resolution boundary engine are enabled simultaneously. The above values are example measurement parameters used to illustrate the joint determination process of the three device constraints. If one engine exceeds the maximum hold time due to resource contention or inference anomalies during operation, its validity flag is set to 0 according to Example 1, and the remaining engines continue to run; after restoring the new output, it is rejoined for fusion, and a complete system restart is not required.
[0187] Equipment constraints can be measured during installation and continuously monitored during operation. During operation, the average execution time and highest quantile execution time of each module over a recent period are statistically analyzed. If the highest quantile execution time is close to the unified time step budget, the frequency of slow engine calls can be reduced, one engine can be temporarily shut down, or a two-engine model can be switched. Degradation and recovery are both accomplished through versioned configuration, ensuring that the feature dimensions and fusion model are consistent with the current number of engines.
[0188] The system can be executed sequentially in a single thread or in a multi-threaded pipeline. In the multi-threaded implementation, the audio acquisition thread only writes to the input buffer, the inference worker threads process different engines, and the unified scheduling thread reads the completed results at the deadline of each time step. Late results are accompanied by the original time step number; if the corresponding time step has already been fused, the result is not written back to the historical output, but is only used as diagnostic information or for the next allowed update time step.
[0189] Both the time alignment module and the state machine belong to the session state. At the start of a new call, conference, or voice assistant session, the input margin, engine hidden state, latest valid probability, circular buffer, and state machine count are cleared. When the session is continuous but network data is temporarily interrupted, the state can be preserved and silent samples can be inserted. The specific reset strategy is controlled by the upper-layer session identifier.
[0190] The runtime log can record the number of effective engines, maximum hold time, fusion probability, and state machine state for each unified time step, but it is not necessary to store all the original audio for an extended period. In the event of abnormal termination, frequent engine failures, or continuous overload, a state summary of a few seconds before and after the event is saved for diagnostic purposes. The log does not participate in online fusion to prevent diagnostic functions from altering the real-time processing path.
[0191] In a set of simulated noise evaluations, the evaluation data included 216 simulated noise audio files, composed of two languages, six noise classes, six audio samples per class, and three signal-to-noise ratio (SNR) levels, with a total duration of 432 minutes. Training, calibration, and testing were isolated according to the original speech files, noise files, and mixed configurations. The F1 scores for the six noise classes—ambient sound, footsteps, tapping sounds, keyboard and mouse sounds, mixed noise, and squeaking—were 0.9536, 0.9660, 0.9540, 0.9555, 0.9638, and 0.9658, respectively; the F1 scores for SNRs of 0 dB, 5 dB, and 10 dB were 0.9475, 0.9627, and 0.9692, respectively. During the comparative evaluation, the best single-engine and fixed-weight fusion results were recorded simultaneously to determine whether the performance improvement stemmed from learning-based causal fusion rather than simply increasing the number of engines. The data described above only illustrates the technical effects under the aforementioned data segmentation, training methods, and parameter configurations, and does not represent the inevitable results in real subway, cycling wind noise, or far-field conference environments.
[0192] To verify the independent contributions of the aforementioned state semantics and reliability control mechanisms, ablation tests can be set up under the same test set, the same basic speech activity detection engine, and the same post-processing evaluation criteria. These include: the best single engine, simple average or fixed weight fusion, a scheme that only uses the latest valid probability to maintain without distinguishing between planned non-updates and anomalous missing values, a scheme that only uses a validity hard mask, a scheme that uses probabilistic freshness but not recovery confidence, and a complete scheme that simultaneously uses planned trigger discrimination, excess freshness maintenance, validity hard mask, and recovery confidence. Evaluation metrics, in addition to F1, can also include short speech recall, impulse noise false trigger rate, speech start response delay, speech end release delay, endpoint absolute error, and error duration during simulated inference timeout. This ablation evaluation is used to determine whether performance improvements are generated by the asynchronous state management and reliability fusion mechanism, rather than simply by increasing the number of engines.
[0193] The system described in this embodiment can be implemented by an electronic device. The electronic device includes a processor, a memory, an audio input interface, and an optional network interface; the memory stores the engine model, fusion model, calibration parameters, feature configuration, state machine parameters, and a computer program. When the processor executes the computer program, it sequentially performs audio caching, heterogeneous engine inference, probabilistic time alignment, probabilistic state maintenance, causal feature extraction, probabilistic calibration, learning-based fusion, and global state machine processing. It can also perform training sample generation, fusion model training, and post-processing parameter search.
[0194] Combination Figure 7 In one specific embodiment, the electronic device is a Bluetooth headset 180. Figure 7 Centered on the appearance of the Bluetooth headset, only three functional markers directly related to this invention are set: an audio acquisition unit 181, a processing and storage unit 182, and a Bluetooth communication unit 183. The audio acquisition unit 181 is used to form an input audio stream 100, the processing and storage unit 182 is used to execute the method and system of this invention, and the Bluetooth communication unit 183 is used to control the uplink audio according to the voice start event 162 and the voice end event 163, thereby forming a complete connection relationship of "audio acquisition - local detection and processing - communication output".
[0195] The audio acquisition unit 181 includes a microphone and an audio acquisition circuit, used to acquire the wearer's voice and ambient sound, and to perform preamplification, analog-to-digital conversion, sampling rate conversion, and data segmentation. This embodiment uses a 16000 Hz sampling rate, a 16-bit mono format, and a 10-millisecond unified time step. For every 160 sampling points formed, the audio acquisition unit 181 provides the processing and storage unit 182 with an input audio stream 100 corresponding to a unified time step; any remaining data with fewer than 160 sampling points is retained until it is merged with the next data block to form a complete unified time step.
[0196] The processing and storage unit 182 includes a processor and a memory. The memory stores the voice activity detection engine, the learning fusion model, probability calibration parameters, causal feature configuration, global post-processing state machine parameters, and the computer program. When the processor executes the computer program, the input buffer module 110, the multi-engine inference module 120, the time alignment module 130, the causal feature extraction module 140, the learning fusion module 150, and the post-processing module 160 are sequentially run locally on the Bluetooth headset 180. Figure 7 The processing flow on the right indicates that the above modules are executed by the processing and storage unit 182, and does not mean that each module is located outside the Bluetooth headset 180.
[0197] To meet the processing time, RAM, and power consumption constraints of the Bluetooth headset 180, the processing and storage unit 182 in this embodiment loads two voice activity detection engines. The first engine performs inference once per unified time step to quickly respond to the start of voice; the second engine performs inference once every four unified time steps to smooth probabilities and suppress probability jitter caused by wind noise, clothing friction noise, and short-term collision noise. When the second engine does not produce a new output in the current unified time step, the time alignment module 130 maintains its latest valid probability and updates the retention duration, freshness, and validity flags.
[0198] For example, at the t-th unified time step, the first engine generates a new original speech probability of 0.78, while the second engine uses the latest effective probability of 0.66. Assuming that the probability of the second engine has been maintained for two unified time steps, the decay constant is 5, and the maximum maintenance duration has not been exceeded, then the freshness of the two engines are 1 and 0.6703, respectively, and the effectiveness flag of both engines is 1.
[0199] (25)
[0200] The processing and storage unit 182 concatenates the aforementioned probability states with historical moving averages, probability differences, and inter-engine divergence to form a causal feature vector. When the learning-based fusion model outputs fusion scores of 0.9 and 0.5 for the two engines, the maximum effective score is taken. The effective score normalization, fusion weight, and fusion speech probability are calculated according to the following formula:
[0201] (26)
[0202] (27)
[0203] (28)
[0204] The post-processing module 160 outputs a voice start event 162 and a voice end event 163 based on the probability of fused speech over a continuous, unified time step. The Bluetooth communication unit 183 controls the uplink audio according to these events: after the voice start event is output, it first sends the audio in the backtracking buffer, then continuously sends real-time audio; after the voice end event is output, it stops sending valid voice data, sends a mute indication, or switches to a low bitrate state. Thus, the system output events directly affect the communication path of the Bluetooth headset, reducing truncation and invalid audio transmission.
[0205] To achieve start-point backfilling, the memory must store at least the audio corresponding to the sum of the number of consecutive voice acknowledgments K1 and the start-point backfilling length B1. Let each unified time step contain N... s Given _q_sampling points, where each sampling point has quantization bits Q, then the minimum backtracking buffer size C_sampling point is... audio Determined according to formula (29).
[0206] (29)
[0207] The Bluetooth headset 180's device control program can read resource status such as battery level, temperature, and processor load, and determine whether the current engine configuration meets real-time, RAM, and average power consumption constraints. In an example configuration, the execution times of the two engines are 0.9 ms and 1.4 ms, respectively; the time alignment and causal feature calculation time is 0.3 ms; the fusion and state machine processing time is 0.2 ms; and the total processing time is 2.8 ms, less than the 10 ms unified time step. The peak additional RAM is 420 kilobytes, less than 512 kilobytes of available memory; and the average additional power consumption is 24 milliwatts, less than the 30 milliwatt power consumption limit.
[0208] (30)
[0209] When the Bluetooth headset 180 is in a low battery, high temperature, or high processor load state, the processing and storage unit 182 can reduce the calling frequency of the second engine, switch to a lightweight fusion model that matches the current number of engines and feature dimensions, or temporarily exit the fusion process. When any engine experiences an inference timeout, invalid output, or exceeds the maximum hold time, its validity flag is set to 0; after restoring valid output, the hold time is cleared, the freshness is restored to 1, and it rejoins the fusion process from the current unified time step.
[0210] therefore, Figure 7 The Bluetooth headset 180 shown generates an input audio stream 100 through an audio acquisition unit 181. The processing and storage unit 182 continuously executes unified time step generation, heterogeneous multi-engine inference, time alignment, causal feature extraction, learning-based fusion, and global state machine processing. The uplink audio is controlled via a Bluetooth communication unit 183 using voice start event 162 and voice end event 163. This structure illustrates the specific relationship between the Bluetooth headset 180 and the functions of the aforementioned methods, systems, and electronic devices.
[0211] Computer-readable storage media can be non-volatile memory, solid-state memory, magnetic storage media, optical storage media, or other media capable of storing computer programs. The computer program product can be provided via tangible storage media or a network. When the computer program stored on the computer-readable storage medium or the computer program product contains a computer program that is executed by a processor, it implements the above-described online detection method or the fusion model training and post-processing parameter determination method. Each module can be implemented in software or by one or more of a digital signal processor, neural network processing unit, field-programmable gate array, or application-specific integrated circuit.
[0212] The three embodiments above illustrate online time alignment and causal features, learning-based fusion and global state machine, fusion model training, and system and electronic device deployment, respectively. Figure 7 This further clarifies the specific relationship between the Bluetooth headset 180 and the audio acquisition unit 181, processing and storage unit 182, and Bluetooth communication unit 183, which carry the method and system of the present invention. Those skilled in the art can adjust the number of engines, model type, unified time step, history window, and threshold parameters without departing from the technical concept of the present invention; the corresponding computer program can be stored in a computer-readable storage medium or provided as a computer program product.
Claims
1. A heterogeneous multi-engine causal fusion method for streaming speech activity detection, characterized in that, include: Receive the input audio stream and generate a continuous, uniform time step according to a preset time step; The input audio stream is fed into multiple speech activity detection engines to obtain the raw speech probabilities output by each engine. Each raw speech probability is associated with an engine identifier and a corresponding unified time step identifier. The multiple speech activity detection engines differ in at least one of the following: model structure, inference step, output probability distribution, input acoustic features, or response characteristics. For each unified time step, based on the input window, inference step, and current trigger phase of each speech activity detection engine, it is determined whether the corresponding engine is in the planned inference phase at the current unified time step, and a planned trigger indication is generated. For each unified time step, the raw speech probabilities of each speech activity detection engine are time-aligned, wherein when... When a speech activity detection engine generates a valid raw speech probability matching the current unified time step identifier before the preset processing deadline of the current unified time step, the latest valid probability of the speech activity detection engine is updated with the valid raw speech probability, and the current aligned probability is determined. When the speech activity detection engine does not generate a valid raw speech probability in the current unified time step, the latest valid probability is determined as the current aligned probability without waiting for the new output of the speech activity detection engine. For late results that arrive after the fusion has been completed in their corresponding unified time step, the unified time step that has been fused is not written back. Based on the planned triggering indicator, whether each speech activity detection engine generates a valid update in the current unified time step, and the aligned probability... The system continuously maintains the probability and detects abnormal output states, distinguishing between normal maintenance due to not reaching the planned inference time and abnormal missing probabilities due to being at the planned inference time but not obtaining a valid original speech probability before the preset processing deadline. It generates a valid update indicator, an abnormal missing indicator, probability maintenance duration, probability freshness, and a validity flag. When the probability maintenance duration exceeds the corresponding maximum maintenance duration, or when at least one of the following output abnormalities occurs at the current unified time step: inference timeout, non-finite number, exceeding the legal probability range, or unified time step identifier mismatch, the corresponding validity flag is set to invalid and remains invalid until the corresponding speech activity detection engine generates the next valid original speech probability. Based on the current unified time step and its... The multi-engine probability vector, the planned trigger indicator, the effective update indicator, the abnormal missing indicator, the probability retention duration, the probability freshness, and the validity flag are used to extract multi-dimensional causal temporal features without using future audio frames or future probability outputs. The multi-dimensional causal temporal features are input into a trained learning fusion model. The learning fusion model generates corresponding fusion scores based on the probability values, update status, staleness, and validity status of each speech activity detection engine. The fusion scores of each speech activity detection engine are masked and normalized based on the validity flag. The aligned probabilities of each valid speech activity detection engine are weighted and summed according to the normalized fusion weights to output the fused speech probability corresponding to the current unified time step.The fused speech probabilities are input into a single global post-processing state machine shared by the multiple speech activity detection engines. This single global post-processing state machine outputs speech start and speech end events based on the fused speech probabilities at consecutive, uniform time steps. Furthermore, the internal post-processing results of each speech activity detection engine are not directly used as the final speech start or speech end event.
2. The method according to claim 1, characterized in that, The received input audio stream includes: receiving audio data blocks of unpre-fixed length, retaining the remaining audio samples that are less than one unified time step for the next processing, and generating the unified time step according to the audio sampling order; setting independent input buffers for each speech activity detection engine, and independently triggering inference when the corresponding input window and inference step conditions are met.
3. The method according to claim 1, characterized in that, The plurality of speech activity detection engines includes at least two speech activity detection engines; when using two speech activity detection engines, the measured speech start response delay of one speech activity detection engine is less than that of the other speech activity detection engine, and the measured probability fluctuation or impulse noise false trigger rate of the other speech activity detection engine is lower than that of the former speech activity detection engine; when using at least three speech activity detection engines, the plurality of speech activity detection engines with different measured steady-state speech judgment performance or speech boundary judgment performance are further included.
4. The method according to claim 1, characterized in that, For the i-th speech activity detection engine, at the t-th unified time step, a planned trigger indicator si,t, a valid update indicator ui,t, and an abnormal missing indicator fi,t are generated. When it is determined that inference should be triggered at the t-th unified time step based on the input window, inference step, and trigger phase of the speech activity detection engine, ,otherwise Only when the speech activity detection engine returns the original speech probability that matches the time step identifier and has a valid value before the preset processing deadline, ,otherwise ;when and When the current non-updated status is determined as planned non-updated; when and And if at least one of the following occurs: inference timeout, no valid output, abnormal output value, or mismatched time step identifier, The current unupdated state is identified as an abnormal missing state; for a unified time step that has been fused, the probability of the original speech arriving afterward will not be written back to that unified time step.
5. The method according to claim 4, characterized in that, For the i-th voice activity detection engine, maintain the latest effective probability and probability retention duration ai,t; when At that time, update the latest effective probability with the current effective original speech probability and let ;when Furthermore, if a valid original speech probability has already been generated, the latest valid probability is used as the current aligned probability and set... The normal hold-over grace period Gi is determined based on the maximum normal interval between two adjacent planned triggers by the voice activity detection engine, and then... Determine the duration of excess retention; in the validity indicators At that time, according to Determine the probability of freshness hi,t, where This ensures that unplanned non-updates caused by reasoning steps are not equated with abnormal obsolescence within the normal retention grace period, and that the retention probability exceeding the normal update rhythm decreases freshness as the excess retention period increases.
6. The method according to claim 5, characterized in that, Before the i-th speech activity detection engine generates a valid raw speech probability for the first time, its aligned probability is set to a preset neutral probability pn, and the validity flag ei,t and the probability freshness hi,t are set to 0; when When, set ei,t to 1; when If the probability holding time exceeds the maximum holding time Ai,max, or if the current output has at least one of the following anomalies: not finite, exceeding the legal probability range, or a mismatch in the unified time step identifier, ei,t is set to 0 and remains invalid until the next valid raw speech probability is generated; when a speech activity detection engine regenerates a valid raw speech probability from an invalid state, it enters the recovery phase and generates a recovery confidence vi,t based on the number of consecutive valid updates since recovery; let ni,t be the number of consecutive valid outputs obtained at the planned trigger time since recovery, and the recovery confirmation length be... and in accordance with The recovery confidence level is determined and gradually increased from less than 1 to 1. If an abnormal loss occurs again during the recovery phase, the recovery confidence level is reset to 0.
7. The method according to claim 6, characterized in that, The multidimensional causal temporal features include at least two of the following categories: the aligned probability of the current unified time step, the planned triggering indicator, the effective update indicator, the abnormal missing indicator, the probability retention duration, the excess retention duration, the probability freshness, the validity flag, and the recovery confidence vi,t; the causal moving average and probability difference within at least one historical window; the probability aggregation statistics and divergence of multiple effective speech activity detection engines; and the cross features between different speech activity detection engines.
8. The method according to claim 7, characterized in that, Let M be the number of voice activity detection engines, W be the preset historical window length, and W be the actual window length at the t-th unified time step. The causal moving average of the i-th speech activity detection engine is Probability difference in At that time ,exist At that time ; The number of effective engines is ; when At that time, the mean probability of an effective engine is , The degree of divergence is ; when At that time, and d t Set to 0.
9. The method according to claim 7, characterized in that, The multidimensional causal time-series features are calculated using a fixed-length circular buffer. The fixed-length circular buffer stores only the multi-engine probability vectors and corresponding state variables of the current unified time step and previous times. When the fixed-length circular buffer reaches its maximum length, the newly written data overwrites the oldest historical data.
10. The method according to claim 1, characterized in that, Prior to time alignment, the raw speech probabilities newly generated by at least one speech activity detection engine are probabilistically calibrated, including any one of Pratt scaling, temperature scaling, piecewise linear calibration, or isotonic regression. Under the conditions of independent calibration dataset and the same evaluation threshold or the same post-processing parameters, if the calibrated probability shows at least one of the following conditions relative to the original speech probability before calibration: increased expected calibration error, increased negative log-likelihood, or decreased F1, the original speech probability of the speech activity detection engine remains unchanged.
11. The method according to claim 8, characterized in that, The learning-based fusion model outputs the basic fusion score gi,t of the i-th speech activity detection engine at the t-th unified time step; the basic fusion score is reliably corrected based on at least one of the probabilistic freshness hi,t, recovery confidence vi,t, and abnormal missing information fi,t to obtain the corrected fusion score g'i,t; in one embodiment, according to... The corrected fusion score is determined, where λi, κi, and νi are non-negative parameters, and εh and εv are lower limit constants greater than 0; when at least one validity flag is 1, let mt be the maximum corrected fusion score of each valid speech activity detection engine, according to... Determine the effective score normalization measure, according to Determine the fusion weights and follow the rules. The fused speech probability is determined, wherein the fusion weight of the invalid speech activity detection engine is 0, and .
12. The method according to claim 11, characterized in that, When all validity flags are 0, a preset silence probability is output and a degradation process is performed. The degradation process includes: when the global post-processing state machine is in a silence state, it remains silent and does not output a new voice start event; when the global post-processing state machine is in a voice state, it remains in a voice state for a preset fault tolerance time. If there is still no valid voice activity detection engine after the preset fault tolerance time, a voice end event is output or a silence confirmation is completed according to the preset silence probability.
13. The method according to claim 11, characterized in that, The learning-based fusion model includes a multi-output model with M scoring outputs, or includes M scoring sub-models corresponding to M speech activity detection engines respectively; the learning-based fusion model is any one of gradient boosting decision tree, random forest, logistic regression model, shallow neural network, temporal convolutional network or lightweight self-attention network using causal masking.
14. The method according to claim 1, characterized in that, The global post-processing state machine includes a silence state, a voice candidate state, a voice state, and a silence candidate state, and maintains a voice consecutive acknowledgment count and a silence consecutive acknowledgment count, respectively; the voice entry threshold is θ1, and the silence exit threshold is θ0, and... The state transition is driven solely by the fused speech probability and the continuous speech confirmation count and the continuous silence confirmation count; the internal speech start event or speech end event of each of the multiple speech activity detection engines does not directly drive the state transition.
15. The method according to claim 14, characterized in that, When the fused speech probability is greater than or equal to θ1 for K1 consecutive unified time steps, a speech start event is output, and the speech start time position is adjusted forward according to the starting point backfill length B1; when the fused speech probability is less than or equal to θ0 for K0 consecutive unified time steps, a speech end candidate is determined, and a speech end event is output after the silence judgment condition is continuously met within the consecutive unified time steps corresponding to the end point delay length B0; K0, K1, B0 and B1 are all unified time steps.
16. The method according to claim 15, characterized in that, The model parameters of the learning-based fusion model and the post-processing parameters of the global post-processing state machine are optimized in stages or alternately. The optimization is performed on validation data that is isolated from the training data and the final test data. The validation data includes at least two of the following scenarios: normal continuous inference scenario, planned non-update scenario caused by multiple inference steps, inference timeout or output abnormal scenario, recovery scenario after continuous failure, and impulse noise scenario. The goal is to maximize the minimum F1 score among multiple validation scenarios, or to maximize the average recall rate with the constraint that the F1 score of each validation scenario is not lower than a preset lower limit.
17. The method according to claim 16, characterized in that, Keeping the model parameters of the learning-based fusion model unchanged, different post-processing parameter groups are called according to the application mode; when the application mode is the general speech segmentation mode, the comprehensive performance balancing parameter group is called; when the application mode is the automatic speech recognition front-end mode, conference transcription mode, or real-time call mode, the recall priority parameter group is called.
18. The method according to claim 1, characterized in that, include: Obtain training audio with voice activity annotations; The training phase is planned by generating trigger indicators based on a unified time step consistent with online inference, the input windows of each speech activity detection engine, the inference step, and the trigger phase. Training multidimensional causal temporal features are generated according to preset processing deadlines, time alignment rules, normality preservation rules, abnormal missing data determination rules, validity state update rules, recovery state update rules, and causal feature extraction rules consistent with online inference. Unupdated data due to not reaching the planned inference time is considered planned unupdated samples, while data at the planned inference time but without valid output due to inference timeout, invalid output, or mismatched time step identifiers is considered abnormal missing samples. A learning-based fusion model is trained based on the training multidimensional causal temporal features and corresponding speech activity labels. Post-processing parameters of the global post-processing state machine are searched based on the fusion speech probability on validation data isolated from the training data. Target model parameters and target post-processing parameters are determined based on the evaluation results of speech start and end events relative to the labeled boundaries. The target model parameters and target post-processing parameters are finally evaluated using test data isolated from both the training and validation data.
19. The method according to claim 18, characterized in that, wherein... The number of speech activity detection engines is M. Scene-balanced sampling and speech boundary weighting are used when training the learning-based fusion model; the probability of fused speech is limited to... Internal ,in ; Define the loss at the t-th unified time step as , And in accordance with Determine the training loss. Where B is the set of samples at a uniform time step in a mini-batch. For voice activity tags, For sample weights, samples located within a preset neighborhood of the speech start or end boundary have a higher weight than samples outside the boundary. For differentiable multi-output models, end-to-end training is performed based on L. For M scoring sub-models composed of gradient boosting decision trees or random forests, the weights are determined based on the aligned probabilities of each effective speech activity detection engine and y. t The error between the parameters is used to construct a normalized reliability target, and the M scoring sub-models are trained to output a fusion score corresponding to the normalized reliability target.
20. A heterogeneous multi-engine causal fusion system for streaming speech activity detection, employing the method described in claim 1, characterized in that, It includes an input buffer module, a multi-engine inference module, a time alignment module, a causal feature extraction module, a learning-based fusion module, and a post-processing module; the input buffer module is used to receive the input audio stream and generate continuous uniform time steps according to a preset time step. The multi-engine inference module is used to input the input audio stream into multiple heterogeneous speech activity detection engines, and generate a planned triggering indicator based on the input window, inference step, and trigger phase of each speech activity detection engine to obtain the original speech probability associated with the engine identifier and the unified time step identifier. The time alignment module is used to update the latest effective probability of a speech activity detection engine with the effective original speech probability and determine the current aligned probability when a speech activity detection engine generates a valid original speech probability before the preset processing deadline of the current unified time step. When no valid original speech probability is generated in the current unified time step, the latest effective probability is used without waiting for a new output, and the module uses the planned triggering indicator. The system distinguishes between planned non-updates and abnormal missing data, generating valid update indicators, abnormal missing data indicators, probability retention duration, probability freshness, and validity flags, without writing back late results for unified time steps that have already been fused. The causal feature extraction module extracts multi-dimensional causal temporal features without using future information based on the multi-engine probability vectors and corresponding state variables of the current unified time step and previous times. The learning-based fusion module adjusts the fusion score of each speech activity detection engine according to at least one of probability freshness and validity status, performs mask normalization based on the validity flag, and weights and sums the aligned probabilities of each valid speech activity detection engine according to the normalized fusion weights to obtain the fused speech probability. The post-processing module is used to input the fused speech probability into a single global post-processing state machine shared by the multiple speech activity detection engines, and output speech start event and speech end event.
Citation Information
Patent Citations
System and method for multi-stream object-speech detection and channel fusion
CN111370014B
Voice detection method and device, electronic equipment and storage medium
CN111696580A
