A speech recognition-based emotion monitoring method for nursing of thyroid and breast

By constructing a perturbation subspace and using confidence-weighted semantic evidence through a nursing event window, the problem of distinguishing between short-term physiological voice changes and persistent negative emotions in breast and thyroid care was solved. This reduced false alarms and preserved key emotional evidence, resulting in more accurate emotion monitoring.

CN123182706APending Publication Date: 2026-11-27NO 2 PEOPLES HOSPITAL HUAIAN CITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611290676.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to distinguish between short-term physiological voice changes caused by nursing events and persistent negative emotions across events. General models and fixed thresholds lead to misjudgments, missed judgments, and invalid alarms, and individual dynamic baselines are easily contaminated.

Method used

By employing nursing timeline alignment, parallel feature representation, event type perturbation subspace projection suppression, individual stage baseline comparison, and dual-state channel joint judgment, perturbation representations of pre-event, response, and recovery windows of nursing events are constructed. Projection margin and confidence-weighted semantic evidence are retained to form emotional residuals. Short-term deviations are absorbed by event response states and non-attenuating evidence is retained by combining cross-event cumulative states.

Benefits of technology

It reduced false alarms caused by postoperative hoarseness, pain, and nursing stimulation, reduced missed detections caused by the deletion of entire audio segments, and reduced the contamination of the dynamic baseline by physiological abnormalities and persistent negative emotions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182706A_ABST
    Figure CN123182706A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on speech recognition's emotion monitoring method of nursing of methionine, belong to medical nursing information processing field, to solve the problem that postoperative physiological speech change and continuous negative emotion are difficult to distinguish and general model fixed threshold is easy to misjudge, the application obtains patient voice, nursing stage and nursing event timing, parallelly forms sound quality, prosody and semantic features, uses event before, response and recovery window to construct event type disturbance subspace, separates nursing event related projection component from mixed speech representation and generates emotional residual and its confidence, then combines patient stage baseline, event response state and cross-event cumulative state to output alarm, temporary alarm or supplementary sampling prompt, realizes the technical effect of suppressing short physiological disturbance and retaining continuous emotional evidence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical and nursing information processing, and in particular to a method for monitoring emotions in breast and thyroid care based on speech recognition. Background Technology

[0002] Voice emotion monitoring infers a speaker's emotional state through acoustic features, prosodic variations, and semantic evidence in speech recognition text, and has been gradually applied to nursing follow-up, ward interactions, and patient status assessment. Existing solutions typically employ emotion recognition models trained on the general population and use a uniform feature distribution and fixed decision thresholds to classify continuous or segmented speech.

[0003] Patients with thyroid and breast conditions experience different physiological interferences during the perioperative period compared to typical speech emotion recognition scenarios. Postoperative hoarseness and limited vocalization after thyroid surgery alter the fundamental frequency availability, harmonic-to-noise ratio, and duration of vocalization. Postoperative pain, drainage tube traction, and nursing procedures after breast surgery cause short-term changes in energy, speech rate, pauses, and word choice. These changes may be mixed with persistent negative emotions caused by disease diagnosis, pathological results, surgical treatment, and changes in body image, resulting in a mixed effect on speech representation. Directly deleting entire segments of speech during nursing events would result in the loss of emotional evidence that persists before and after the event, while indiscriminately inputting them into a general model could easily trigger invalid alarms.

[0004] Furthermore, different patients have different baseline voice quality, speaking habits, and emotional expression patterns, and the voice status of the same patient will also change dynamically before, after, and during the recovery phase. If baseline updates do not exclude pain aggravation, drainage changes, abnormal voice quality, or persistent negative semantic windows, the dynamic baseline may be contaminated by physiological abnormalities or negative emotions; if the patient phase sample is insufficient and there is no mechanism for regression to the group phase parameters, it is difficult to reliably establish individual thresholds.

[0005] Therefore, there is a need for a method for monitoring emotions related to breast and thyroid care that can address the shortcomings of existing technologies. Summary of the Invention

[0006] One objective of this invention is to propose a speech recognition-based method for monitoring emotions in breast and thyroid care. Addressing the limitations of existing technologies in distinguishing between short-term physiological speech changes caused by nursing events and persistent negative emotions across events, as well as the problems of misjudgments, missed judgments, and invalid alarms caused by general models, fixed thresholds, and easily contaminated dynamic baselines, this invention proposes a technical solution involving nursing timeline alignment, parallel feature representation, event type perturbation subspace projection suppression, individual stage baseline comparison, and joint judgment via dual-state channels. By constructing perturbation representations through pre-, response, and recovery windows for similar nursing events, retaining projection margins and confidence-weighted semantic evidence to form emotional residuals, and maintaining stage baselines through joint admission and group regression, this invention utilizes event response states to absorb short-term deviations and utilizes cross-event cumulative states to retain non-attenuating evidence. This invention effectively reduces false alarms caused by postoperative hoarseness, pain, drainage traction, and nursing stimuli, while also reducing missed judgments caused by the deletion of entire speech segments.

[0007] This invention provides a method for monitoring emotions in breast and nail care based on speech recognition, comprising:

[0008] S1. Obtain the patient's voice, nursing stage record, and nursing event time record of the breast cancer patient; perform effective voice segment detection on the patient's voice to obtain the effective patient voice corresponding to the nursing stage and nursing event time sequence.

[0009] S2. Extract voice quality and vocal ability features, prosodic emotion features and semantic emotion features from the effective patient speech in parallel, and combine the extracted features according to the acquisition time to obtain a mixed speech representation;

[0010] S3. Construct an event type perturbation subspace based on the event pre-window, event response window, and event post-recovery window corresponding to the current nursing event type. Decompose the mixed speech representation into projection components and projection margins within the event type perturbation subspace. Generate emotional residuals and their confidence levels based on the projection margins and the semantic emotion features.

[0011] S4. Compare the emotional residuals with the patient's baseline at the corresponding care stage to obtain the individual deviation sequence;

[0012] S5. Update the event response status and cross-event cumulative status according to the nursing event time sequence and the individual deviation sequence respectively, and generate nursing emotion alarm, postponement alarm or supplementary collection prompt based on the event response status, the cross-event cumulative status and the confidence of the emotion residual.

[0013] Optionally, S1 includes:

[0014] Collect patient identification, nursing stage identification, voice collection timestamp, nursing event type, and start and end time of the nursing event;

[0015] Endpoint detection, signal-to-noise ratio detection, and intelligibility detection are performed on the patient's voice. Voice frames that meet the preset validity threshold are merged into the valid patient voice, and the valid patient voice is aligned with the nursing stage identifier and the start and end times of the nursing event.

[0016] Optionally, S2 includes:

[0017] The fundamental frequency availability, harmonic-to-noise ratio, cepstral peak value, jitter, flicker, and vocalization duration are extracted from the effective patient speech as the characteristics of the voice quality and vocal ability.

[0018] The fundamental frequency trajectory, energy trajectory, speech rate, pause ratio, and stress distribution are extracted as the prosodic emotional features;

[0019] Semantic evidence of negative emotion terms, negation structures, disease-related terms, and body image-related terms is extracted from the speech recognition text as the semantic emotion features;

[0020] The features are converted to the same acquisition timeline to form the hybrid speech representation.

[0021] Optionally, S3 includes:

[0022] For the same patient experiencing at least two similar nursing events within the same nursing phase, calculate the first feature difference of the event response window relative to the pre-event window and the second feature difference of the post-event recovery window relative to the event response window.

[0023] Based on the first feature difference and the second feature difference, feature components that are synchronous with nursing events and decay within the recovery window after the event are selected. The selected feature components are normalized into event type perturbation basis vectors, and the event type perturbation subspace is spanned by event type perturbation basis vectors of the same event type.

[0024] The boundaries of the pre-event window, event response window, and post-event recovery window are determined and recorded based on the start and end times of the nursing event and the voice acquisition interval of the corresponding nursing stage.

[0025] Furthermore, the current mixed speech representation is projected onto the event type perturbation subspace corresponding to the current nursing event type, and the projected component is used as the representation of the nursing event-related physiological perturbation. The projected component is then removed from the current mixed speech representation to obtain the projection margin.

[0026] The semantic fusion weights are determined based on the speech recognition confidence, semantic evidence completeness, and reconstruction error of the event type perturbation subspace. The projection margin is then fused with the semantic emotion features weighted according to the semantic fusion weights to generate the emotion residual and its confidence.

[0027] When there is no corresponding event type perturbation subspace, the perturbation subspace of the same nursing stage and nursing event type of the group is used as the backoff input, and the confidence of the emotional residual is multiplied by a backoff coefficient with a value greater than zero and less than one.

[0028] Optionally, S4 includes:

[0029] The time interval between the start time of the pre-event window and the end time of the post-event recovery window is defined as the nursing event isolation window;

[0030] Obtain pain scores and drainage status codes from the nursing records associated with the nursing event time records;

[0031] When a previous baseline admission window exists, the previous baseline admission window is used as the comparison window; when no previous baseline admission window exists, the baseline window of the same care stage of the group is used as the initial comparison window.

[0032] The differences in pain scores, drainage status encoding values, and norms of voice quality and vocal ability feature vector differences between the candidate speech window and the comparison window or the initial comparison window are calculated respectively to obtain the pain score increment, drainage status change, and voice quality and vocal ability feature change.

[0033] From the candidate speech windows outside the nursing event isolation window, select the candidate speech windows with pain score increment not greater than the pain threshold, drainage status change not greater than the drainage threshold, voice quality and vocal ability characteristic change not greater than the voice quality threshold, negative semantic evidence not greater than the semantic threshold, and emotional residual confidence not less than the confidence threshold as the baseline admission window.

[0034] Update only the stage baseline and threshold calibration set with version identifier using the baseline admission window, and save the admission reason, baseline version and corresponding care stage record;

[0035] The emotional residuals are standardized according to the current stage baseline to obtain the individual deviation sequence;

[0036] Furthermore, the fusion weight of the individual stage threshold and the group stage threshold is determined based on the effective sample size in the threshold calibration set, and the fusion weight increases with the increase of the effective sample size;

[0037] The individual stage threshold determined by the stage baseline and the group stage threshold determined by the group samples of the same care stage are weighted according to the fusion weight to obtain the rollback threshold used for status update and alarm determination.

[0038] When the effective sample size reaches the sample size threshold, the fusion weight is set to one, and the individual stage threshold is used as the backoff threshold.

[0039] Optionally, S5 includes:

[0040] Within the event pre-event window of a nursing event, the individual's offset sequence is input into the event response status update channel to update the event response status, and the positive accumulation of the cross-event cumulative status is frozen;

[0041] Within the event response window of a nursing event, continue to input the individual deviation sequence into the event response status update channel and keep the positive accumulation of the cross-event cumulative status frozen;

[0042] Within the post-event recovery window, when the emotional residual decays synchronously with the projected component, the event response state and the cross-event cumulative state decay according to their respective decay coefficients. When the emotional residual does not decay with the projected component, the individual deviation sequence is input into the cross-event cumulative state update channel to continue accumulating the cross-event cumulative state.

[0043] Outside the nursing event isolation window, the individual deviation sequence is input into the cross-event cumulative state update channel, and the event response state value at the end of the corresponding event response window is used as the state constraint quantity that limits the single increment of the cross-event cumulative state.

[0044] Furthermore, based on the backoff threshold, a cross-event cumulative state entry threshold and a cross-event cumulative state exit threshold with values ​​less than the cross-event cumulative state entry threshold are set.

[0045] When the confidence level of the emotional residual is less than the confidence threshold, the supplementary sampling prompt is output first, and the nursing emotional alarm and the postponement alarm are prohibited from being output.

[0046] When the confidence level of the emotional residual is not less than the confidence threshold, and the number of windows in which the cross-event cumulative state continuously reaches the cross-event cumulative state entry threshold reaches the continuous window number threshold, the nursing emotion alarm is output and the cooling period is initiated.

[0047] The nursing emotion alarm will exit when the cross-event cumulative state is not greater than the cross-event cumulative state exit threshold and the cooling period ends.

[0048] When the confidence level of the emotional residual is not less than the confidence threshold, the event response state reaches the event response state threshold, and the cross-event cumulative state does not reach the cross-event cumulative state entry threshold, the delayed alarm is output.

[0049] Record alarm status, threshold version, and judgment evidence;

[0050] Furthermore, the emotion assessment records corresponding to the voice collection time and reviewed by nursing staff were used as reference results, and calibration sample sets were established according to the corresponding nursing stages for voice recognition confidence, semantic evidence completeness, and reconstruction error and emotion residual reliability.

[0051] For each candidate threshold in the preset candidate set of judgment thresholds, calculate the proportion of samples whose judgment results obtained by dividing the emotion residuals by the candidate threshold are consistent with the reference results, determine the candidate threshold with the highest proportion of samples as the emotion residual judgment threshold, and obtain the emotion residual judgment result based on the emotion residual judgment threshold.

[0052] The calibration coefficients of each input quantity are determined based on the proportion of samples that are consistent with the emotion residual determination results and the reference results. The semantic fusion weights are constrained based on the calibration coefficients, and the calibrated emotion residual confidence is input into the alarm determination of step S5.

[0053] When the calibration sample size is less than the calibration sample size threshold, the calibration coefficient of the same nursing stage in the population is used and a record of the reason for supplementary sampling is generated.

[0054] The beneficial effects of this invention are:

[0055] 1. An event type perturbation subspace is constructed by using an event pre-window, event response window, and event post-recovery window corresponding to the nursing event type. Projective decomposition is performed on the mixed speech representation so that changes in voice quality and vocal ability that are synchronous with the nursing event and decay in the recovery window are represented as projection components. The projection margin and semantic emotion evidence form an emotion residual, thereby suppressing short-term physiological disturbances caused by postoperative hoarseness, pain, and nursing stimuli while preserving usable speech.

[0056] 2. By combining the admission criteria of event isolation, changes in nursing records, changes in voice quality, negative semantic evidence, and confidence in emotional residuals, the stage baseline and threshold calibration set with version identifiers are updated only with windows that meet the admission criteria. Furthermore, when the initial baseline and patient stage samples are insufficient, the parameters of the same stage in the population are introduced, which can reduce the contamination of dynamic baselines by physiological abnormalities or persistent negative emotions.

[0057] 3. By handling deviations within the event window and non-attenuating evidence across events through event response status and cross-event accumulation status respectively, and combining entry threshold, exit threshold, duration window number threshold, cooldown period and low confidence supplementary sampling priority to generate mutually exclusive output, invalid alarms triggered by short-term disturbances can be reduced, while retaining alarm paths with continuous negative sentiment. Attached Figure Description

[0058] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0059] Figure 1 This is a flowchart of a speech recognition-based method for monitoring emotions in breast and nail care according to the present invention.

[0060] Figure 2 This is a flowchart illustrating the construction of the S3 event type perturbation subspace and the generation of emotion residuals in this invention. Detailed Implementation

[0061] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0062] refer to Figures 1-2 A method for monitoring emotions in breast and nail care based on speech recognition, comprising:

[0063] S1. Obtain the patient's voice, nursing stage record, and nursing event time record of the breast cancer patient; perform effective voice segment detection on the patient's voice to obtain the effective patient voice corresponding to the nursing stage and nursing event time sequence.

[0064] S2. Extract voice quality and vocal ability features, prosodic emotion features and semantic emotion features from the effective patient speech in parallel, and combine the extracted features according to the acquisition time to obtain a mixed speech representation;

[0065] S3. Construct an event type perturbation subspace based on the event pre-window, event response window, and event post-recovery window corresponding to the current nursing event type. Decompose the mixed speech representation into projection components and projection margins within the event type perturbation subspace. Generate emotional residuals and their confidence levels based on the projection margins and the semantic emotion features.

[0066] S4. Compare the emotional residuals with the patient's baseline at the corresponding care stage to obtain the individual deviation sequence;

[0067] S5. Update the event response status and cross-event cumulative status according to the nursing event time sequence and the individual deviation sequence respectively, and generate nursing emotion alarm, postponement alarm or supplementary collection prompt based on the event response status, the cross-event cumulative status and the confidence of the emotion residual.

[0068] In this specific embodiment, S1 includes:

[0069] In this specific embodiment, the breast and thyroid nursing emotion monitoring system is deployed on the hospital intranet server and bedside nursing terminal. After the patient authorizes the system, the bedside nursing terminal establishes a voice collection task with the patient's identity as the primary key. The task record includes the patient's identity, nursing stage identifier, voice collection timestamp, nursing event type, nursing event start and end time, and collection device identifier. The nursing stage identifier is read from the versioned stage dictionary of admission, preoperative, early postoperative, drainage tube indwelling period, and discharge follow-up. The nursing event type is read from the event dictionary of dressing change, drainage observation, wound treatment, pain inquiry, and functional exercise.

[0070] The bedside nursing terminal acquires patient voice at a sampling rate of 16 kHz, a quantization bit depth of 16 bits, and a mono PCM format. Each acquisition file is written with a task key, file start and end timestamps, and clock synchronization version. At the start of acquisition, the hospital time service is used to correct the clock deviation between the bedside terminal and the nursing record system to within 50 ms. Records with missing event start and end times or clock deviations exceeding 50 ms are written to a timing verification status and are not sent to subsequent feature processing.

[0071] The server divides continuous speech into candidate frames with a frame length of 25 ms and a frame shift of 10 ms. For each frame, it performs pre-emphasis, DC component removal, and noise floor estimation. The endpoint detector based on short-time energy, zero-crossing rate, and spectral entropy outputs the posterior probability of the speech. When the posterior probability is not less than 0.6 for 8 consecutive frames, the effective segment is enabled. When the posterior probability is less than 0.4 for 12 consecutive frames, the effective segment is disabled. Effective segments with an adjacent interval of no more than 300 ms are merged to preserve short pauses.

[0072] Calculate the signal-to-noise ratio of the speech segments obtained from endpoint detection , The symbol represents the signal-to-noise ratio of a speech segment, and the unit is dB. The symbol represents the mean squared PCM amplitude of all valid speech frames in the speech segment, expressed in full-scale squared (FS²). The symbol represents the median of the squared PCM amplitude values ​​of all non-speech frames within the first 500 ms of a speech segment; both are in FS². The symbol represents a smoothed power quantity in units of FS² and is taken as 10 to the power of negative 6 times the no-load noise power of the equipment. The signal-to-noise ratio is not less than 10 dB when the test is passed.

[0073] The system converts speech segments detected by signal-to-noise ratio (SNR) into 80-dimensional log-Mel filter bank features, which are then input into a medical vocabulary-enhanced Conformer-CTC speech recognizer. This recognizer includes a 12-layer encoder, 4-head self-attention, and 256-dimensional hidden states. It is trained using desensitized Mandarin nursing dialogues and thyroid and breast specialist terminology transcription samples. The stopping condition is that the CTC loss converges and the character error rate of the development set does not decrease for three consecutive rounds. During inference, a prefix beam search with a width of 10 is used to output the character, temporal boundary, and posterior probability, and then the intelligibility is calculated. , The symbol represents dimensionless intelligibility with values ​​ranging from 0 to 1. The symbol represents the number of non-whitespace characters with a post-decoding probability of not less than 0.65, and the unit is "number". The symbol represents the total number of non-whitespace characters in the decoding path, and the unit is the number of characters. When the total number of characters is zero, the speech segment is judged as invalid. Otherwise, the speech segment passes the intelligibility test if the intelligibility is not less than 0.75 and the duration of the speech segment is not less than 0.8 seconds.

[0074] For speech segments that pass the endpoint, signal-to-noise ratio, and intelligibility tests simultaneously, the system merges them into valid patient speech based on the frame-level acquisition timestamp, assigns a globally unique speech segment identifier to them, and writes the start and end timestamps, signal-to-noise ratio, intelligibility, recognized text references, and quality version. For speech segments that fail, only the failure reason code and time range are saved, and they are not entered into S2.

[0075] The server queries the nursing event time index using the midpoint timestamp of the valid patient voice recordings. If the midpoint is within the start and end interval of the nursing event, it is associated with the event. If the midpoint is outside the interval, it is associated with the previous event that is closest in time and no more than 30 minutes away. If it is more than 30 minutes away, it is marked as a non-event voice recording. Overlapping events are determined by descending order of time coverage ratio, ascending order of event start time, and ascending order of record number to determine a unique primary event. The remaining events are written to the accompanying event field.

[0076] The system writes the aligned and valid patient voices into the patient stage voice database. Each record is indexed by a composite index consisting of patient identity, nursing stage, event record number and voice segment identifier. It also saves voice file reference, collection time range, validity index, main event and accompanying event fields, and uses the record queue number as the input pointer for S2 parallel feature extraction.

[0077] The preset validity threshold is composed of the endpoint posterior probability threshold, the 10 dB signal-to-noise ratio threshold, the 0.75 intelligibility threshold, and the 0.8 s duration threshold. The system only merges speech frames that meet the preset validity threshold into the valid patient speech. If any threshold is not met, the merging flag of the candidate segment is canceled and the system rolls back to the boundary of the previous confirmed speech segment. For inputs with missing frames, reversed timestamps, or missing noise floor, the merging state is frozen and an infeasibility reason code is written. The system will only re-enter endpoint detection after re-acquisition or timing verification is completed.

[0078] In this specific embodiment, S2 includes:

[0079] The feature extraction service reads PCM data, recognized text, frame-level timestamps, nursing stage identifiers, and nursing event record numbers for the same speech segment from the patient stage speech library of S1. It establishes three parallel tasks according to the voice quality and vocal ability channel, prosodic emotion channel, and semantic emotion channel. The three tasks share the speech segment identifier and start time, and write feature values, validity flags, calculation versions, and abnormal reason codes into independent feature caches respectively.

[0080] The sound quality and vocal capability channel performs fundamental frequency tracking and periodic sound detection on the waveform after removing the first and last non-speech frames. It calculates the fundamental frequency availability within the fundamental frequency search range of 60 to 500 Hz, and calculates the harmonic noise ratio, cepstral peak value, jitter rate of adjacent period duration, and flicker rate of adjacent period amplitude for the effective fundamental frequency frames. At the same time, it sums the vocal segment durations obtained from the endpoint detection as the vocal duration, forming a six-dimensional vector containing fundamental frequency availability, harmonic noise ratio, cepstral peak value, jitter, flicker, and vocal duration.

[0081] Baseband availability by calculate, The symbol represents the dimensionless fundamental frequency availability, with values ​​ranging from 0 to 1. The symbol represents the number of speech frames with stable periodic peaks, and the unit is frames. The symbol represents the total number of speech frames and the unit is frames. The feature combination of the speech segment is terminated when the total number of speech frames is zero. The jitter rate and flicker rate are both obtained by dividing the average difference between adjacent cycles by the average value of the corresponding cycle and are both dimensionless proportions.

[0082] The prosodic emotion channel generates fundamental frequency trajectory and logarithmic energy trajectory on the same frame parameters. For frames without fundamental frequency, linear interpolation of no more than 50 ms is performed, and the speech recognition character boundaries are projected onto the frame time axis. The speech rate is obtained by the number of syllables within a unit effective speech duration, and the pause ratio is obtained by dividing the cumulative pause duration by the total duration of the speech segment. The interval where the logarithmic energy is higher than 1.5 times the median absolute deviation of the segment and lasts for no less than 80 ms is taken as the stress interval. The number of stresses, center time and relative energy are recorded.

[0083] The semantic emotion channel performs sentence segmentation, medical synonym normalization, and negation scope annotation on the identified text. It matches negative emotion terms, negation structures, disease-related terms, and body image-related terms in a versioned dictionary reviewed by nursing staff. The dictionary record includes term category, base strength, negation flip flag, scope length, applicable scope of nursing stage, and version number. In this specific implementation, a body image-related term is incision appearance, base strength is 0.7, scope length is 6 characters, and it is applicable to the early postoperative period and the discharge follow-up stage.

[0084] Evidence for each semantic category Calculation, where The symbol represents when Less than Time to take ,when Greater than Time to take In other cases, take Deterministic truncation function, , and The symbols represent the truncated value, lower bound, and upper bound, respectively, and all three use the same dimension. This specific implementation will be discussed later. This definition is used in all cases; Symbols represent categories 0 to 1 dimensionless semantic evidence, The symbol represents a category index with four value sets: negative emotions, negative structures, disease concerns, and body image concerns. It is used as a discrete index and is not applicable to units. Symbols represent categories The number of matched terms, expressed in units of 1, and with a value that is a non-negative integer. The symbol represents the first in the versioned dictionary. The dimensionless base strength of each hit term, ranging from 0 to 1. The symbol represents a dimensionless coefficient between -1 and 1, obtained by first determining the sign according to the dictionary negation flip sign and the scope length, and then multiplying it by the average posterior probability of the characters covered by the term. Symbols represent numbers from 1 to... The hit term index is not applicable as a discrete index. The symbol represents the dimensionless length scale formed by comparing the maximum value obtained by dividing the number of valid characters by 10 with 1.

[0085] The system projects the three types of features onto a 10-second acquisition time unit. Speech segments across units are allocated according to the effective speech duration. Continuous features are weighted by the effective duration. Term evidence is obtained by the arithmetic mean of the maximum value and the weighted average. Fundamental frequency trajectory and energy trajectory are resampled at 50 equally spaced points. Each time unit stores the patient identification, nursing stage identification, event record number, start and end time, and the effective proportion of each channel.

[0086] Each numerical feature is arranged according to Implement robust normalization. Using the truncation function defined in this S2 semantic evidence segment, Symbols represent time units Upper The dimensionless normalization characteristic of dimension, The symbol represents the first to the last segment covered by the current speech segment. A 10-second time unit index, and as a discrete index, no unit is applicable. The symbol represents the total number of 10-second time units covered by the current speech segment, which is a positive integer determined by the start and end times of the speech segment and is expressed in units. The symbols represent the number of features from 1 to the feature dimension. Dimensional indexes and units are not applicable when used as discrete indexes. The symbol represents the total dimension of the mixed speech representation features recorded in the version dictionary, which is a positive integer and is represented by a number of features. Symbolic representation of the time series feature library in time unit The first normalized reading The dimensional eigenvalues, whose physical units are recorded dimension by dimension in the feature dimension version dictionary, The symbols represent the same nursing stage in the standardization set. The median of the dimensional features and with Same units The symbol represents the result obtained by multiplying the absolute deviation of the median in this dimension by 1.4826 and... Units of the same scale Symbolic representation and The same non-zero smoothing quantity is taken as 10 to the power of negative 6 times the legal range width of that dimension;

[0087] The time combiner connects the normalized sound quality and vocal ability features, prosodic trajectory and statistical features and four types of semantic evidence in ascending order of acquisition time to form a mixed speech representation. It records the feature dimension version, dictionary version, calibration version and channel effective bitmap. When the effective ratio of any required channel is less than 0.6, an incomplete feature flag is written and sent to the supplementary acquisition candidate queue.

[0088] The system writes the mixed speech representation into the temporal feature library according to patient identity, nursing stage, event record number and time unit index, saves the start and end positions of the three types of sub-vectors and the feature incompleteness flag, and uses the ordered mixed speech representation sequence under the same event record number as the input for S3 event window segmentation and perturbation subspace construction;

[0089] When the average posterior probability of a character in speech recognition is less than 0.60, the effective proportion of any acoustic feature channel is less than 0.60, the recognized text is empty, the character temporal boundary coverage is less than 0.80, the dictionary version is unreadable, or the negation domain processing fails, the system does not use the zero values ​​of invalid channels in time combination. Instead, it marks the time unit as a low-confidence mixed speech representation, retains the effective channels and their bitmaps, and outputs the candidate reason for re-sampling. In subsequent subspace construction, this time unit is prohibited from becoming a perturbation basis vector sample, but it is allowed to enter the backoff process as the current observation to be calibrated. When the recognized text, character temporal boundary, dictionary version, and negation domain processing are all effective, but the number of hits of the four types of semantic terms is zero, the four types of semantic evidence are saved as valid all-zero dimensionless vectors and written into the semantic channel valid flag. It is allowed to enter the normal time combination, perturbation subspace sample screening, stage baseline, and negative example calibration, and no reason for re-sampling is generated.

[0090] In this specific embodiment, S3 includes:

[0091] The subspace processing service takes the full-order mixed speech representation stream organized by S2 according to patient identity, nursing stage identity, and absolute timestamp, and the start and end times of nursing events in S1 as inputs. For each current nursing event, it establishes a pre-event window, an event response window, and a post-event recovery window. In this specific implementation, the 6 minutes before the event starts are set as the pre-event window, the 2 minutes from the start of the event to the end of the event are set as the event response window, and the 12 minutes after the end of the event response window are set as the post-event recovery window. All boundaries are aligned with the boundary of the nearest 10-second acquisition time unit. The system queries the time units within the three windows according to the patient, nursing stage, and absolute time range. It does not use the source master event record number written in S1 as a query restriction, and writes the current processing event record number to the query result. At the same time, it retains the source master event, accompanying events, and non-event markers. When the same time unit falls into multiple processing windows, the unique processing assignment is determined according to the priority of the event response window, the post-event recovery window, and the pre-event window in sequence. When the priorities are the same, the processing assignment is determined by the ascending order of the event start time and the ascending order of the event record number to avoid repeated entry into differential and state calculations.

[0092] The system writes the start and end times, time unit range, voice acquisition interval, and event time version of the three windows into the event window record. If any previous or recovery window has fewer than 12 valid time units, the event is retained for current emotion processing but not for constructing the individual perturbation subspace, and the reason for insufficient window samples is written.

[0093] For the same patient, at least two complete windows of the same type of nursing event within the same nursing phase, calculate separately. and , The symbol represents the first The response window for this event is relative to the previous window. The dimensionless first eigenvalue difference vector. The symbol represents the first The recovery window for this event is relative to the response window. Dimensionless second eigenvalue difference vector The symbol represents the total dimension of the mixed speech representation features read from the S2 feature dimension version; it is a positive integer and the unit is 1. , and The symbols respectively represent the first Within the three windows of this historical event The effective duration-weighted mean vector of the dimensionless mixed speech representation is given, and the order of its components is determined by the same feature dimension version. The symbol represents the number of complete historical events of the same type from 1. A discrete index that does not apply to units. The symbol represents the total number of complete historical events in the window under the current patient, nursing stage, and event type; it is a positive integer obtained from the statistics recorded in the event window and the unit is the number of events.

[0094] For each feature dimension, if the absolute value of the first feature difference is not less than 1.5 times the standard deviation of the dimension in the non-event window of the same nursing stage, the second feature difference has the opposite sign to the first feature difference, and the absolute value of the difference between the recovery window and the previous window does not exceed 0.35 of the absolute value of the first feature difference, then the dimension is determined to be synchronous with the nursing event and decays within the recovery window. Dimensions that do not meet the conditions are set to zero, and candidate perturbation vectors are obtained.

[0095] The system first sets the L2 norm to no greater than 1. Candidate perturbation vectors are removed from the shared event sample set, and then the remaining vectors are sorted according to... Perform precise unitization. The symbol represents the first This incident A dimensionless unit perturbation basis vector with a norm of 1. The symbols represent those obtained after the aforementioned screening. Dimensionless candidate perturbation vector The symbol represents the total dimension of the mixed speech representation features read from the S2 feature dimension version; it is a positive integer and the unit is 1. The symbol represents the dimensionless L2 norm of the candidate perturbation vector. The symbol represents a discrete index from 1 to the number of retained event samples and does not apply to units. The symbol represents a dimensionless deletion threshold with a value of 10 to the power of negative 6;

[0096] The system only includes features with the same feature dimension version and a total feature dimension of 1. Furthermore, unit perturbation basis vectors with consistent component order hashes are arranged into a matrix in ascending order of event time. If any vector fails the dimension or component order verification, that vector is discarded and a version conflict is recorded. Singular value decomposition is performed on the verified matrix. Starting from the largest singular value, left singular vectors with a cumulative explained variance of not less than 0.85 and a number not exceeding 6 are retained. These are then orthogonalized using QR to obtain the orthogonal basis matrix of the event type perturbation subspace, based on patient identity, nursing stage, event type, feature dimension, and version. The subspace version number is generated by hashing the value, component order hash, and training event set hash. The version is recalculated every two new complete events of the same type.

[0097] Current mixed speech representation by and break down, Symbols represent time units of Dimensionless projection components of physiological perturbations related to nursing events. The symbol represents the total dimension of the mixed speech representation features read from the S2 feature dimension version; it is a positive integer and the unit is 1. The symbol indicates the current nursing event type. corresponding OK Column dimensionless orthogonal basis matrices whose column vectors satisfy , Symbols represent event types The number of perturbation basis vectors retained according to the cumulative explained variance rule is an integer from 1 to 6, with the unit being "number". Symbolic representation A dimensionless identity matrix of order 1. The symbols represent discrete indices of event types in the event dictionary and do not apply to units. Symbolic representation OK Transpose of the orthogonal basis matrix of columns Symbolic representation of the time series feature library in time unit Read Dimensionless mixed speech representation, The symbol represents the result after removing the projected components. Dimensionless projection margin The symbols represent the first to the second events in the current event window. A 10-second time unit index, and as a discrete index, no unit is applicable. The symbol represents the total number of 10-second time units defined by the start and end boundaries of the current event window; it is a positive integer and the unit is units.

[0098] Semantic fusion weights Sure, Using the truncation function defined in the S2 semantic evidence segment, Symbols represent time units 0 to 1 dimensionless semantic fusion weights, Symbols represent time units The input is the mean of the posterior probabilities of all valid characters recognized, and is a dimensionless quantity between 0 and 1. If no valid character is found, the input is marked as uncomputable. The symbol represents the dimensionless proportion of 0 to 1 obtained by dividing the number of categories that completed dictionary and negation scope processing by 4 among the four types of semantic evidence. Symbolic representation Dimensionless L2 norm divided by The reconstruction error obtained by truncating the sum of the dimensionless L2 norm and the smoothing factor to the power of 10⁻⁶ to the range of 0 to 1, when... The marker cannot be calculated if the L2 norm is not greater than the smoothing amount. , and The symbol represents a non-negative dimensionless calibration coefficient of 0 to 1 in the current nursing stage's published calibration version, and the sum of the three is 1. The symbols use the time unit index defined in the aforementioned projection decomposition segment of this S3 and do not apply to units; the system saves available bitmaps for the three reliability inputs. This formula is executed when all three can be calculated. If any one cannot be calculated, the calculation of the release version fusion weight, sentiment residual, and residual domain determination for that time unit is stopped, the confidence level is set to 0, and the reasons for low confidence uncertainty, incalculability, and related versions are written. A supplementary sampling prompt is generated, and this record must not update the S4 stage baseline or drive the S5 positive state accumulation;

[0099] The system uses the emotion assessment records reviewed by nursing staff as the reference result, freezes the calibration sample set including speech recognition confidence, semantic evidence completeness, reconstruction error and reference result according to the nursing stage, and fixes the initial calibration coefficients to 0.40, 0.30 and 0.30 and their initial versions. The system only uses the initial version to generate the initial semantic fusion weights and initial emotion residuals. The arithmetic mean of the absolute values ​​of each dimension of the initial emotion residuals is truncated to 0 to 1 as the candidate judgment value of the emotion residuals. For each candidate judgment threshold of 0.30 to 0.80 with a step size of 0.02, the proportion of samples whose judgment results are consistent with the reference result is calculated. The system determines the emotion residual judgment threshold ranked first in descending order of consistency proportion, ascending order of negative false alarm rate, and descending order of candidate threshold, and saves the residual domain threshold version.

[0100] After fixing the sentiment residual judgment threshold, the system bins the three reliability inputs in the frozen calibration sample set with a width of 0.1. The consistency ratio between the initial version sentiment residual judgment result and the reference result is used as the binning reliability. The portion of each input with a reliability exceeding 0.5 is considered a non-negative contribution. When the sum of the three contributions is greater than 0, each contribution is divided by the sum to obtain the three calibration coefficients of the released version. When the sum of the three contributions is equal to 0, normalization and new version release are not performed, and the initial coefficients of 0.40, 0.30, and 0.30 are maintained, or the reading group has been in the same stage. The coefficients are published, and the calibrated confidence is multiplied by 0.50. The reasons for insufficient reliability and supplementary sampling prompts are recorded. Subsequently, the semantic fusion weights, sentiment residuals and confidence are calculated only once for the published version. The published results are no longer used to update the thresholds or coefficients of this version, thus forming a fixed order without computational loops. When the calibrated sample size of the current nursing stage is less than 30, the published calibration coefficients of the same nursing stage in the group are read and the supplementary sampling reason record for insufficient sample size is generated. Each published version saves the frozen sample set hash, the initial version, the residual domain threshold version and three calibration coefficients.

[0101] Emotional residuals generate, Symbols represent time units of A dimensionless emotion residual vector. The symbol represents the total dimension of the mixed speech representation features read from the S2 feature dimension version; it is a positive integer and the unit is 1. and The symbols used are the same as those used in the projection decomposition segment and semantic fusion weight segment mentioned above in this S3. Definition of dimensionless projection margin and dimensionless fusion weight from 0 to 1 Symbolic representation is derived from four types of semantic evidence. The dimensional mixture representation components are obtained by partial least squares fitting. A dimensionless semantic mapping matrix with 4 rows and 4 columns. The symbol represents S2 in time unit The output is a four-dimensional, dimensionless semantic evidence vector of 0 to 1, arranged in the order of negative emotions, negative structures, disease concerns, and body image concerns. and Having the same dimension, component order, and dimensionless scale, The symbol represents a discrete index of a 10-second time unit within the current event window and does not apply to units; the system truncates the arithmetic mean of the absolute values ​​of each dimension of the sentiment residual of the published version to 0 to 1, and compares it with the threshold version of the same residual domain to obtain the sentiment residual judgment results of positive, negative or low confidence uncertainty. Then, the system performs ordinal regression on the weighted sum of the published versions of the three reliability inputs to obtain the calibrated sentiment residual confidence of 0 to 1.

[0102] The calibration samples for the semantic mapping matrix are taken from a frozen sample set within the same nursing phase, retaining patient, event type, feature dimension version, dictionary version, and nurse review results. Each sample is represented by an S2 four-dimensional semantic evidence vector. As input, As a monitoring target, Symbols represent time units corresponding Dimensionless supervisory target vector, The symbol represents the discrete index of the 10-second time unit to which the currently frozen sample belongs, and no unit is applicable. The symbol represents the total dimension of the mixed speech representation features read from the S2 feature dimension version bound to this sample; it is a positive integer and the unit is 1. The symbols represent dimensionless binary labels where 1 is assigned when the nursing staff identifies the emotion as negative and 0 is assigned when the emotion is not negative. The S3 projection margin definition is adopted; the system uses the first 80% of samples as the training set and the last 20% as the validation set, ordered by acquisition date. Time units of the same event are only included in the same set. For the training set... and Robust standardization is performed dimensionally using the number of digits and median absolute deviation in the training set. The number of partial least squares latent variables is enumerated from 1 to 4, not exceeding the number of training samples minus 1. A unique model is determined by ascending order of the validation set mean square error and then the number of latent variables, and the model is restored to the original feature scale. The release version is bound to the nursing stage, feature dimension version, dictionary version, training and validation sample set hash, standardized parameters, number of latent variables, and matrix hash. Candidate updates are triggered for every 30 new qualified verification samples. The release is only triggered when the mean square error of the candidate model validation set is no higher than 1.02 times that of the current version and all matrix elements are finite values. If there are fewer than 30 samples of the same stage for an individual or institution, the released matrix of the same nursing stage and the same feature dimension version and dictionary version for the group is read. If the version of the group is also unavailable or the matrix verification fails, the current time unit is set to low confidence uncertainty, a supplementary sampling prompt is generated, and entry into S4 admission and S5 positive accumulation is prohibited.

[0103] For mixed speech representations located outside the isolation window of all nursing events, regardless of whether the S1 source main event field retains the most recent previous event, the system establishes a non-event processing record using the patient identity identifier, nursing stage identifier, and time unit index. The event type is written as the non-event sentinel value, the projection component is set as a dimensionless vector with the same dimension as the mixed speech representation, and the mixed speech representation itself is determined as the projection margin. Then, the same published calibration version, semantic mapping matrix, and residual domain threshold are used to generate emotion residuals, confidence, and judgment results. When all three reliability inputs are complete, the output of the non-event branch can enter the S4 baseline admission. When any reliability input cannot be calculated, the system writes a confidence of 0, low confidence uncertainty, and supplementary sampling reason according to the S3 low confidence branch and prohibits entry into the S4 baseline admission. The non-event branch does not construct or update the event type perturbation subspace and does not drive the S5 event response state.

[0104] If no perturbation subspace exists for individuals at the same stage and with the same event type, the system queries the perturbation subspace for the group at the same nursing stage and with the same event type as the fallback input. Regardless of whether the individual version or the group version is read, before projection, it verifies that the feature dimension version bound to the subspace version is consistent with the current mixed speech representation and that the number of rows in the orthogonal basis matrix is ​​equal to the current one. If the values ​​and component order hashes are consistent, projection decomposition is completed only when all three items pass. When using the group version, the calibrated confidence is multiplied by a backoff factor of 0.75. If the query fails or any version, row number, or component order verification fails, projection is not performed and no sentiment residual judgment is output. The current record is written as low confidence uncertainty and a supplementary collection reason record containing conflicting versions and expected versions is generated. Finally, the projected components, projection margin, sentiment residual, residual domain candidate judgment value, sentiment residual judgment result, calibrated confidence, feature dimension version, component order hash, subspace version, calibrated version, residual domain threshold version, and backoff flag are written into the sentiment residual time series library as input for S4 baseline comparison and S5 reliability calibration and alarm judgment.

[0105] In this specific embodiment, S4 includes:

[0106] The baseline management service takes the S3 emotion residual time series library and event window records as input. It defines the continuous interval between the start time of the pre-event window and the end time of the post-event recovery window for each nursing event as the nursing event isolation window. It saves the event record number, window start and end time, event type, time version and overlapping event list. Candidate voice windows do not participate in the stage baseline admission when there is a time intersection with any isolation window.

[0107] For candidate voice windows located outside of all isolation windows, the system queries nursing records using patient identification, nursing stage identification, and window time range, and reads pain scores and drainage status codes from 0 to 10. Drainage status codes are 0 for no drainage or tube removal, 1 for unobstructed drainage, 2 for poor drainage, and 3 for abnormal color or amount. The system also reads the signature record closest to the window point and within 2 hours. If any required nursing record is missing, exceeds 2 hours, or is unsigned, the corresponding difference is not calculated, and the candidate window is determined as not allowed entry. The reason for the missing nursing record is written, and a nursing record verification or re-collection task is generated. Only when the pain score, drainage status code, and S2 six-dimensional voice quality comparison are all valid will the subsequent five-item joint access process begin.

[0108] If a patient in the current nursing stage has an already admitted window with a time earlier than the current candidate window, the previous baseline admitted window with the most recent time is used as the comparison window. If no previous admitted window exists, the median window of samples in the same nursing stage, with an age difference of no more than 5 years and the same surgical procedure is read from the population baseline database as the initial comparison window, and a population rollback flag and population baseline version are written in it. The population initialization comparison window must simultaneously provide a representative value of pain score, a representative value of drainage status code, a six-dimensional dimensionless voice quality and vocal ability feature vector and its source window reference. If any field is missing, the current initialization is stopped, the candidate window is determined to be unadmitted, and a supplementary collection record is generated.

[0109] System Calculation , and , The symbol represents the increment of the pain score, expressed in points. and The symbols represent the 0 to 10 pain scores most recent (within 2 hours) from the candidate window and comparison window points retrieved from the nursing records, respectively, all in points. The symbol represents the dimensionless change in the coded flow state. and The symbols represent the dimensionless drainage status codes of 0 to 3 read at the points when the values ​​are taken in the two windows mentioned above. The symbols represent dimensionless changes in vocal quality and vocal capacity. and The symbols represent the six-dimensional dimensionless sound quality and vocal ability feature vectors of the candidate window and the comparison window obtained from the S2 time-series feature library. Each dimension has been calibrated according to the median of the same stage as described in S2, divided by the median absolute deviation scale and truncated to -3 to 3. The six-dimensional components are in the following order: fundamental frequency availability, harmonic-to-noise ratio, cepstral peak value, jitter rate, flicker rate and vocal duration.

[0110] In this specific implementation, the pain threshold is set to 1, the drainage threshold to 0, the voice quality threshold to 0.8, the negative semantic evidence threshold to 0.20, and the confidence threshold to 0.65. A candidate window is determined as the baseline admission window only if it simultaneously meets the following conditions: it is located outside the isolation window, the pain score increment is not greater than the pain threshold, the change in drainage status is not greater than the drainage threshold, the change in voice quality is not greater than the voice quality threshold, the negative semantic evidence is not greater than the semantic threshold, and the confidence level of the emotional residual is not less than the confidence threshold.

[0111] The baseline management service only updates the stage baseline and threshold calibration set for the corresponding nursing stage based on the baseline admission window. The stage baseline saves the median, median absolute deviation, effective sample size and last update time for each dimension of the emotional residual. Each update generates an incremental baseline version number and saves five judgment values ​​(pain, drainage, voice quality, semantics and confidence), admission reason, baseline version and corresponding nursing stage record in the admission log. The baseline is not changed if the admission window is not approved.

[0112] Current emotional residual Dimensional standardization Symbols represent time units of Dimensionless individual deviation vector The symbol represents the total dimension of the vector read from the feature dimension version bound by the S3 sentiment residual record; it is a positive integer and the unit is numbers. The notation follows the S3 emotion residual generation segment. Definition of dimensionless emotion residual vector The symbol represents the baseline version. The values ​​in the middle are calculated dimension-wise from the emotional residual samples of all admitted windows in the current nursing stage of this patient. A dimensionless median vector. The symbol represents the discrete index of the baseline version of the current nursing stage and does not apply to units. The symbol represents the result obtained by multiplying the absolute deviation of the median of the above samples by 1.4826. Dimensionless scale vector The symbol represents a value of 10 to the power of -3. dimensional dimensionless smooth vector The symbol indicates the first to the last number covered by the current baseline version. A discrete index with 10-second time units and no applicable units. The symbol indicates the baseline version. The total number of 10-second time units with defined start and end times is a positive integer and the unit is a number;

[0113] The system retains the sign of each individual deviation vector and truncates it to -6 to 6. It writes the signed individual deviation vector, the separately calculated absolute deviation of each dimension, the time unit index, the nursing stage identifier, the event record number, the emotional residual confidence, the baseline version, and the admission status into the individual deviation sequence. It writes an initialization flag into the time unit that uses the group initialization comparison window. The S4 direction learning and S5 deviation intensity only read the individual deviation vector with the sign retained. The absolute deviation is only used for quality and amplitude statistics. When the effective sample size of the individual baseline reaches 5, the new version is used from the unprocessed time unit. The historical records of alarm judgments that have been completed are not written back.

[0114] Threshold Manager and Calculate the backoff threshold. The symbol represents a dimensionless fusion weight of 0 to 1 that monotonically increases with the effective sample size. The symbol represents the effective sample size of the threshold calibration set for the current patient's current nursing stage, and the unit is samples. The symbol represents the sample size threshold and is set to 20. Symbols represent categories The non-negative dimensionless state backoff threshold, and the larger the value, the stronger the required negative deviation evidence. The symbol represents the non-negative dimensionless threshold obtained from the 90th percentile of the state quantity corresponding to the effective calibration sample at the individual stage. The symbol represents the non-negative dimensionless threshold obtained from the 90th percentile of the state quantity corresponding to the effective calibration sample of the population in the same stage over the past 90 days. The symbols represent two types of discrete threshold indices: event response and cross-event accumulation, and do not apply units; when When the value is equal to 0 and the group threshold is available, directly set... Without calculating individual threshold terms, when Greater than 0 and less than The weighted formula is only executed when... Not less than Direct order There is no population sample and the individual sample is insufficient. Update the frozen status and output a supplementary sampling prompt;

[0115] When the effective sample size reaches 20, the fusion weight is set to 1 and the individual stage threshold is used as the backoff threshold. Otherwise, the group stage threshold contribution is retained. The threshold manager saves the effective sample size, fusion weight, individual threshold, group threshold, backoff threshold and threshold version, and uses the individual deviation sequence and the same version backoff threshold group as input for S5 status update and alarm judgment.

[0116] When the baseline window of the same nursing stage in the group is used as the initial comparison window, each aggregated record in the group baseline library includes nursing stage identifier, age group, surgical procedure, sample hospital code, median of pain score from 0 to 10, mode of drainage status code from 0 to 3, median vector of six-dimensional dimensionless voice quality and vocal ability features arranged in S2 component order, a uniquely retrievable record reference of the verified representative window, median of each dimension of emotional residual, absolute deviation of each dimension of median, sample size, effective start and end time and version number; the median of pain score, mode of drainage status code and six-dimensional voice quality vector are all statistically analyzed by the same set of inclusion windows according to the past 90 days and bound to the nursing record version and feature dimension version. The record is constructed by the window that has been verified by nursing staff, is located outside the event isolation window and meets the same five admission conditions, and is searched by nursing stage identifier, age group and surgical procedure. If no match is found, the age group is expanded once but does not cross nursing stages. If no match is found or any comparison field cannot be retrieved, the current baseline initialization is stopped and a supplementary record is generated.

[0117] The threshold calibration set stores individual deviation vectors, individual deviation intensity, event response peak, cross-event cumulative peak, confidence level, nursing staff review binary negative emotion label, and sampling time for each nursing stage. For each deviation dimension, it stores the signed Spearman correlation coefficient, direction factor, absolute correlation weight, and direction version with the review label. When the absolute value of the correlation coefficient is less than 0.10 or the sign consistency rate in the five-fold fold is less than 0.80, the dimension is disabled. When all dimensions are disabled, the direction version of the same stage in the group is read. If no direction is available, the system freezes and automatically alarms and outputs a supplementary sampling prompt. The system recalculates the individual stage direction and threshold every 5 new valid samples. Before the calculation, five-fold stratified validation is performed according to the collection date, and repeated time units of the same event are removed. If the false alarm rate of the new threshold on the validation set increases by more than 0.05 compared with the current version, the current version is retained and the reason for update rejection is recorded. Otherwise, an incremental direction version and threshold version are released simultaneously.

[0118] To ensure the continuity of objects during phase transitions, when the patient care phase identifier changes, the system closes the write permission of the previous phase baseline and retains a read-only version. Starting from zero effective sample size for individuals in the new phase, the system initializes the baseline window of the same care phase as the group. Each record of an individual deviating from the sequence is fixed to reference the baseline version and threshold version at the time of generation. S5 only reads the version bound to the record and does not use subsequent versions to trace and rewrite the historical state.

[0119] In this specific embodiment, S5 includes:

[0120] The status update service takes the individual deviation sequence, direction version, and backoff threshold of S4, as well as the event window record, projection component, emotion residual vector, emotion residual judgment result, and calibrated emotion residual confidence as input. It aligns the emotion residual, projection component, and individual deviation record one by one according to the patient identity, nursing stage identity, event record number, time unit index, subspace version, and baseline version, and maintains the event response status, cross-event cumulative status, current window type, continuous over-limit count, cooldown end time, and previous alarm status. It performs a status transition once every 10 seconds in ascending order of time unit index.

[0121] The system converts individual deviation vectors into deviation strengths. , Symbols represent time units The non-negative dimensionless deviation intensity is indicated by the larger the value, the stronger the deviation from negative emotion. The symbol represents the first The dimensionless, non-negative weights of 0 to 1 for each emotional residual dimension are obtained by normalizing the absolute values ​​of the Spearman correlation coefficients of the effective dimensions within the same nursing stage version of S4, and the sum of all weights is 1. The symbol represents a dimensionless negative directional factor with a value of -1 or 1, determined by the sign of the correlation coefficient. The symbol represents the deviation of the signed individual from the sequence in time unit S4. The first reading A dimensionless deviation component Symbols represent numbers from 1 to... The dimension is discrete and does not apply to units. The symbol represents the dimension of the emotion residual vector, with the unit being the number of elements. The symbol represents the first to the second state in the current state sequence. A discrete index with 10-second time units and no applicable units. The symbol represents the total number of 10-second time units determined by the start and end times of the current patient and nursing stage status records. It is a positive integer and the unit is a number. If the absolute value of the correlation coefficient is less than 0.10 or the direction is unstable, the dimension weights are reset to zero, the remaining weights are renormalized, and if all are zero, the group direction version is read according to the S4 rule or an automatic alarm is triggered.

[0122] The state sequence is maintained separately for patient identification and nursing stage identification; the first computable time unit of the current nursing stage is reached when the cumulative initial value across events is displayed. , The symbol represents the dimensionless initial state of the cumulative state sequence across events for the current nursing stage of the same patient; the event response initial value of each new nursing event is set when the first time unit of the event pre-window arrives. , The symbol represents the dimensionless initial state of the event response state sequence of the current nursing event, and continuously inherits the state of the previous time unit along the pre-event window, event response window, and post-event recovery window; within the pre-event window and event response window of the nursing event, the system... Update the event response status. The symbol represents the current dimensionless event response state. The symbol represents the dimensionless event response state in the time unit preceding the same event. The symbol represents a dimensionless coefficient and is set to 0.85. The symbol adopts the non-negative dimensionless deviation intensity of the current time unit as defined in the previous section of this S5, while keeping the cross-event cumulative state at the value of the previous time unit and not allowing the deviation intensity to generate positive accumulation.

[0123] Within the post-event recovery window, the system calculates the attenuation direction of the emotion residual vector and the projected component for three consecutive time units that are aligned one-to-one by patient, nursing stage, event record number, time unit, and version. When both the L2 norm of the vector and the projected component are at least 20% lower than the reference vector of the same version at the end of the response window, and the cosine similarity of adjacent changes is not less than 0.6, it is determined to be synchronous attenuation. The event response state and the cross-event cumulative state are multiplied by dimensionless attenuation coefficients of 0.70 and 0.96, respectively, and the evidence of synchronous attenuation is saved. If the reference vector at the end of the response window is missing, the time unit is discontinuous, or any version is inconsistent, the synchronous attenuation is determined to be uncalculation, attenuation is not performed, positive accumulation is frozen, and a supplementary collection prompt with the missing object and version number is output.

[0124] If the system fails to recover from the asynchronous decay within the recovery window and the input object is complete, the system will continue updating according to the aforementioned event response channel. and according to Continue accumulating cross-event states, The symbol represents the current dimensionless cumulative state across events. The symbol represents the dimensionless cumulative state across events for the same patient in the same nursing stage at the previous time unit. Using the initial values ​​defined in this S5 state initialization segment, The symbol represents a dimensionless coefficient and is set to 0.96. The symbol follows the non-negative dimensionless definition of the S5 deviation intensity segment. When the current confidence level is less than 0.45, the current positive accumulation is not performed and a low confidence flag is written.

[0125] Outside the nursing event isolation window, the system only inputs individual deviations from the sequence into the cross-event accumulation channel, and then... Limit single increment, , and The notation follows the current state, previous state, and dimensionless retained coefficients defined in the cross-event cumulative formula mentioned above in S5. Using the initial values ​​defined in this S5 state initialization segment, The symbol follows the non-negative dimensionless definition of the S5 deviation intensity segment. The symbol represents a dimensionless constraint coefficient and is set to 0.5. The symbol represents the dimensionless event response state value saved at the end of the event response window for the most recent event, which occurs on the same patient, in the same nursing stage, and with the same version. It serves as a state constraint limiting the single increment of the cumulative state across events. If no previous event exists, the upper limit of the increment is set to the event response rollback threshold of the current nursing stage (S4). If a previous event exists but... When an event is unavailable due to low confidence, missing timing, version inconsistency, or processing failure, the current version's event response rollback threshold is used as the upper limit for the increment, and the rollback reason is recorded. If this rollback threshold is also unavailable, then... Prioritize outputting supplementary sampling prompts and disable automatic alarms for this time unit;

[0126] When the event response window for the current event ends, the system saves the last available window. And together with the event log number, nursing stage, baseline version, threshold version, and subspace version, it is recorded as The state constraint remains read-only within the post-event recovery window; the last available value of the event is archived separately when the post-event recovery window ends. As the recovery process audit status, the online event response status will then be reset to 0; after leaving this recovery window, the recovery process audit status cannot be used to create new deferred alarms, and single incremental alarms across events can only be generated by the aforementioned methods. Constraints: Alarms are temporarily suspended from generation until the end of the event recovery window, and are only bound to the current event. When the window ends, regardless of whether it has been reviewed, it is converted to expired and written to the event review queue. When the patient care stage changes, the old stage status is archived and the cross-event cumulative status and event response status of the new stage are reset to zero. The status of different patients is not inherited from each other.

[0127] The alarm decision maker reads the same version rollback threshold and classifies the categories in S4. For cross-event accumulation The only confirmed entry threshold is the cross-event cumulative state entry threshold. A smaller exit threshold is set at 0.70 times this entry threshold, and the categories in S4 are... For event response The only confirmed event response status threshold will no longer generate or read independent alarm entry and alarm exit threshold categories. All three will be associated with and saved with the direction version, baseline version, and threshold version. When the confidence level of the emotion residual after S3 calibration is less than the confidence threshold of 0.60, a supplementary sampling prompt will be output first. The supplementary sampling prompt includes the voice segment identifier, the reason for the low confidence, the suggested supplementary sampling nursing stage, and the latest supplementary sampling time. At the same time, the output of nursing emotion alarms and postponed alarms will be prohibited.

[0128] When the confidence level is not less than the confidence threshold and the number of consecutive time units of the cumulative status across events is not less than the entry threshold reaches the threshold of 3 consecutive windows, a nursing emotion alarm is output and a 30-minute cooling-off period is initiated. During the cooling-off period, the status continues to be updated but the same type of alarm is not generated repeatedly. The nursing emotion alarm is only exited when the cumulative status across events is not greater than the exit threshold and the cooling-off period ends.

[0129] When the confidence level is not less than the confidence threshold, the event response status is not less than the event response status threshold, and the cumulative status across events is less than the entry threshold, a temporary alarm is output only in the event pre-window, event response window, or event post-recovery window of the current event. The temporary alarm is marked with the current event record number, the current event type, and the end time of the recovery window, which is used to instruct nursing staff to check whether there is still an emotional deviation after the recovery window ends. The supplementary sampling prompt, nursing emotional alarm, and temporary alarm in the same time unit are mutually exclusive according to the aforementioned conditions.

[0130] The system writes the alarm status, event response status, cross-event cumulative status, emotional residual confidence, consecutive over-limit count, cooling-off period, baseline version, threshold version, subspace version, and judgment evidence for each judgment into an overwhelmable alarm evidence record. It sends nursing emotional alarms to the responsible nurse workstation, writes deferred alarms into the post-event review queue, and writes supplementary collection prompts into the voice collection task queue to complete the status update and alarm output based on the nursing event time sequence, individual deviation sequence, and the reliability of calibrated evidence.

[0131] When the emotional residual does not decay with the projection component, the state update service writes the condition into the asynchronous decay flag, reads the current deviation intensity, the previous cross-event accumulation state and the recent event response window end state, and then executes the cross-event accumulation channel. If the same time unit meets the low confidence condition at the same time, the low confidence freeze rule takes priority and does not increase the cross-event accumulation state. If the input timestamp is repeated, only the record with the event record number and the first time unit index is retained to avoid the same evidence being accumulated repeatedly.

[0132] Before alarm determination, the system directly reads the emotion residual determination result, residual domain threshold value, and residual domain threshold version generated and saved in the residual domain by S3, without repeatedly comparing the threshold with the deviation intensity. When the emotion residual determination result is low confidence uncertainty, it will be preferentially entered into the supplementary sampling branch. When it is positive or negative, it will be written into the current determination evidence along with the calibrated confidence. The deviation intensity, event response status, and cross-event accumulation status in S5 are only compared with the event response, cross-event accumulation, alarm entry, and alarm exit thresholds generated by the threshold calibration set in the same deviation intensity domain or state domain by S4. The thresholds all refer to the fixed direction version, baseline version, and threshold version, thereby separating the residual domain determination from the state domain alarm determination.

[0133] For time units with a confidence level not less than the confidence threshold, the alarm decision-maker first removes candidates that do not meet their respective predicates from the candidate state set consisting of supplementary sampling prompts, nursing emotion alarms, deferred alarms, and no alarms. Then, it selects the unique output ranked first according to the fixed priority of supplementary sampling prompts, nursing emotion alarms, deferred alarms, and no alarms. The fixed priority is only used to resolve the condition overlap in the same time unit and does not change the entry threshold, exit threshold, and duration window number threshold of nursing emotion alarms.

[0134] When the responsible nurse's workstation writes back the review results, the system adds the review time, reviewer's identification, confirmed alarm type, handling status, and explanatory text to the association table of the plaintiff's alarm evidence record without overwriting the original status value. When the review results enter the S3 reliability calibration sample set and the S4 threshold calibration set, the patient care stage, event type, baseline version, and subspace version are retained. Review records that are missing any version references are only used for manual viewing and do not enter the automatic parameter update.

[0135] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

[0136] This invention uses nursing stages and the sequence of nursing events as time constraints for the speech processing chain. It combines voice quality and vocal ability features, prosodic emotional features, and semantic emotional features into a mixed speech representation. Then, it uses the event type perturbation subspace to distinguish the projection components and projection margins related to nursing events. This allows the short-term physiological changes caused by nursing events and cross-event emotional evidence to be used separately in the same processing chain without having to delete the entire nursing event speech.

[0137] This invention changes the fixed-threshold direct classification method by using versioned stage baselines, group stage rollback thresholds, and a dual-state update structure. Before the event and within the response window, the positive accumulation of cross-event cumulative states is frozen. Within the recovery window, state decay or continued accumulation is selected based on whether the emotional residual and projected components decay synchronously. Combined with confidence calibration and alarm priority, this ensures that the output results are adapted to the patient care stage, the nursing event recovery process, and the reliability of the evidence.

Claims

1. A method for monitoring emotions in breast and nail care based on speech recognition, characterized in that, include: S1. Obtain patient voice, nursing stage record and nursing event time record of breast cancer patients, perform effective voice segment detection on patient voice, and obtain effective patient voice corresponding to nursing stage and nursing event time sequence; S2. Extract voice quality and vocal ability features, prosodic emotion features and semantic emotion features from the effective patient speech in parallel, and combine the extracted features according to the collection time to obtain a mixed speech representation; S3. Construct an event type perturbation subspace based on the event pre-window, event response window, and event post-recovery window corresponding to the current nursing event type. Decompose the mixed speech representation into the projection component and projection margin in the event type perturbation subspace. Generate the emotion residual and its confidence based on the projection margin and semantic emotion features. S4. Compare the emotional residuals with the patient's baseline at the corresponding nursing stage to obtain the individual deviation sequence; S5. Update the event response status and cross-event cumulative status according to the nursing event time sequence and individual deviation sequence, respectively. Generate nursing emotion alarms, postponement alarms or supplementary collection prompts based on the event response status, cross-event cumulative status and confidence of emotional residuals.

2. The method for monitoring emotions in nail and breast care based on speech recognition according to claim 1, characterized in that, S1 includes: Collect patient identification, nursing stage identification, voice collection timestamp, nursing event type, and start and end time of the nursing event; Endpoint detection, signal-to-noise ratio detection, and intelligibility detection are performed on the patient's voice. Voice frames that meet the preset validity threshold are merged into the valid patient voice, and the valid patient voice is aligned with the nursing stage identifier and the start and end times of the nursing event.

3. The method for monitoring emotions in nail and breast care based on speech recognition according to claim 1, characterized in that, S2 includes: extracting fundamental frequency availability, harmonic-to-noise ratio, cepstral peak value, jitter, flicker, and vocalization duration from the effective patient speech as the voice quality and vocal ability features; extracting fundamental frequency trajectory, energy trajectory, speech rate, pause ratio, and stress distribution as the prosodic emotion features; extracting semantic evidence of negative emotion terms, negation structures, disease-related terms, and body image-related terms from the speech recognition text as the semantic emotion features; and converting each feature to the same acquisition time axis to form the mixed speech representation.

4. The method for monitoring emotions in nail and breast care based on speech recognition according to claim 1, characterized in that, S3 includes: for the same patient experiencing at least two similar nursing events within the same nursing stage, calculating the first feature difference between the event response window and the pre-event window, and the second feature difference between the post-event recovery window and the event response window; filtering feature components that are synchronous with the nursing event and decay within the post-event recovery window based on the first and second feature differences, normalizing the filtered feature components into event type perturbation basis vectors, and spanning the event type perturbation subspace by event type perturbation basis vectors of the same event type; the boundaries of the pre-event window, event response window, and post-event recovery window are determined and recorded based on the start and end times of the nursing event and the voice acquisition interval of the corresponding nursing stage.

5. The method for monitoring emotions in nail and breast care based on speech recognition according to claim 4, characterized in that, The current mixed speech representation is projected onto the event type perturbation subspace corresponding to the current nursing event type. The projected component is used as the representation of the physiological perturbation related to the nursing event. The projected component is removed from the current mixed speech representation to obtain the projection margin. The semantic fusion weight is determined based on the speech recognition confidence, semantic evidence completeness, and reconstruction error of the event type perturbation subspace. The projection margin is fused with the semantic emotion features weighted according to the semantic fusion weight to generate the emotion residual and its confidence. When there is no corresponding event type perturbation subspace, the perturbation subspace of the same nursing stage and nursing event type of the group is used as the backoff input, and the confidence of the emotional residual is multiplied by a backoff coefficient with a value greater than zero and less than one.

6. The method for monitoring emotions in breast and nail care based on speech recognition according to claim 1, characterized in that, S4 includes: defining the time interval between the start time of the pre-event window and the end time of the post-event recovery window as the nursing event isolation window; obtaining pain scores and drainage status codes from the nursing records associated with the nursing event time records; when a previous baseline admission window exists, using the previous baseline admission window as a comparison window; when no previous baseline admission window exists, using the baseline window of the same nursing stage in the group as the initial comparison window; calculating the difference in pain scores, the difference in drainage status codes, and the norm of the difference in voice quality and vocal ability feature vectors between the candidate voice window and the comparison window or the initial comparison window, respectively, to obtain the pain score increment and drainage status change. The changes in quantity, voice quality, and vocal ability characteristics are analyzed. From candidate voice windows outside the nursing event isolation window, candidate voice windows with pain score increments not exceeding the pain threshold, drainage status changes not exceeding the drainage threshold, voice quality and vocal ability characteristic changes not exceeding the voice quality threshold, negative semantic evidence not exceeding the semantic threshold, and emotional residual confidence not less than the confidence threshold are selected as baseline admission windows. The stage baseline and threshold calibration set with version identifiers are updated only with the baseline admission windows, and the admission reason, baseline version, and corresponding nursing stage record are saved. The emotional residuals are standardized according to the current stage baseline to obtain the individual deviation sequence.

7. The method for monitoring emotions in breast and nail care based on speech recognition according to claim 6, characterized in that, The fusion weight of individual stage threshold and group stage threshold is determined based on the effective sample size in the threshold calibration set, and the fusion weight increases with the increase of the effective sample size; the individual stage threshold determined by the stage baseline and the group stage threshold determined by the group samples of the same care stage are weighted according to the fusion weight to obtain the fallback threshold used for status update and alarm determination. When the effective sample size reaches the sample size threshold, the fusion weight is set to one, and the individual stage threshold is used as the backoff threshold.

8. The method for monitoring emotions in nail and breast care based on speech recognition according to claim 7, characterized in that, S5 includes: within the pre-event window of a nursing event, inputting the individual deviation sequence into the event response state update channel to update the event response state, and freezing the positive accumulation of the cross-event cumulative state; within the event response window of a nursing event, continuing to input the individual deviation sequence into the event response state update channel and keeping the positive accumulation of the cross-event cumulative state frozen; within the post-event recovery window, when the emotional residual decays synchronously with the projected component, causing the event response state and the cross-event cumulative state to decay according to their respective decay coefficients, and when the emotional residual does not decay with the projected component, inputting the individual deviation sequence into the cross-event cumulative state update channel to continue accumulating the cross-event cumulative state; outside the nursing event isolation window, inputting the individual deviation sequence into the cross-event cumulative state update channel, and using the event response state value at the end of the corresponding event response window as a state constraint quantity to limit the single increment of the cross-event cumulative state.

9. The method for monitoring emotions in breast and nail care based on speech recognition according to claim 8, characterized in that, Based on the backoff threshold, set a cross-event cumulative state entry threshold and a cross-event cumulative state exit threshold whose values ​​are less than the cross-event cumulative state entry threshold; When the confidence level of the emotional residual is less than the confidence threshold, the supplementary sampling prompt is output first, and the output of the nursing emotion alarm and the postponement alarm are prohibited; when the confidence level of the emotional residual is not less than the confidence threshold, and the number of windows in which the cross-event cumulative state continuously reaches the cross-event cumulative state entry threshold reaches the continuous window number threshold, the nursing emotion alarm is output and a cooling-off period is initiated; when the cross-event cumulative state is not greater than the cross-event cumulative state exit threshold and the cooling-off period ends, the nursing emotion alarm is exited; when the confidence level of the emotional residual is not less than the confidence threshold, the event response state reaches the event response state threshold, and the cross-event cumulative state does not reach the cross-event cumulative state entry threshold, the postponement alarm is output. Record alarm status, threshold version, and judgment evidence.

10. The method for monitoring emotions in breast and nail care based on speech recognition according to claim 5, characterized in that, The emotion assessment records corresponding to the voice collection time and reviewed by nursing staff were used as reference results. Calibration sample sets were established according to the corresponding nursing stages to measure the confidence of voice recognition, the completeness of semantic evidence, and the reliability of reconstruction error and emotion residual. For each candidate threshold in the preset candidate set of judgment thresholds, calculate the proportion of samples whose judgment results obtained by dividing the emotion residuals by the candidate threshold are consistent with the reference results, determine the candidate threshold with the highest proportion of samples as the emotion residual judgment threshold, and obtain the emotion residual judgment result based on the emotion residual judgment threshold. The calibration coefficients of each input quantity are determined based on the proportion of samples that are consistent with the emotion residual determination results and the reference results. The semantic fusion weights are constrained based on the calibration coefficients, and the calibrated emotion residual confidence is input into the alarm determination of step S5. When the calibration sample size is less than the calibration sample size threshold, the calibration coefficient of the same nursing stage in the population is used and a record of the reason for supplementary sampling is generated.