A voice interaction method for active health monitoring
By combining a spatiotemporal dual attention network with a Gaussian mixture model, proactive context perception and personalized intervention in the health monitoring system are achieved, solving the problems of passive response and high false alarm rate in existing technologies, and improving the intelligence and personalization level of health monitoring.
Patent Information
- Application Number
- CN202610891522.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-18
- Publication Date
- 2026-11-27
AI Technical Summary
Existing health monitoring technologies cannot achieve proactive, intelligent, and closed-loop monitoring, lack personalization and reliability, and have a high false alarm rate.
By fusing real-time physiological data, static health records, and dynamic environmental data through a spatiotemporal dual attention network, anomaly scores are calculated using a Gaussian mixture model. Combined with retrieval enhancement generation technology, structured intervention plans are generated, and voice interaction parameters are dynamically adjusted based on risk levels to form a closed-loop optimization.
It achieves proactive context perception, reduces false alarm rates, provides personalized health intervention guidance, and improves the intelligence and personalization of health monitoring.
Smart Images

Figure CN123183069A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of interdisciplinary technology of artificial intelligence and smart healthcare, and in particular to a voice interaction method for proactive health monitoring. Background Technology
[0002] Current health monitoring technologies mainly fall into two categories: passive question-and-answer voice assistants and threshold alarm monitoring devices. Neither can meet the needs of proactive, intelligent, and closed-loop monitoring. Passive question-and-answer voice assistants, represented by smart speakers integrating health skills, are limited in that users must initiate questions, making them unable to proactively warn when users are unaware of risks. Furthermore, their answers are based on a general knowledge base, failing to integrate with the user's physiological data and individual health status, resulting in suggestions lacking personalization and credibility. Threshold alarm monitoring devices, represented by smart bracelets and ECG patches, are limited in that they can only issue simple alerts when data exceeds limits, failing to provide comprehensive guidance on "what happened, why, and what to do." Moreover, their alarm logic is based solely on a single data stream, neglecting environmental, medical history, and other contextual factors, leading to a high false alarm rate and a lack of corresponding countermeasures.
[0003] In summary, existing technologies suffer from technical bottlenecks such as passive interaction, data fragmentation, and lack of effective solutions when alerted. Therefore, how to overcome these bottlenecks is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] This application provides a voice interaction method for proactive health monitoring, achieving a triple upgrade from passive question and answer to proactive management, from single alarm to comprehensive intervention, and from open-loop prompts to closed-loop optimization, thereby improving the intelligence and personalization of health monitoring.
[0005] The technical solution adopted in this application is as follows: In the first aspect, a voice interaction method for proactive health monitoring is provided, the method comprising: Based on the collected real-time physiological data, static health records, and dynamic environmental data, a spatiotemporal dual attention network is used to perform multi-source fusion of the real-time physiological data, the static health records, and the dynamic environmental data to determine the health scenario vector. The anomaly score of the health scenario vector is calculated based on the Gaussian mixture model. When the anomaly score exceeds the dynamic threshold corresponding to the risk level and the duration meets the preset conditions, the decision-making process for the corresponding risk level is triggered. Based on the health scenario vector, relevant knowledge is retrieved from the medical knowledge base using retrieval enhancement generation technology, the retrieval similarity is determined, and a comprehensive risk score is calculated based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient. Based on the comprehensive risk score, a structured intervention plan and tool call instructions are generated. Based on the risk level and real-time ambient noise level, the speech synthesis parameters are dynamically adjusted, the intervention plan is broadcast, and the tool invocation command is executed. Based on user feedback, changes in physiological indicators, and behavioral performance, the effectiveness score of a single interaction is calculated, and the dynamic threshold of the Gaussian mixture model is adjusted based on the effectiveness score, as well as the spatiotemporal dual attention network is adjusted.
[0006] Preferably, the step of determining a health scenario vector by multi-source fusion of the real-time physiological data, the static health record, and the dynamic environmental data through a spatiotemporal dual attention network includes: Based on the dynamic environmental data, determine the environmental feature vector; Based on the aforementioned static health records, individual feature vectors are determined; Based on the real-time physiological data, dynamic pattern features are extracted, including heart rate recovery rate and environment-physiological interaction risk factors. Based on the dynamic pattern features and the original physiological features, an enhanced physiological feature vector is determined. Based on the physiological feature vector, intramodal temporal attention is applied, temporal attention weights are calculated, and the refined physiological state representation is determined based on the temporal attention weights and the physiological feature vector. Based on the physiological state representation, the environmental feature vector, and the personal feature vector, cross-modal attention weights are calculated using a multilayer perceptron. These cross-modal attention weights correspond to the contributions of physiological, environmental, and personal features, respectively. Based on the cross-modal spatial attention weights, the physiological state representation, the environmental feature vector, and the personal feature vector, a weighted fusion is performed to determine a unified health scenario vector.
[0007] Preferably, before calculating the anomaly score of the health scenario vector based on the Gaussian mixture model, the method further includes: In the initial learning phase, based on the collected historical health scenario vectors and their corresponding activity states, the expectation-maximization algorithm is used to fit the Gaussian mixture model to determine the mixing coefficients, mean vector, and covariance matrix of each Gaussian component. Based on the mixing coefficients, the mean vector, and the covariance matrix, a normal pattern library corresponding to different activity states is constructed.
[0008] Preferably, the calculation of the anomaly score of the health scenario vector based on the Gaussian mixture model includes: Based on the current activity state, select the corresponding Gaussian mixture model from the normal mode library; Based on the Gaussian mixture model, the negative log-likelihood of the health scenario vector is calculated, or the anomaly score is determined based on the Mahalanobis distance between the health scenario vector and the Gaussian component with the highest degree of responsibility.
[0009] Preferably, the step of calculating a comprehensive risk score based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient includes: Based on the aforementioned static health records, an individual's static risk coefficient is determined; Based on the aforementioned dynamic environmental data, the dynamic environmental risk coefficient is determined; Based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient, a comprehensive risk score is determined using a weighted summation model.
[0010] Preferably, the step of generating a structured intervention plan and tool invocation instructions based on the comprehensive risk score includes: Based on the preset range into which the comprehensive risk score falls, the corresponding risk level is determined; Based on the risk level, the corresponding structured template is invoked, and combined with the health scenario vector and the retrieval knowledge returned by the retrieval enhancement generation technology, an intervention plan is generated that includes risk description, action steps, operation instructions and follow-up arrangements. Based on the intervention plan, the external tools or services that need to be called are parsed, and tool call instructions are generated.
[0011] Preferably, the speech synthesis parameters include speech rate, tone, volume, and repetition strategy; The process of dynamically adjusting speech synthesis parameters based on the risk level and real-time environmental noise level, and broadcasting the intervention plan, includes: Based on the risk level, the speech rate, the tone, and the repetition strategy are determined, wherein the speech rate increases with the increase of the risk level, the urgency of the tone increases with the increase of the risk level, and the number of times key information is repeated in the repetition strategy increases with the increase of the risk level. The volume is determined based on the risk level and the real-time ambient noise level, wherein the volume increases as the risk level increases and the real-time ambient noise level increases.
[0012] Preferably, when broadcasting the intervention plan, the method further includes: Determining interaction priorities based on the aforementioned risk levels includes: Based on the risk level, if it is determined to be the highest risk level, then a priority strategy of interrupting the current interaction and forcibly broadcasting is adopted. Based on the risk level, if it is determined to be the second highest risk level, then the priority strategy of waiting for the current statement to finish before broadcasting is adopted. Based on the risk level, if it is determined to be a low-risk level, a priority strategy of queuing or inserting the broadcast at an opportune time will be adopted.
[0013] Preferably, in the process of determining the health scenario vector by multi-source fusion of the real-time physiological data, the static health record, and the dynamic environmental data through a spatiotemporal dual attention network, the method further includes: Processing missing data includes: Based on the validity flags of various types of data, determine whether there are missing modes; When it is determined that the dynamic environment data is missing, the environment feature vector is set to a zero vector, the cross-modal space attention weight of the environment feature vector is reset to zero, and the cross-modal space attention weight is re-determined based on the remaining effective modalities. When it is determined that the real-time physiological data is continuously missing for more than a first preset threshold, a decision is made based on the most recent valid health scenario vector, and a device prompt is generated; When it is determined that the missing real-time physiological data exceeds a second preset threshold, a fault notification is generated and sent to a preset contact.
[0014] Preferably, adjusting the dynamic threshold of the Gaussian mixture model based on the validity score, and adjusting the spatiotemporal dual attention network, includes: The effectiveness score of the interaction is determined based on user feedback, changes in physiological indicators, and behavioral performance. Based on the average of the validity scores of recent multiple interactions, the adjustment step size of the dynamic threshold is determined, and the dynamic threshold is adaptively updated. Based on the health scenario vectors that have been confirmed as valid interactions and the corresponding attention distributions, training samples are determined, and the parameters of the spatiotemporal dual attention network are adjusted.
[0015] In a second aspect, a voice interaction system for proactive health monitoring is provided, the system comprising: The data acquisition unit is used to collect real-time physiological data, static health records, and dynamic environmental data. The multi-source fusion unit is used to perform multi-source fusion of the real-time physiological data, the static health record and the dynamic environmental data through a spatiotemporal dual attention network to determine the health scenario vector. An anomaly detection and decision triggering unit is used to calculate the anomaly score of the health scenario vector based on a Gaussian mixture model. When the anomaly score exceeds the dynamic threshold corresponding to the risk level and the duration meets the preset conditions, the decision process for the corresponding risk level is triggered. The risk assessment and solution generation unit is used to retrieve relevant knowledge from the medical knowledge base based on the health scenario vector using retrieval enhancement generation technology, determine the retrieval similarity, and calculate a comprehensive risk score based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient. Based on the comprehensive risk score, it generates a structured intervention plan and tool calling instructions. The interactive execution unit is used to dynamically adjust the speech synthesis parameters based on the risk level and the real-time environmental noise level, broadcast the intervention plan, and execute the tool call command; The closed-loop optimization unit is used to calculate the effectiveness score of a single interaction based on user feedback, changes in physiological indicators, and behavior performance, and to adjust the dynamic threshold of the Gaussian mixture model and the spatiotemporal dual attention network based on the effectiveness score.
[0016] In a third aspect, a computer device is provided, including a memory and a processor; the memory stores a computer program that can run on the processor, and when the computer program is executed by the processor, it performs the method provided in the first aspect.
[0017] In the fourth aspect, a computer-readable storage medium is provided that stores a computer program, which, when executed, implements the method provided in the first aspect.
[0018] According to the specific embodiments provided in this application, the following technical effects are disclosed: The technical solution of this application provides a voice interaction method for proactive health monitoring, including: based on collected real-time physiological data, static health records, and dynamic environmental data, multi-source fusion of real-time physiological data, static health records, and dynamic environmental data is performed through a spatiotemporal dual attention network to determine a health scenario vector; based on a Gaussian mixture model, the anomaly score of the health scenario vector is calculated, and when the anomaly score exceeds the dynamic threshold corresponding to the risk level and the duration meets the preset conditions, the decision-making process for the corresponding risk level is triggered; based on the health scenario vector, relevant knowledge is retrieved from a medical knowledge base using retrieval enhancement generation technology, the retrieval similarity is determined, and a comprehensive risk score is calculated based on the anomaly score, retrieval similarity, personal static risk coefficient, and environmental dynamic risk coefficient; a structured intervention plan and tool calling instructions are generated based on the comprehensive risk score; based on the risk level and real-time environmental noise level, the voice synthesis parameters are dynamically adjusted, the intervention plan is broadcast, and the tool calling instructions are executed; based on user feedback, changes in physiological indicators, and behavioral execution, the effectiveness score of a single interaction is calculated, and the dynamic threshold of the Gaussian mixture model and the spatiotemporal dual attention network are adjusted based on the effectiveness score. The method presented in this application achieves proactive context awareness through multi-source data fusion and a spatiotemporal dual attention network, enabling the detection of potential risks without user input, thus overcoming the limitations of passive response. A hierarchical anomaly detection and dynamic threshold triggering mechanism based on a Gaussian mixture model effectively reduces the false alarm rate. A structured intervention scheme combining enhanced retrieval generation and multi-dimensional risk scoring can fully explain "what happened, why, and what to do," solving the problem of having alarms but no solutions. Simultaneously, the voice interaction is dynamically adjusted based on risk level and environmental noise, and model parameters are optimized in a closed loop based on user feedback and physiological indicators, allowing the system to continuously adapt to individual user characteristics. In summary, this method achieves a triple upgrade: from passive questioning to proactive management, from single alarms to comprehensive intervention, and from open-loop prompts to closed-loop optimization, enhancing the intelligence and personalization of health monitoring. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a general flowchart of the voice interaction method for proactive health monitoring provided in the embodiments of this application; Figure 2 This is a flowchart illustrating multi-source fusion for determining a health scenario vector, provided in an embodiment of this application. Figure 3This is a flowchart of constructing a normal mode library provided in an embodiment of this application; Figure 4 This is a flowchart illustrating the calculation of anomaly scores for health scenario vectors based on a Gaussian mixture model, provided in an embodiment of this application. Figure 5 This is a flowchart of the calculation of the comprehensive risk score provided in the embodiments of this application; Figure 6 This is a flowchart of the generation of structured intervention schemes and tool invocation instructions provided in the embodiments of this application; Figure 7 This is a flowchart illustrating the dynamic adjustment of speech synthesis parameters and the broadcasting of intervention schemes provided in this application embodiment; Figure 8 This is a flowchart illustrating the process of determining interaction priority based on risk level, as provided in an embodiment of this application. Figure 9 This is a flowchart of the process for handling missing data provided in an embodiment of this application; Figure 10 This is a flowchart of adjusting the dynamic threshold of the Gaussian mixture model and adjusting the spatiotemporal dual attention network provided in the embodiments of this application; Figure 11 This is a schematic diagram of the voice interaction system for proactive health monitoring provided in an embodiment of this application; Figure 12 This is a schematic diagram of the computer device provided in the embodiments of this application. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0022] As described in the background section, current health monitoring technologies mainly fall into two categories: passive question-and-answer voice assistants and threshold alarm monitoring devices. Neither can meet the needs of proactive, intelligent, and closed-loop monitoring. Passive question-and-answer voice assistants, represented by smart speakers integrating health skills, are limited in that users must initiate questions, making it impossible to proactively warn when users are unaware of risks. Furthermore, their answers are based on a general knowledge base, failing to integrate with the user's physiological data and individual health status, resulting in suggestions lacking personalization and credibility. Threshold alarm monitoring devices, represented by smart bracelets and ECG patches, are limited in that they can only issue simple alerts when data exceeds limits, failing to provide complete guidance on "what happened, why, and what to do." Moreover, their alarm logic is based solely on a single data stream, neglecting environmental, medical history, and other contextual factors, leading to a high false alarm rate and a lack of corresponding countermeasures.
[0023] Based on this, this application provides a voice interaction method for proactive health monitoring, aiming to solve the technical problems of passive interaction, data fragmentation, and lack of effective response in the prior art.
[0024] The embodiments of this application will be analyzed in detail below with reference to the accompanying drawings.
[0025] Example 1 refer to Figure 1 The voice interaction method for proactive health monitoring provided in this embodiment includes: S1: Based on the collected real-time physiological data, static health records, and dynamic environmental data, a spatiotemporal dual attention network is used to perform multi-source fusion of real-time physiological data, static health records, and dynamic environmental data to determine the health scenario vector; S2: Calculate the anomaly score of the health scenario vector based on the Gaussian mixture model. When the anomaly score exceeds the dynamic threshold corresponding to the risk level and the duration meets the preset conditions, the decision-making process for the corresponding risk level is triggered. S3: Based on health scenario vectors, relevant knowledge is retrieved from the medical knowledge base using retrieval enhancement generation technology, the retrieval similarity is determined, and a comprehensive risk score is calculated based on anomaly score, retrieval similarity, personal static risk coefficient and environmental dynamic risk coefficient. Based on the comprehensive risk score, a structured intervention plan and tool call instructions are generated. S4: Based on the risk level and real-time environmental noise level, dynamically adjust the speech synthesis parameters, broadcast the intervention plan, and execute tool call commands; S5: Based on user feedback, changes in physiological indicators, and behavioral performance, calculate the effectiveness score of a single interaction, adjust the dynamic threshold of the Gaussian mixture model based on the effectiveness score, and adjust the spatiotemporal dual attention network.
[0026] In step S1, the system controller collects three types of data through multi-source access. Real-time physiological data is acquired in real time by wearable devices, such as smart bracelets, via Bluetooth Low Energy at a frequency of no less than 1Hz, including but not limited to raw signals such as heart rate, blood oxygen saturation, skin conductance, and motion acceleration. Static health records are retrieved from local or cloud databases, including but not limited to structured information such as the user's age, medical history, allergy history, and long-term medication records. Dynamic environmental data is obtained by calling external APIs, including but not limited to real-time geographical location, weather (including temperature and humidity), air quality, and nearby medical resources.
[0027] As an example, the specific access methods for the above three types of data can be implemented according to the following process. For real-time physiological data, the system receives raw signal data packets in real time from the wearable device's built-in sensor array, such as a photoplethysmography (PPG) heart rate sensor, a triaxial accelerometer, and a temperature sensor, at a frequency of no less than 1Hz via Bluetooth Low Energy or the device's internal bus. Upon access, timestamp alignment, data packet verification, and circular buffer caching are immediately performed to ensure data continuity and temporal consistency. For static health records, the system uses a secure network protocol and an API authentication mechanism based on OAuth 2.0 to retrieve the user's formatted health records on demand from the cloud-based personal health record platform or the device's locally encrypted SQLite database. If stored locally, the records are loaded into memory at startup to improve access speed. For dynamic environmental data, the system concurrently calls multiple authorized external public service APIs through an integrated wireless communication module (such as 4G, 5G, or Wi-Fi). For example, it simultaneously requests the meteorological bureau's real-time weather interface, the geocoding and reverse geocoding interfaces of map services, and the medical resource point of interest retrieval interface. A request queue and failure retry mechanism are designed to ensure the real-time performance and robustness of environmental information acquisition.
[0028] Continuing with the analysis of step S1, after the system controller obtains the three types of raw data, it needs to perform multi-source fusion through a spatiotemporal dual attention network to generate a unified vector that can represent the user's current health status.
[0029] First, the dynamic environmental data is encoded to form an environmental feature vector. As an example of coding, real-time geographic location is mapped to a binary or continuous value indicating whether the area is in an area with scarce medical resources, and weather data (including temperature and humidity) is encoded as a "heat stress risk level" or "fall risk level," forming discrete or continuous standardized risk factors. This is used to calculate heat load risk factors. For example, a simplified wet-bulb black-bulb temperature model is used to calculate the heat load risk factor. Its calculation formula is ,in Natural wet-bulb temperature, This refers to the temperature of the black sphere. When direct measurement is not possible... At that time, it can be determined by ambient temperature. (°C) and relative humidity (%) is estimated using an approximate formula, and the final result will be Mapped to The standardized heat load risk factor is obtained from the interval. Other environmental factors can be similarly encoded as standardized risk factors, which together constitute the environmental feature vector. It should be noted that the above approximate formula is: Secondly, feature embedding is performed on static health records to obtain individual feature vectors. For continuous fields, such as age and body mass index (BMI), max-min normalization is used, and the formula is: ,in and For predefined normalization boundaries, such as an age range of 20 to 90 years old. Discrete fields, such as medical history and allergy history, are defined using a trainable embedding matrix. Perform mapping. The total number of categories, For the embedding dimension, the first The embedding vector of the disease class is In addition, static risk factors can be constructed based on factors such as age and medical history, for example, a risk factor for hypertension. The value is 0.2 for individuals with no history of hypertension and age <40, 0.5 for individuals with no history of hypertension and age ≥40, 0.8 for individuals with a history of hypertension and good control, and 1.0 for individuals with poor control. The normalized values, embedding vector, and risk factors together constitute the individual feature vector. .
[0030] Then, feature extraction is performed on the real-time physiological data. As an example, the raw sensor signal, such as the photoplethysmography (PPG), first passes through an Nth-order bidirectional Butterworth bandpass filter, with the amplitude-frequency response being... A passband of 0.5 to 5.0 Hz was set for the heart rate signal to eliminate baseline drift and high-frequency noise. A sliding time window was used to segment the continuous signal, with a window length of... For example, 300 seconds, and step size For example, 60 seconds, the first Each window is defined as: .
[0031] In each window Within this framework, the following features are calculated to construct a physiological feature vector. Specific features can be expanded based on sensor configuration and application scenarios: (1) Heart rate variability (HRV) frequency domain characteristics: Spectral analysis was performed on the RR interval sequences within the window to calculate the low-frequency (LF, 0.04-0.15 Hz) and high-frequency (HF, 0.15-0.4 Hz) power. The LF / HF ratio was calculated using the following formula: Where P(ω) is the power spectral density function, this ratio is a key indicator for assessing the balance state of the autonomic nervous system.
[0032] (2) Blood oxygenation trend: Blood oxygen saturation (SpO2) sequence within the window Perform linear regression and fit the model. Its slope That is It characterizes the instantaneous trend of blood oxygenation.
[0033] (3) Heart rate (HR) characteristics: Extract the mean heart rate within the window. Standard deviation Maximum value and minimum value For sports scenarios, calculate the heart rate recovery rate after exercise. Defined as the th moment after the motion stops. Percentage decrease in heart rate per second: in Heart rate at the end of exercise This represents the heart rate at the end of exercise, such as at 60 seconds.
[0034] (4) Blood pressure (BP) characteristics: extract the window mean, trend slope and blood pressure variability (BPV) of systolic blood pressure (SBP) and diastolic blood pressure (DBP), where BPV is defined as the ratio of the standard deviation of blood pressure values within the window to the mean.
[0035] (5) Skin conductance (EDA) features: extract the mean skin conductance level (SCL) and the frequency of skin conductance response (SCR) (the number of transient responses exceeding a preset threshold per unit time) to assess stress state and emotional arousal level.
[0036] (6) Respiratory rate (RR) characteristics: The respiratory rate is extracted by accelerometer or impedance method, and its coupling degree with heart rate is calculated. , is defined as the coherence coefficient between respiratory rate and heart rate.
[0037] (7) Motion acceleration characteristics: Extracting motion intensity from the triaxial accelerometer The calculation formula is: Simultaneously, step count, posture classification (lying down / sitting / standing / walking), and mutation detection indicators related to fall risk, such as acceleration modulus mutation rate, are extracted.
[0038] The various physiological characteristic values obtained from the above calculations, including but not limited to HRV frequency domain characteristics, blood oxygenation trend slope, mean heart rate and recovery rate, blood pressure characteristics, skin conductance characteristics, respiratory rate characteristics, and exercise acceleration, are combined into a fixed-dimensional physiological characteristic vector. This serves as input for subsequent time series modeling and fusion analysis.
[0039] Finally, after extracting the environmental, personal, and physiological feature vectors, the system inputs these heterogeneous features into a spatiotemporal dual-attention network for deep fusion. The spatiotemporal dual-attention network first applies a temporal attention mechanism to the physiological feature vector to capture the dynamic patterns of user physiological parameters over time, such as the temporal dependencies of heart rate recovery rate and blood oxygenation trends, thereby highlighting the most critical historical moment information for assessing current health status. Then, the network applies a spatial attention mechanism to the time-attention refined physiological, environmental, and personal feature vectors, dynamically evaluating the relative contribution of physiological, environmental, and personal information to overall health risk in the current spatiotemporal context, and assigning corresponding attention weights to each feature type. Finally, the three types of features are weighted and fused according to the aforementioned spatial attention weights to generate a unified health context vector with rich semantics. This health scenario vector integrates the user's real-time physiological state, environmental risks, and individual health baseline, enabling a comprehensive and accurate representation of the user's current health status and providing input for subsequent anomaly detection and proactive decision-making.
[0040] It should be noted that the aforementioned spatiotemporal dual attention network refers to a serial, two-stage attention architecture that prioritizes temporal data over cross-modal data. The temporal attention stage captures the dynamic patterns of a single data stream, particularly physiological data, over time, identifying historical moments that have a critical impact on current health status assessments. The cross-modal spatial attention stage dynamically evaluates the relative importance of physiological, environmental, and personal data sources in the current context at the fusion point, assigning appropriate attention weights to each type of feature. The network's design aims to simultaneously model temporal dynamics and cross-modal interactions, thereby generating more accurate health context vectors. .
[0041] In step S2, the system performs anomaly detection and hierarchical decision triggering on the health scenario vector generated in step S1. The purpose of this step is to move away from the traditional fixed threshold alarm mode and instead achieve personalized risk assessment based on the user's own normal physiological behavior baseline.
[0042] Specifically, the system first collects historical health scenario vectors of the user under different activity states during the initial learning phase (e.g., a period of several consecutive days without abnormal alarms after the user wears the device). These activity states can be automatically identified and classified by sensors such as accelerometers, including typical scenarios such as sleep, sitting, walking, and exercise. For each activity state, the system uses a Gaussian mixture model to model the probability density of the corresponding set of health scenario vectors, thereby constructing a personalized pattern library that can characterize the distribution of normal health scenarios for the user under that state. The Gaussian mixture model can fit multimodal distributions and adapt to multiple normal sub-patterns that may occur under the same activity state, such as a stable heart rate during sitting but occasionally slightly elevated due to emotional fluctuations.
[0043] In actual real-time monitoring, the system first determines the user's current activity state using motion sensors, and then selects the corresponding Gaussian mixture model from the personal pattern library. The health scenario vector generated at the current moment is input into this model to calculate its probability density relative to the normal distribution, thus obtaining an anomaly score. This score quantitatively characterizes the degree of deviation between the current state and the user's normal state; that is, the greater the deviation, the higher the anomaly score.
[0044] To achieve tiered responses to risks of varying urgency, the system maintains multiple risk levels, such as L1 Observation, L2 Recommendation, L3 Intervention, and L4 Emergency. Each risk level corresponds to a dynamic threshold and a minimum duration condition. When the anomaly score continuously exceeds the dynamic threshold of a certain risk level and reaches the preset duration, the system triggers the decision-making process for that level, proceeding to step S3. The dynamic threshold can be adaptively adjusted based on historical user feedback data, thereby suppressing unnecessary interference while maintaining sensitivity. Through this mechanism, step S2 achieves an improvement from fixed threshold alarms to personalized, tiered, and time-sequential anomaly triggering, providing a reliable decision-making starting point for subsequent enhanced retrieval and intervention.
[0045] In step S3, based on the risk level triggered in step S2, the system controller uses retrieval-enhanced generation technology to provide medical evidence for decision-making and generates structured intervention plans and tool invocation instructions. The purpose of this step is to solve the problem of existing technologies that provide warnings but lack solutions; that is, it not only informs users of the existence of risks, but also explains the reasons for the risks, provides actionable countermeasures, and automatically executes necessary auxiliary operations.
[0046] Specifically, the system first constructs and accesses a vectorized medical knowledge base containing authoritative medical information such as symptom-disease associations, drug interaction guidelines, and emergency treatment procedures. When step S2 triggers a decision, the system uses the current health scenario vector as a query, performs a semantic search in the knowledge base, and returns the top few most relevant medical knowledge entries using methods such as maximum inner product search, calculating the search similarity. These search results provide professional support for subsequent risk assessment and solution generation.
[0047] Subsequently, the system enters the quantitative risk assessment phase. The system integrates information from four dimensions: first, the anomaly score calculated in step S2, reflecting the degree of deviation between the current state and the user's normal baseline; second, the retrieval similarity, reflecting the degree of matching between the current symptoms and known medical patterns; third, the personal static risk coefficient extracted based on the user's static health record, such as the basic risks brought by age and past medical history; and fourth, the environmental dynamic risk coefficient calculated based on dynamic environmental data, such as the additional risks brought by high temperatures or the accessibility of medical resources. The system integrates these four factors into a comprehensive risk score through a weighted summation model. This comprehensive risk score can more comprehensively and objectively quantify the urgency and potential harm of the current health event.
[0048] Based on the preset range where the comprehensive risk score falls, the system determines the final risk level and generates an intervention plan using the corresponding structured template. This plan typically includes five parts: an alert or opening statement to attract the user's attention; a clear and easy-to-understand risk description integrating real-time user data and retrieved knowledge; a clear, actionable, and personalized list of action steps, such as stopping immediately, resting in the shade, and slowly replenishing fluids; information about actions the system has already performed or will soon automatically complete, such as notifying the user's emergency contact; and instructions for subsequent monitoring arrangements. Simultaneously, the system also parses the plan content to identify the external tools or services that need to be invoked, generating an ordered list of tool invocation instructions, such as calling an SMS API to notify family members, calling a map API to plan a medical route, and calling a smart home API to adjust the ambient temperature.
[0049] Through the above process, step S3 realizes the transformation from anomaly detection to comprehensive intervention. It not only provides risk assessment, but also provides complete guidance on "what happened, why, and what to do", and links external resources to form a closed loop, overcoming the shortcomings of existing technologies that only issue simple alarms without corresponding measures.
[0050] In step S4, the system controller dynamically adjusts the speech synthesis parameters to broadcast the intervention plan based on the risk level determined in step S3 and the real-time ambient noise level, and executes tool invocation commands in parallel. The purpose of this step is to achieve context-adaptive proactive interaction, ensuring that key information is conveyed to the user with an appropriate sense of urgency and audibility, while linking external resources to form a closed-loop intervention.
[0051] Specifically, the speech synthesis parameters include at least speech rate, volume, tone, and a strategy for repeating key information. The system dynamically adjusts these parameters based on the current risk level: the higher the risk level, the faster the speech rate, the more urgency the tone, and the more times key information is repeated, allowing the user to intuitively perceive the urgency of the event. Simultaneously, the system monitors the ambient noise level in real time using sensors such as microphones. When ambient noise increases, the playback volume is automatically increased to ensure the speech content remains clearly audible even in noisy environments. This dynamic adjustment mechanism ensures that voice interaction neither excessively disturbs the user nor causes them to miss important warnings due to insufficient volume.
[0052] While broadcasting the message, the system simultaneously invokes corresponding external tools or services based on the tool invocation instruction list generated in step S3. Tool types include, but are not limited to: sending alarm messages containing the user's location and status to preset contacts; locating nearby hospitals and pharmacies and planning navigation routes; connecting to remote doctors, making appointments, or directly calling emergency services; and linking with smart home devices, such as turning on air conditioning or adjusting lights to improve environmental conditions. The system monitors the execution status of each tool invocation and sends the execution results back for subsequent recording and feedback.
[0053] Through step S4, on the one hand, the intervention plan is conveyed to the user in the most appropriate way through dynamic voice broadcasting, and on the other hand, the intervention measures are implemented through automated tool calls, forming a proactive interactive closed loop that integrates "information-action".
[0054] In step S5, the system collects multi-dimensional feedback information to evaluate the actual effect of the proactive health intervention and adaptively optimizes the core model accordingly, forming a closed loop of continuous improvement. The purpose of this step is to address the problem that fixed models cannot adapt to individual differences and dynamic changes, enabling the system to continuously improve monitoring accuracy and user experience over time.
[0055] Specifically, the system collects feedback data from three dimensions: first, explicit user feedback, including user confirmation of the broadcast content via voice, physical button operation, or satisfaction ratings via the application; second, physiological indicator feedback, which objectively measures the actual effect of the intervention by comparing the user's physiological data before and after the intervention, such as the trend of changes in heart rate and blood oxygen, the duration of abnormalities, and the speed of recovery; and third, behavioral execution feedback, which verifies whether the user has performed the corresponding operations according to the action steps in the intervention plan, such as whether they rested, replenished water, went to see a doctor, and the completion status and effect of tool calls.
[0056] Based on the aforementioned multidimensional feedback, the system defines and calculates an effectiveness score for each interaction. This score comprehensively reflects the overall effectiveness of the intervention in terms of physiological improvement, user cooperation, and behavioral compliance. A high effectiveness score indicates that the current system's anomaly detection threshold and fusion model are suitable; a consistently low effectiveness score suggests potential false alarms or that the intervention plan is not adequately tailored to the user's actual situation.
[0057] To this end, the system adaptively adjusts core parameters using accumulated validity scores. On one hand, for the dynamic threshold in the Gaussian mixture model, the system updates it in small steps based on the statistical characteristics of recent validity scores: when low validity occurs frequently, such as when users consider the alert invalid, the anomaly detection threshold for the corresponding risk level is appropriately increased to reduce unnecessary interference; conversely, if user feedback or physiological indicators show a risk of missed detection, the threshold is decreased to improve sensitivity. On the other hand, the system uses samples confirmed as valid interactions, including the health context vector at the time and its corresponding ideal attention distribution, as training data to periodically adjust the spatiotemporal dual attention network, making it more accurate in capturing the user's unique risk characteristic patterns.
[0058] Through step S5, the system realizes a closed-loop mechanism of evaluation-learning-optimization, which enables the personalized detection threshold and fusion network to continuously evolve with user usage, thereby continuously reducing the false alarm rate and improving user trust and compliance in long-term monitoring.
[0059] As a preferred embodiment, refer to Figure 2 By using a spatiotemporal dual attention network to fuse real-time physiological data, static health records, and dynamic environmental data from multiple sources, a health scenario vector is determined, including: S10: Determine the environmental feature vector based on dynamic environmental data; S11: Determine individual feature vectors based on static health records; S12: Based on real-time physiological data, extract dynamic pattern features, including heart rate recovery rate and environmental-physiological interaction risk factors. Based on the dynamic pattern features and the original physiological features, determine the enhanced physiological feature vector. S13: Based on the physiological feature vector, apply intramodal temporal attention, calculate the temporal attention weight, and determine the refined physiological state representation based on the temporal attention weight and the physiological feature vector; S14: Based on physiological state representation, environmental feature vector, and personal feature vector, cross-modal attention weights are calculated using a multilayer perceptron. The cross-modal attention weights correspond to the contributions of physiological, environmental, and personal features, respectively. S15: Based on cross-modal spatial attention weights, physiological state representations, environmental feature vectors, and personal feature vectors, a weighted fusion is performed to determine a unified health scenario vector.
[0060] In step S10, the system controller determines the environmental feature vector based on the collected dynamic environmental data. As illustrated in the previous example, environmental information such as geographical location and weather can be encoded into standardized risk factors to form a fixed-dimensional representation of environmental characteristics.
[0061] In step S11, the system determines the personal feature vector based on the user's static health record. By normalizing continuous fields such as age and BMI, embedding and mapping discrete fields such as medical history and allergy history, and constructing static risk coefficients such as hypertension risk factors, a personal characteristic representation can be formed.
[0062] In step S12, the system extracts explicit dynamic pattern features based on real-time physiological data. These dynamic pattern features include, but are not limited to, post-exercise heart rate recovery rate. And environmental-physiological interaction risk factors, such as the combined risk coefficient of abnormal heart rate under heat stress. , ,in, As a heat load risk factor, Current heart rate, This is the user's historical resting heart rate baseline. These dynamic pattern features are then concatenated with the original physiological features extracted in step S1, such as mean heart rate, blood oxygenation trend, and exercise intensity, to form an enhanced physiological feature vector. ,in The time step is defined as . This enhancement vector incorporates both basic physiological parameters and advanced features reflecting temporal evolution and cross-modal coupling.
[0063] In step S13, the system applies an intramodal temporal attention mechanism to the enhanced physiological feature vector. Specifically, through self-attention calculation, different attention weights are assigned to physiological features at different historical moments, highlighting the most critical time points for judging the current health status, and generating a refined physiological status representation accordingly. This representation can more accurately capture dynamic change patterns such as heart rate recovery curves and blood oxygen saturation decline trends.
[0064] In step S14, the system concatenates the refined physiological state representation obtained in step S13, the environmental feature vector from step S10, and the personal feature vector from step S11, and inputs them into a multilayer perceptron to calculate cross-modal attention weights. The weight output is a three-dimensional vector. These correspond to the contributions of physiological, environmental, and personal characteristics, respectively, and the sum of the three is 1. The calculation of this weight is dynamic and will be automatically adjusted according to the current spatiotemporal context. For example, the environmental weight increases significantly in high-temperature environments, while the weight of personal characteristics is higher when the user has a history of serious heart disease.
[0065] In step S15, the system performs weighted fusion of the three types of features based on the cross-modal attention weights obtained in step S14. This generates a unified health scenario vector. This vector integrates temporal dynamic information and cross-modal interaction information, providing a more accurate quantitative input for subsequent anomaly detection and proactive decision-making.
[0066] Through this implementation, the spatiotemporal dual attention network explicitly models the evolution of physiological parameters over time and the mutual influence of multi-source data at specific moments using a two-stage architecture that prioritizes temporal sequence over cross-modal sequence. Compared to simple feature splicing or fixed weight fusion, it can improve the accuracy and robustness of health context perception.
[0067] As a preferred embodiment, refer to Figure 3 Before calculating the anomaly score of the health scenario vector based on the Gaussian mixture model, the method also includes: S20: In the initial learning phase, based on the collected historical health scenario vectors and their corresponding activity states, the expectation-maximization algorithm is used to fit the Gaussian mixture model to determine the mixing coefficients, mean vector and covariance matrix of each Gaussian component. S21: Based on the mixing coefficients, mean vector, and covariance matrix, construct a normal pattern library corresponding to different activity states.
[0068] The purpose of the above steps is to quantify the degree of deviation between the user's current state and their normal state, thereby laying the foundation for personalized anomaly detection.
[0069] Specifically, during the initial learning phase, such as a period of seven consecutive days without alarms, the system collects historical health scenario vectors of users under different activity states. Activity states can be automatically identified and categorized using sensors such as accelerometers, including but not limited to typical scenarios such as sleep, sitting, walking, and exercise. The collected data constitutes a set of health scenario vectors for all time steps. And label the corresponding activity state for each vector.
[0070] For each activity state, assume that its corresponding scenario vector set follows a set of rules. A Gaussian mixture model of the components. The probability density function of this model is: in, For model parameters, For the first The mixing coefficient of the Gaussian components (satisfying) ), and These are the mean vector and covariance matrix of the component, respectively.
[0071] The system employs the Expectation-Maximization (EM) algorithm to perform maximum likelihood estimation of the Gaussian mixture model parameters for each activity state. The iterative steps of the EM algorithm are as follows: E-step (expected): Calculate the value for each data point. Belongs to the Posterior probability (responsibility) of each Gaussian component. : M-step (maximization): Update model parameters using the calculated responsibility level. After learning is complete, the system stores multiple Gaussian mixture model parameter sets for different activity states, such as These parameter sets collectively constitute the user's personalized normal pattern library. In subsequent real-time monitoring, the system selects the corresponding pattern library based on the current activity status to calculate the anomaly score of the current health scenario vector, achieving accurate anomaly detection based on the individual's baseline.
[0072] As a preferred embodiment, refer to Figure 4 The anomaly score of the health scenario vector is calculated based on a Gaussian mixture model, including: S22: Based on the current activity state, select the corresponding Gaussian mixture model from the normal mode library; S23: Based on the Gaussian mixture model, calculate the negative log-likelihood of the health scenario vector, or determine the anomaly score based on the Mahalanobis distance between the health scenario vector and the Gaussian component with the highest responsibility.
[0073] In step S22, the system selects the corresponding Gaussian mixture model from the normal pattern library constructed in step S21 based on the current activity state. The current activity status can be identified in real time using sensors such as accelerometers, which can determine whether the user is in a typical scenario such as sleeping, sitting, walking, or exercising.
[0074] In step S23, the system calculates the current health scenario vector based on the selected Gaussian mixture model. abnormality score One method of calculation is to use the negative log-likelihood, that is: The smaller the value, the more likely the current state belongs to a historical normal distribution; the larger the value, the higher the degree of anomaly. To improve computational efficiency and stability, another preferred implementation method is to use the Mahalanobis distance approximation, that is, first find the... The Gaussian component with the highest responsibility ,in , Then calculate: This approximation can also characterize the degree of deviation of the current state from the normal pattern library. The system maintains a set of dynamic thresholds corresponding to risk levels, such as L1 Observation, L2 Recommendation, L3 Intervention, and L4 Emergency. and shortest duration When the anomaly score When a dynamic threshold for a certain risk level is exceeded and the time condition is continuously met, the corresponding decision-making process is triggered, proceeding to step S3. Through this method, accurate anomaly detection and tiered triggering based on an individual's normal baseline are achieved.
[0075] As an example, the tiered trigger threshold table is as follows: It should be noted that step S3 involves retrieving relevant knowledge from a medical knowledge base based on the health scenario vector using retrieval enhancement generation technology and determining the retrieval similarity. First, the system constructs and accesses a vectorized medical knowledge base to support retrieval enhancement generation. This knowledge base is a structured database, with each piece of knowledge containing fields such as symptoms, possible causes, and treatment suggestions. The system uses the encoder part of the PubMedBERT language model, pre-trained with medical text, to encode each piece of knowledge into a dense vector. : All knowledge vectors It is stored in the vector database FAISS and an efficient index is created for fast retrieval later.
[0076] When step S2 triggers the decision, the system will assign the current abnormal health scenario vector. As a query, a Maximum Inner Product Search (MIPS) is performed in the FAISS database. The goal of this search is to find the top vectors whose dot product with the query vector (since the vectors are normalized, the dot product is equivalent to cosine similarity) is the largest. Knowledge Point: Search results returned ,in For the first The similarity score of each search result. The system uses this score to determine the average search similarity. This is used for subsequent risk scoring.
[0077] As a preferred embodiment, refer to Figure 5 Based on anomaly score, retrieval similarity, individual static risk coefficient, and environmental dynamic risk coefficient, a comprehensive risk score is calculated, including: S30: Determine an individual's static risk coefficient based on static health records; S31: Determine the dynamic environmental risk coefficient based on dynamic environmental data; S32: Based on anomaly score, retrieval similarity, individual static risk coefficient, and environmental dynamic risk coefficient, a weighted summation model is used to determine the comprehensive risk score.
[0078] The individual static risk coefficient is used to quantify the fundamental contribution of a user's inherent factors to their current health risk. The system can extract information such as age, medical history, allergy history, and long-term medication records from the user's static health record, and calculate the coefficient through table lookup or a small neural network. Generally, a multilayer perceptron can be used. personal feature vectors Mapped to a comprehensive static risk value, where It includes normalized continuous fields, embedded vectors of discrete fields, and risk factors constructed using the aforementioned rules. The environmental dynamic risk coefficient reflects the immediate impact of the external environment on the user's health. The system uses real-time collected environmental feature vectors... Calculate the corresponding risk coefficient. For example, based on the user's current geographical location, determine the reachability time of nearby medical resources, and take... Hospital access time The shorter the reach time, the lower the risk factor; conversely, if the location is remote and medical resources are scarce, the risk factor increases. For example, in hot weather, the risk factor can be determined based on heat load risk factors. Calculate the heat stress risk coefficient. The dynamic environmental risk coefficient can be flexibly defined according to different application scenarios.
[0079] Furthermore, the weighted summation model is as follows: in, To enhance the retrieval, the returned top The average similarity score of the knowledge points reflects the degree of matching between the current health situation and the known medical model; The normalized outlier score. This is used to eliminate the difference in the absolute value of anomalies between different users; The individual static risk coefficient determined in step S30; The environmental dynamic risk coefficient determined in step S31; For learnable weight parameters, satisfying It can be obtained through training on historical labeled data.
[0080] Through the weighted summation model described above, the system integrates four different types of risk signals into a comprehensive risk score, thereby providing a quantitative basis for subsequent risk classification and intervention plan generation.
[0081] As a preferred embodiment, refer to Figure 6 Based on a comprehensive risk score, structured intervention plans and tool invocation instructions are generated, including: S33: Determine the corresponding risk level based on the preset range into which the comprehensive risk score falls; S34: Based on the risk level, call the corresponding structured template, and combine it with the health scenario vector and the retrieval knowledge returned by the retrieval enhancement generation technology to generate an intervention plan that includes risk description, action steps, operation instructions and follow-up arrangements; S35: Based on the intervention plan, parse the external tools or services that need to be called and generate tool call instructions.
[0082] The system pre-sets scoring ranges corresponding to multiple risk levels, including: like If so, it is determined to be L1 observation level; like If so, it is determined to be L2 recommendation level; like If so, it is determined to be L3 intervention level; like If so, it is classified as Level L4 emergency.
[0083] in This is an adjustable threshold parameter that can be determined based on the actual application scenario or historical data statistics. The determined risk level will directly affect the urgency, priority, and urgency level of subsequent voice broadcasts and tool invocation.
[0084] The system predefines structured natural language templates for each risk level. When generating a treatment plan, the system populates the template with real-time data from the current health scenario vector, such as heart rate, blood oxygen trends, and ambient temperature, along with the most relevant medical knowledge retrieved, such as symptom explanations and treatment recommendations, forming a complete intervention plan. This plan typically includes the following five parts: First, alerts / opening statements: Emphasis statements used to draw the user's attention, such as "Please note that your health condition has become abnormal."
[0085] Second, risk description: Based on user real-time data and search knowledge, a popular medical explanation is provided. For example, if your current heart rate is 120 beats per minute and the ambient temperature is as high as 35°C, combined with your history of hypertension, it is preliminarily judged to be a sign of impending heatstroke.
[0086] Third, action steps: a clear, actionable, and personalized list of steps, such as immediately stopping the current activity and moving to a shady place to rest; slowly replenishing fluids and avoiding drinking large amounts of water at once; if the heart rate does not decrease after 10 minutes, please seek medical attention promptly.
[0087] Fourth, actions performed / to be performed: Inform the user of actions that the system has automatically completed or is about to perform, such as I have notified your emergency contact and sent you the location of the nearest hospital.
[0088] Fifth, follow-up arrangements: This section explains the system's next monitoring plan. For example, the system will reassess your physiological status in 5 minutes. Please keep the device in proper working order.
[0089] Based on the generated intervention plan, the system's decision engine automatically parses out the external tools or services that need to be invoked and generates an ordered list of tool invocation instructions. Tool types include, but are not limited to: notification tools: invoking SMS or instant messaging APIs to send alert messages containing the user's location and current status to preset contacts; resource search tools: invoking map service APIs to find the nearest hospitals and pharmacies and plan the optimal navigation route; service connection tools: invoking telemedicine APIs to connect with online doctors, make appointments, or directly call emergency services; and environmental control tools: invoking smart home APIs to activate air conditioning, adjust lighting, or turn on air purifiers to improve the user's surrounding environment.
[0090] Finally, the system outputs a structured task tuple. ,in For the complete narrative text generated above, For the action steps list, This is an ordered list, with each item specifying the name of the tool API to be invoked, the required parameters, and the triggering conditions. This task tuple is passed to step S4, where the application interaction layer is responsible for executing the voice broadcast and tool invocation.
[0091] Through the above implementation methods, the system transforms quantitative risk scores into structured intervention plans that users can understand and execute, and automatically links external resources, achieving a seamless connection from risk assessment to closed-loop intervention.
[0092] As a preferred implementation, the speech synthesis parameters include speech rate, tone, volume, and repetition strategy; refer to Figure 7 Based on the risk level and real-time environmental noise level, the speech synthesis parameters are dynamically adjusted to announce the intervention plan, including: S40: Based on the risk level, determine the speech rate, tone and repetition strategy, wherein the speech rate increases with the increase of the risk level, the urgency of the tone increases with the increase of the risk level, and the number of times key information is repeated in the repetition strategy increases with the increase of the risk level. S41: Determine the volume based on the risk level and the real-time ambient noise level, wherein the volume increases with the increase of the risk level and the increase of the real-time ambient noise level.
[0093] Among these parameters, the speech rate in speech synthesis can be linearly adjusted according to the risk level. Let the baseline speech rate be... At a normal speaking speed, the urgency level of the speech rate is... If we take 0.2, then the adjusted speaking speed When the risk level At that time, the speaking speed is the baseline speaking speed; when At times, the speech rate increases by 60%, conveying a stronger sense of urgency to the user. Regarding tone, the system enhances the urgency by altering the pitch profile and fundamental frequency range: maintaining a steady, soothing tone for low-risk situations and a sharper, rising tone for high-risk situations. The repetition strategy targets key information such as action steps and emergency contact methods, setting different repetition counts based on the risk level: for example, L1 can be repeated once, L2 twice, L3 three times, and L4 repeatedly until user confirmation or timeout.
[0094] Volume adjustment takes into account both risk level and ambient noise. Let the baseline volume be... For example, at 50% of maximum volume, the volume increment is... For example, if the environmental noise compensation coefficient increases by 5% for each level increase, the environmental noise compensation coefficient is... The noise threshold is For example, 60dB. Then the final volume... The formula expresses the following: the volume is based on a baseline volume and increases linearly with the risk level, increasing by [amount] for each level increase. Simultaneously, the volume is increased when ambient noise exceeds a preset threshold. The volume should be increased by a factor of 100 to ensure the content is clearly audible. The final volume limit is 100, which is the maximum volume. (This is for use in quiet environments.) L1 level volume is The volume of level L4 is In noisy environments Exceeding ,Pick Below, the L4 level volume reaches If it exceeds Then cut off as .
[0095] Through these dynamic adjustments, the system can deliver intervention plans with the most appropriate speaking speed, volume, and tone under different levels of urgency and acoustic environments, ensuring that users receive key information in a timely and accurate manner. Meanwhile, the repetitive broadcast strategy further improves the reliability of information delivery in high-risk scenarios.
[0096] As a preferred embodiment, refer to Figure 8 When broadcasting intervention plans, the methods also include: Prioritizing interactions based on risk level includes: S42: Based on the risk level, if it is determined to be the highest risk level, then the priority strategy of interrupting the current interaction and forcibly broadcasting is determined; S43: Based on the risk level, if it is determined to be the second highest risk level, then the priority strategy of waiting for the current statement to finish before broadcasting is adopted. S44: Based on the risk level, if it is determined to be a low-risk level, then a priority strategy of queuing or inserting the broadcast at an opportune time will be adopted.
[0097] In step S42, when the risk level is L4 (emergency level), the system determines it as the highest priority. At this point, regardless of the user's current interaction—such as making a call, watching a video, or interacting with other smart devices—the system immediately interrupts the interaction and forcibly broadcasts the intervention plan. This strategy ensures that in life-threatening situations, users receive alerts and emergency response instructions immediately.
[0098] As an example, a user wearing the device is working alone in a high-temperature outdoor environment. The system detects that the user's heart rate is abnormally high and the ambient temperature exceeds the warning value, with the overall risk score reaching L4 emergency level. At this time, the user is using a mobile phone to talk to someone else. The system immediately stops the audio playback of the call and forcibly broadcasts: "Emergency! Your current heart rate is seriously high and you are in a high-temperature environment. Please stop your activities immediately, rest in a cool place and call for emergency medical assistance. I have notified your emergency contact." In step S43, when the risk level is L3 (intervention level), the system determines it as medium priority. If the user is currently interacting, such as conversing with a voice assistant or listening to a broadcast, the system will not interrupt immediately. Instead, it will wait until the current statement finishes playing before broadcasting the intervention plan. This strategy ensures timely response while avoiding abrupt interruptions to the user, thus improving the naturalness of the interaction.
[0099] As an example, a user is sitting quietly at home when the system detects abnormal heart rate variability and an increased respiratory rate, with a comprehensive risk score of L3 intervention level. At this time, the user is talking to a smart speaker, such as asking about the weather. After the current weather report is finished, the system immediately announces: "It is recommended that you pay attention to rest. Your current heart rate variability is low, which may be related to emotional tension. Please try deep breathing to relax. I will reassess in 10 minutes." In step S44, when the risk level is L1 (Observation) or L2 (Advancement), the system determines it to be of low priority. If the user is currently interacting, the system will not immediately broadcast the message; instead, it will add the broadcast task to a queue and wait until the user is idle, such as when the conversation ends, the device is idle for a period of time, or at an appropriate time, such as when the user's activity state changes from movement to sitting. This strategy avoids excessive disruption to the user with low-risk information while ensuring the final delivery of the information.
[0100] As an example, a user is briskly walking in a park. The system detects that the user's heart rate is slightly higher than the user's personal baseline but still within a safe range, with an overall risk score of L1 observation level. The system does not immediately announce this, but waits for the user to stop exercising and, after determining from the accelerometer that the activity status has shifted to sitting, before gently prompting: "Your exercise intensity was relatively high, but your heart rate recovery rate is normal. Please drink some water." Through the aforementioned three-level priority management mechanism, the system can broadcast intervention plans in the most appropriate interactive way under different risk levels, which not only ensures the timely delivery of emergency information, but also avoids unnecessary interference to users, and realizes intelligent and humanized proactive interaction.
[0101] As a preferred embodiment, refer to Figure 9 In determining the health scenario vector through multi-source fusion of real-time physiological data, static health records, and dynamic environmental data using a spatiotemporal dual attention network, the method also includes: Processing missing data includes: S16: Determine whether there are missing modes based on the validity flags of various types of data; S17: When it is determined that dynamic environment data is missing, the environment feature vector is set to the zero vector, the cross-modal space attention weight of the environment feature vector is reset to zero, and the cross-modal space attention weight is re-determined based on the remaining effective modalities. S18: When it is determined that the continuous loss of real-time physiological data exceeds the first preset threshold, a decision is made based on the most recent valid health scenario vector, and a device prompt is generated; S19: When it is determined that the real-time physiological data is missing more than the second preset threshold, a fault notification is generated and sent to the preset contact.
[0102] In the feature extraction stage, the system sets a validity flag for each type of data source, denoted as follows: (Corresponding real-time physiological data) (Corresponding dynamic environment data) (Corresponding to static health records). By detecting the access status of various data, such as whether the API was successfully called and whether the sensor returned a valid value, the system updates these flags in real time, thereby accurately determining whether there is a missing modality and the specific category of the missing data.
[0103] If dynamic environment data retrieval fails due to network failure or API anomaly, i.e. The system will use the environmental feature vector at the current moment. Set it as the zero vector, and simultaneously set its cross-modal attention weights calculated in step S14. Set it to 0. Then, the system renormalizes the attention weights on the remaining effective modalities, such as physiological and personal characteristics, i.e.: in This represents the set of modalities whose validity flag is currently true. In this way, the system can dynamically adjust attention allocation when environmental data is missing, avoiding interference from missing modalities in the fusion results while preserving the contribution of other valid information.
[0104] It should be noted that physiological data is the core input for health monitoring. If it is continuously missing for more than a preset window number, such as the first preset threshold, the data will be lost. For consecutive windows, the system triggers a downgrade mode. Specifically, the system no longer attempts to fuse new health scenario vectors, but instead directly uses the most recently valid health scenario vector. The system then executes subsequent anomaly detection and decision-making processes to ensure continuous monitoring. Simultaneously, the system provides a voice prompt to the user stating, "The device may be loose or the network connection may be abnormal; please check," guiding the user to resume data collection. If the duration of missing physiological data exceeds a second preset threshold, such as... After a few minutes, the system determines that the device may be malfunctioning or the user may be unable to wear the device. At this point, the system automatically generates a device failure notification, including the user ID, the time and location of the last valid data, the type of failure, and other information. This notification is then sent via the communication module to pre-defined contacts, such as family members, caregivers, or community service centers, to facilitate timely manual intervention.
[0105] Furthermore, as an optional compensation mechanism, for short-term missing data, such as environmental data for a single window, the system can fill in the missing data using the previously valid value, or retry obtaining external API data by calling the module via a tool, and mark the compensated data as the imputed value and give it a lower attention weight in subsequent fusion. This compensation strategy can further improve the robustness of the system.
[0106] Through the above implementation methods, this method can maintain basic monitoring capabilities and promptly notify relevant personnel when multi-source data is partially or completely lost, thereby enhancing the reliability of the system.
[0107] As a preferred embodiment, refer to Figure 10 The dynamic threshold of the Gaussian mixture model is adjusted based on the effectiveness score, and the spatiotemporal dual attention network is also adjusted, including: S50: Determine the effectiveness score of the interaction based on user feedback, changes in physiological indicators, and behavioral performance; S51: Based on the mean of the validity scores of recent multiple interactions, determine the adjustment step size of the dynamic threshold and adaptively update the dynamic threshold. S52: Based on the health scenario vectors that have been identified as valid interactions and the corresponding attention distributions, determine the training samples and adjust the parameters of the spatiotemporal dual attention network.
[0108] First, the system collects feedback on the interaction effect from three dimensions to form complete evaluation data. The first dimension is explicit user feedback, obtained through voice response recognition, physical button operations, or in-app confirmation / denial. Evaluation indicators include the user's accuracy in understanding the broadcast content, cooperation score, and satisfaction feedback. The second dimension is physiological indicator feedback, obtained by comparing users' physiological data (such as heart rate and blood oxygen) before and after the intervention, analyzing physiological trend changes within 30 minutes after the intervention, and the degree of reduction in the duration of abnormalities. Evaluation indicators include indicator improvement rate, recovery time, and relapse rate. The third dimension is behavioral compliance feedback, obtained by verifying whether users have executed the suggested steps in the intervention plan, tracking the actual usage effect of tools, and analyzing users' subsequent behavioral patterns. Evaluation indicators include step completion rate, resource utilization efficiency, and long-term adherence. Based on the feedback from these three dimensions, the system defines an effectiveness score for each interaction. As an example, the following linear weighted formula can be used: in This indicates whether physiological indicators improved after the intervention; 1 indicates improvement, and 0 indicates otherwise. This indicates whether the user confirms or approves of the interaction; 1 indicates confirmation, and 0 indicates otherwise. This indicates whether the user has completed the suggested action steps; 1 indicates completion, and 0 indicates otherwise. These are the weighting coefficients for each dimension. This score comprehensively reflects the overall effectiveness of this intervention in terms of physiological improvement, user cooperation, and behavioral compliance.
[0109] Then, the system adaptively updates the dynamic threshold of the Gaussian mixture model based on the average validity scores of recent interactions. Specifically, for a specific user's risk level, such as L2 advisory level, if the system frequently detects persistently low validity scores for alerts at that level—meaning the user considers the alerts ineffective or the intervention lacking—it indicates that the current anomaly detection threshold may be too sensitive, causing unnecessary disruption. In this case, the system updates the threshold in small steps. Slowly increase the dynamic threshold for this risk level: in This represents the recent mean validity score, ranging from 0 to 1. When the value is high, the adjustment amount is small or negative (if a decreasing mechanism is used); when When the threshold is low, the adjustment amount is positive, and the threshold is raised to reduce the false alarm rate. Conversely, if the system detects a missed alarm, such as when a user reports "an alarm should have been triggered but was not," the threshold can be lowered accordingly. Through this closed-loop adjustment, the system's anomaly detection threshold gradually aligns with the user's individual needs, achieving a dynamic balance between false alarms and missed alarms.
[0110] Finally, the system uses the data confirmed as valid interactions as training samples to adjust the parameters of the spatiotemporal dual attention network. Specifically, when the validity score of a certain interaction... If the effectiveness exceeds a preset threshold, such as 0.8, then the interaction is considered to have generated a health scenario vector. The process and corresponding attention distribution, including temporal attention weights and cross-modal spatial attention weights, reflect the correct pattern that aligns with the user's actual situation. The system collects such data pairs as training samples and fine-tunes the spatiotemporal dual attention network periodically, such as weekly. During tuning, the network updates its learnable parameters to minimize the attention distribution prediction error or maximize the consistency of subsequent decisions. After multiple tunings, the network can more accurately capture the user's unique risk characteristic patterns, thereby improving the accuracy of context awareness.
[0111] Through the above implementation methods, this first embodiment achieves a complete closed-loop optimization mechanism from feedback collection and effectiveness quantification to threshold adaptive updating and fusion model adjustment. The system can continuously improve personalized monitoring performance over time, significantly enhancing user experience and long-term compliance.
[0112] Example 2 The voice interaction system for proactive health monitoring provided in this embodiment two is based on... Figure 11 The system includes: The data acquisition unit is used to collect real-time physiological data, static health records, and dynamic environmental data. The multi-source fusion unit is used to perform multi-source fusion of real-time physiological data, static health records and dynamic environmental data through a spatiotemporal dual attention network to determine the health scenario vector. The anomaly detection and decision triggering unit is used to calculate the anomaly score of the health scenario vector based on the Gaussian mixture model. When the anomaly score exceeds the dynamic threshold corresponding to the risk level and the duration meets the preset conditions, the decision process of the corresponding risk level is triggered. The risk assessment and solution generation unit is used to retrieve relevant knowledge from the medical knowledge base based on health scenario vectors using retrieval enhancement generation technology, determine retrieval similarity, and calculate a comprehensive risk score based on anomaly score, retrieval similarity, individual static risk coefficient and environmental dynamic risk coefficient. Based on the comprehensive risk score, it generates structured intervention solutions and tool call instructions. The interactive execution unit is used to dynamically adjust the speech synthesis parameters based on the risk level and the real-time ambient noise level, broadcast the intervention plan, and execute tool call commands; The closed-loop optimization unit is used to calculate the effectiveness score of a single interaction based on user feedback, changes in physiological indicators, and behavior performance, and to adjust the dynamic threshold of the Gaussian mixture model and the spatiotemporal dual attention network based on the effectiveness score.
[0113] The technical effects of the system in Embodiment 2 are the same as those of the method in Embodiment 1, and will not be repeated here.
[0114] Example 3 This embodiment three provides a computer device, including a memory and a processor; the memory stores a computer program that can run on the processor, and when the computer program is executed by the processor, it executes the voice interaction method for proactive health monitoring provided in embodiment one above.
[0115] Among them, such as Figure 12 As shown, an exemplary computer device of this embodiment is illustrated, which may specifically include a processor 1510, a video display adapter 1511, a disk drive 1512, an input / output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520 can be communicatively connected via a communication bus 1530.
[0116] The processor 1510 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solution provided in this application.
[0117] The memory 1520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1520 can store the operating system 1521 for controlling the operation of the computer device, and the basic input / output system 1522 for controlling the low-level operations of the computer device. Additionally, it can store a web browser 1523, a data storage management system 1524, and a device identification information processing system 1525, etc. The aforementioned device identification information processing system 1525 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when implementing the technical solution provided in this application through software or firmware, the relevant program code is stored in the memory 1520 and is called and executed by the processor 1510.
[0118] Input / output interface 1513 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0119] Network interface 1514 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0120] The communication bus 1530 includes a pathway for transmitting information between various components of the device, such as processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, and memory 1520.
[0121] In addition, the device can also obtain information on specific claim conditions from the virtual resource object claim condition information database for condition judgment, and so on.
[0122] It should be noted that although the above-described device only shows the processor 1510, video display adapter 1511, disk drive 1512, input / output interface 1513, network interface 1514, memory 1520, communication bus 1530, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.
[0123] Example 4 This fourth embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed, it implements the voice interaction method for proactive health monitoring provided in the first embodiment.
[0124] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of the embodiments of this application.
[0125] The above provides a detailed description of a voice interaction method for proactive health monitoring provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A voice interaction method for proactive health monitoring, characterized in that, The method includes: Based on the collected real-time physiological data, static health records, and dynamic environmental data, a spatiotemporal dual attention network is used to perform multi-source fusion of the real-time physiological data, the static health records, and the dynamic environmental data to determine the health scenario vector. The anomaly score of the health scenario vector is calculated based on the Gaussian mixture model. When the anomaly score exceeds the dynamic threshold corresponding to the risk level and the duration meets the preset conditions, the decision-making process for the corresponding risk level is triggered. Based on the health scenario vector, relevant knowledge is retrieved from the medical knowledge base using retrieval enhancement generation technology, the retrieval similarity is determined, and a comprehensive risk score is calculated based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient. Based on the comprehensive risk score, a structured intervention plan and tool call instructions are generated. Based on the risk level and real-time ambient noise level, the speech synthesis parameters are dynamically adjusted, the intervention plan is broadcast, and the tool invocation command is executed. Based on user feedback, changes in physiological indicators, and behavioral performance, the effectiveness score of a single interaction is calculated, and the dynamic threshold of the Gaussian mixture model is adjusted based on the effectiveness score, as well as the spatiotemporal dual attention network is adjusted.
2. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, The step of determining a health scenario vector by performing multi-source fusion of the real-time physiological data, the static health record, and the dynamic environmental data through a spatiotemporal dual attention network includes: Based on the dynamic environmental data, determine the environmental feature vector; Based on the aforementioned static health records, individual feature vectors are determined; Based on the real-time physiological data, dynamic pattern features are extracted, including heart rate recovery rate and environment-physiological interaction risk factors. Based on the dynamic pattern features and the original physiological features, an enhanced physiological feature vector is determined. Based on the physiological feature vector, intramodal temporal attention is applied, temporal attention weights are calculated, and the refined physiological state representation is determined based on the temporal attention weights and the physiological feature vector. Based on the physiological state representation, the environmental feature vector, and the personal feature vector, cross-modal attention weights are calculated using a multilayer perceptron. These cross-modal attention weights correspond to the contributions of physiological, environmental, and personal features, respectively. Based on the cross-modal spatial attention weights, the physiological state representation, the environmental feature vector, and the personal feature vector, a weighted fusion is performed to determine a unified health scenario vector.
3. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, Before calculating the anomaly score of the health scenario vector based on the Gaussian mixture model, the method further includes: In the initial learning phase, based on the collected historical health scenario vectors and their corresponding activity states, the expectation-maximization algorithm is used to fit the Gaussian mixture model to determine the mixing coefficients, mean vector, and covariance matrix of each Gaussian component. Based on the mixing coefficients, the mean vector, and the covariance matrix, a normal pattern library corresponding to different activity states is constructed.
4. The voice interaction method for proactive health monitoring according to claim 3, characterized in that, The calculation of the anomaly score of the health scenario vector based on the Gaussian mixture model includes: Based on the current activity state, select the corresponding Gaussian mixture model from the normal mode library; Based on the Gaussian mixture model, the negative log-likelihood of the health scenario vector is calculated, or the anomaly score is determined based on the Mahalanobis distance between the health scenario vector and the Gaussian component with the highest degree of responsibility.
5. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, The calculation of a comprehensive risk score based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient includes: Based on the aforementioned static health records, an individual's static risk coefficient is determined; Based on the aforementioned dynamic environmental data, the dynamic environmental risk coefficient is determined; Based on the anomaly score, the retrieval similarity, the individual static risk coefficient, and the environmental dynamic risk coefficient, a comprehensive risk score is determined using a weighted summation model.
6. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, The structured intervention plan and tool invocation instructions generated based on the comprehensive risk score include: Based on the preset range into which the comprehensive risk score falls, the corresponding risk level is determined. Based on the risk level, the corresponding structured template is invoked, and combined with the health scenario vector and the retrieval knowledge returned by the retrieval enhancement generation technology, an intervention plan is generated that includes risk description, action steps, operation instructions and follow-up arrangements. Based on the intervention plan, the external tools or services that need to be called are analyzed, and tool call instructions are generated.
7. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, The speech synthesis parameters include speech rate, tone, volume, and repetition strategy; The process of dynamically adjusting speech synthesis parameters based on the risk level and real-time environmental noise level, and broadcasting the intervention plan, includes: Based on the risk level, the speech rate, the tone, and the repetition strategy are determined, wherein the speech rate increases with the increase of the risk level, the urgency of the tone increases with the increase of the risk level, and the number of times key information is repeated in the repetition strategy increases with the increase of the risk level. The volume is determined based on the risk level and the real-time ambient noise level, wherein the volume increases as the risk level increases and the real-time ambient noise level increases.
8. The voice interaction method for proactive health monitoring according to claim 7, characterized in that, When broadcasting the intervention plan, the method further includes: Determining interaction priorities based on the aforementioned risk levels includes: Based on the risk level, if it is determined to be the highest risk level, then a priority strategy of interrupting the current interaction and forcibly broadcasting is adopted. Based on the risk level, if it is determined to be the second highest risk level, then the priority strategy of waiting for the current statement to finish before broadcasting is adopted. Based on the risk level, if it is determined to be a low-risk level, a priority strategy of queuing or inserting the broadcast at an opportune time will be adopted.
9. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, In the process of determining the health scenario vector by multi-source fusion of the real-time physiological data, the static health record, and the dynamic environmental data through a spatiotemporal dual attention network, the method further includes: Processing missing data includes: Based on the validity flags of various types of data, determine whether there are missing modes; When it is determined that the dynamic environment data is missing, the environment feature vector is set to a zero vector, the cross-modal space attention weight of the environment feature vector is reset to zero, and the cross-modal space attention weight is re-determined based on the remaining effective modalities. When it is determined that the real-time physiological data is continuously missing for more than a first preset threshold, a decision is made based on the most recent valid health scenario vector, and a device prompt is generated; When it is determined that the missing real-time physiological data exceeds a second preset threshold, a fault notification is generated and sent to a preset contact.
10. The voice interaction method for proactive health monitoring according to claim 1, characterized in that, The adjustment of the dynamic threshold of the Gaussian mixture model based on the effectiveness score, and the adjustment of the spatiotemporal dual attention network, include: The effectiveness score of the interaction is determined based on user feedback, changes in physiological indicators, and behavioral performance. Based on the average of the validity scores of recent multiple interactions, the adjustment step size of the dynamic threshold is determined, and the dynamic threshold is adaptively updated. Based on the health scenario vectors that have been confirmed as valid interactions and the corresponding attention distributions, training samples are determined, and the parameters of the spatiotemporal dual attention network are adjusted.
