Behavior trend model construction method, device and equipment, and behavior deviation detection method

By constructing personalized behavioral trend models to identify and warn of behavioral deviations, the problem of home intelligent care systems being unable to identify the risk evolution process has been solved, enabling early and accurate risk warnings and improving risk prevention and control effectiveness.

CN123161879APending Publication Date: 2026-11-24XG TECHNOLOGIES PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611404878.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2026-08-04
Filing Date
2026-09-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing smart home care systems are unable to identify the evolutionary process and early warning behaviors before risks develop, resulting in an inability to proactively prevent risks and reducing the effectiveness of risk control.

Method used

By correlating and processing behavioral datasets from multiple users, a personalized behavioral trend model is constructed to identify and warn of behavioral deviations, enabling early and accurate risk warnings.

Benefits of technology

This improves the accuracy and response efficiency of the home intelligent care system in identifying risks among different family members, enabling early and accurate warnings of the risk formation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161879A_ABST
    Figure CN123161879A_ABST
Patent Text Reader

Abstract

A method, apparatus, device, and method for constructing a behavior trend model are disclosed. The behavior trend model construction method includes: associating behavior datasets from multiple users to obtain a standard behavior data subset corresponding to each user; dividing the standard behavior data subset into multiple behavior chains based on preset behavior association rules, whereby the behavior chains combine behavior data from the standard behavior data subset to form a complete behavior process; determining a stability dataset for the behavior chains based on a monitoring period; and constructing a behavior trend model based on the stability dataset. This solution can send prompts or alarms to family members or guardians, thereby understanding the formation of risks in a smart home environment and achieving early and accurate risk warnings, thus improving the accuracy and response efficiency of risk identification for different family members in smart home monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Singapore Patent Application No. 10202602706U, filed on August 4, 2026, with the Intellectual Property Office of Singapore, entitled “METHOD AND APPARATUS FOR CONSTRUCTING BEHAVIOR TREND MODEL, DEVICE, AND BEHAVIOR DEVIATION DETECTION METHOD”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This disclosure relates to the field of smart home technology, specifically to a method, apparatus, device, and method for detecting behavioral deviations in a behavior trend model. Background Technology

[0003] With the iterative upgrades of smart home, artificial intelligence, and Internet of Things technologies, diverse smart devices such as smart cameras, robot vacuums, smart speakers, and millimeter-wave radar have been deeply integrated into home scenarios. To optimize the user's living experience, the collaborative interaction between devices has become a core path to improve the level of home intelligence.

[0004] Generally, smart cameras can collect visual data of home scenes, millimeter-wave radar can accurately sense human movements and location information, smart speakers can serve as human-computer interaction terminals to receive commands and provide feedback, and environmental sensors can monitor environmental parameters such as temperature, humidity, and smoke in real time. When a device detects an abnormal signal that meets a preset threshold, such as a camera capturing image features of an elderly person falling, the smart hub will push a warning message to the user through the smart speaker.

[0005] However, in the process of the above-mentioned device collaboration, the existing system can only trigger the response mechanism after a clear dangerous event occurs, and cannot capture the evolution process and early warning behaviors before the risk is formed, which reduces the risk prevention and control effectiveness of the home intelligent system. Summary of the Invention

[0006] To address the aforementioned technical problems, this disclosure provides a method, apparatus, device, and method for constructing a behavioral trend model, thereby resolving the technical issues that existing smart home care technologies cannot identify risk evolution processes and are difficult to proactively prevent.

[0007] The first aspect of this disclosure provides a method for constructing a behavior trend model, comprising: performing association processing on behavior datasets of multiple users to obtain a standard behavior data subset corresponding to the user; dividing the standard behavior data subset into multiple behavior chains based on preset behavior association rules, wherein the behavior chains are used to combine behavior data in the standard behavior data subset to form a complete behavior process; determining a stability dataset of the behavior chains based on a monitoring period; and constructing a behavior trend model based on the stability dataset.

[0008] A second aspect of this disclosure provides a method for detecting behavioral deviations, comprising: acquiring a user's behavioral dataset; determining the behavioral dataset into multiple behavioral chains based on a behavioral trend model; calculating the degree of deviation for each behavioral chain; and outputting a warning message when the degree of deviation exceeds a preset threshold.

[0009] A third aspect of this disclosure proposes a model building apparatus based on behavioral trends, comprising: a data processing module for associating behavioral datasets of multiple users to obtain a standard behavioral data subset corresponding to the user; a data classification module for dividing the standard behavioral data subset into multiple behavioral chains based on preset behavioral association rules, wherein the behavioral chains are used to combine behavioral data in the standard behavioral data subset to form a complete behavioral process; and a model building module for determining a stability dataset of the behavioral chains based on a monitoring period; and building a behavioral trend model based on the stability dataset.

[0010] A fourth aspect of this disclosure provides a computer-readable storage medium storing a computer program for executing the behavior trend model construction method described in the first aspect above.

[0011] A fifth aspect of this disclosure provides an electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the behavior trend model construction method described in the first aspect above.

[0012] In a sixth aspect, this disclosure provides a computer program product that, when executed by an instruction processor, performs the behavior trend model construction method proposed in the first aspect of this disclosure.

[0013] The technical solution provided in this disclosure associates multiple behavioral data points in a behavioral dataset with different users, enabling each user to identify their associated standard behavioral data. Based on behavioral association rules, the discrete behavioral data points of each user are combined into a coherent behavioral chain, thus identifying different behavioral chains for each user. Furthermore, by analyzing the stability of the behavioral chain within a monitoring period, a personalized long-term behavioral trend model can be established for each user. By comparing the current behavioral chain with the personalized long-term behavioral trend model in real time, subtle deviations in time, space, frequency, or behavioral sequence can be detected. Based on each deviation, prompts or alarms can be sent to family members or guardians. This allows for understanding the formation of risks in a smart home environment and achieving early and accurate risk warnings, thereby improving the accuracy and response efficiency of risk identification for different family members in smart home care. Attached Figure Description

[0014] Figure 1 This is a behavioral trend evaluation system, which is an exemplary embodiment of the present disclosure.

[0015] Figure 2 This is a flowchart illustrating a behavioral trend model construction method of an exemplary embodiment of this disclosure.

[0016] Figure 3 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0017] Figure 4 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0018] Figure 5 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0019] Figure 6 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0020] Figure 7 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0021] Figure 8 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0022] Figure 9 This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0023] Figure 10This is a flowchart illustrating a method for constructing a behavioral trend model, which is another exemplary embodiment of this disclosure.

[0024] Figure 11 This is a schematic diagram of the structure of a behavior trend model building apparatus, which is another exemplary embodiment of this disclosure.

[0025] Figure 12 This is a structural diagram of an electronic device provided in an exemplary embodiment of this disclosure. Detailed Implementation

[0026] To explain this disclosure, exemplary embodiments of the disclosure will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the disclosure, and not all of them. It should be understood that the disclosure is not limited to exemplary embodiments.

[0027] It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this disclosure.

[0028] Application Overview In related technologies, within smart home systems, smart cameras can collect visual data of the home environment, millimeter-wave radar can accurately sense human movements and location information, smart speakers can serve as human-computer interaction terminals to receive commands and provide feedback, and various environmental sensors can monitor environmental parameters such as temperature, humidity, and smoke concentration in real time. When any sensing device detects a trigger signal that meets a preset abnormal threshold—for example, a smart camera capturing image information consistent with fall characteristics—the smart home central system can push warning information to the user through preset terminals. However, the risk warning mechanisms of these technologies can only trigger passive responses to clearly defined dangerous events that have already occurred. They cannot capture and identify the evolutionary path and precursory behaviors during the risk formation process, resulting in the risk prevention and control effectiveness of home smart care systems failing to meet actual needs.

[0029] The technical solution provided in this disclosure performs user identity association processing on multiple behavioral data in a behavioral dataset to obtain a standard behavioral data subset that corresponds one-to-one with each user; based on preset behavioral association rules, it performs sequence aggregation on discrete behavioral data points within the standard behavioral data subset to generate multiple behavioral chains corresponding to different behavioral processes; based on a preset monitoring period, it analyzes the stability characteristics of each behavioral chain to construct a personalized long-term behavioral trend model that matches the behavioral habits of each user.

[0030] Based on a behavioral trend model, this invention compares and calculates the current behavioral chain collected in real time with a personalized long-term behavioral trend model. This allows for the sensitive detection of subtle deviations in current behavior across time, space, frequency, and behavioral sequence dimensions. When the deviation meets preset trigger conditions, a prompt or alarm message is sent to a family member or designated guardian. Through this behavioral deviation detection method, this invention enables behavioral perception of the risk formation process in smart home scenarios, achieving early and accurate risk warnings and effectively improving the accuracy and response efficiency of risk identification for different family members in smart home monitoring.

[0031] Exemplary System Figure 1 A schematic diagram of the architecture of a behavioral trend evaluation system 100 according to an exemplary embodiment of the present disclosure is shown. Figure 1 As shown, the system 100 may include an electronic device 110, a server 120, and a database 130.

[0032] Electronic device 110 is used to receive data from the sensing module and the terminal device. The sensing module can be integrated into the terminal device or exist independently. For example, the sensing module can be a millimeter-wave radar, a human infrared sensor, a high-definition camera module, etc., and the terminal device can be a smart camera, a robot vacuum cleaner, a smart door lock, a smart speaker, etc.

[0033] After completing the acquisition, alignment, and format preprocessing of the raw data, the electronic device 110 sends the standardized behavior dataset to the server 120, and at the same time responds to the server 120's instructions to push alarm information to the designated user.

[0034] Server 120 is used to build and store behavioral trend models and calculate behavioral deviation results based on these models. Specifically, it performs the following: user identity association processing, binding multi-source behavioral data to different users to obtain corresponding standard behavioral data subsets; sequence aggregation of discrete behavioral data points based on preset behavioral association rules to generate behavioral chains corresponding to complete behavioral processes; and analysis of the stability characteristics of the behavioral chains based on monitoring cycles to construct personalized long-term behavioral trend models for users.

[0035] During the real-time monitoring phase, the current behavior chain is compared with the behavior trend model, and the comprehensive deviation of the four dimensions of time dimension, space dimension, behavior frequency, and behavior sequence is calculated. It is determined whether the deviation meets the early warning triggering conditions. If it does, an alarm command is generated and sent to the electronic device 110. At the same time, all intermediate data, model parameters and results generated by the calculation are stored in the database 130.

[0036] Database 130 is used for hierarchical storage of raw behavior collection data, standard behavior data subsets associated with users, aggregated behavior chain data, personalized behavior trend model parameters, and result logs of each behavior deviation detection. It supports server 120 to call historical data at any time for model iteration updates and deviation result backtracking verification, ensuring the computational efficiency and data security of system 100.

[0037] Through the above system architecture, the embodiments of this disclosure realize behavioral perception of the risk formation process in smart home scenarios, achieve early and accurate risk warning, effectively improve the risk identification accuracy and response efficiency of smart home care for different family members, and solve the technical problems that existing smart home care technologies cannot identify the risk evolution process and are difficult to achieve proactive prevention.

[0038] Exemplary methods Figure 2 This is a flowchart illustrating a behavioral trend model construction method provided in an exemplary embodiment of this disclosure. This embodiment can be applied to a server, such as... Figure 2 As shown, the method may include the following steps: Step 201: Perform association processing on the behavior datasets of multiple users to obtain a standard behavior data subset corresponding to each user.

[0039] In some embodiments, within a smart home environment, users can include long-term resident family members and temporary visitors who only enter the residence temporarily. As an optional implementation, family members and temporary visitors (such as repairmen, relatives, or friends) can be distinguished based on facial features captured by a smart camera and the duration of their stay. The duration of stay can be customized. Behavioral data from family members is continuously collected and analyzed, while behavioral data from temporary visitors is not analyzed.

[0040] Behavioral datasets can be collected by sensing modules and terminal devices. These datasets may include movement trajectory data and associated action datasets. For example, action datasets may include behavioral action data, corresponding dwell time data, and device interaction behavior data.

[0041] The data in the behavioral dataset is matched with different user identities, and the matched data is then standardized to obtain a standard subset of behavioral data. For example, the standardization process could be to uniformly correct timestamp errors caused by clock deviations on different devices, ensuring that the collection time of the same behavior in the same scenario is consistent across different devices.

[0042] Step 202: Based on preset behavior association rules, the standard behavior data subset is divided into multiple behavior chains. The behavior chains are used to combine the behavior data in the standard behavior data subset to form a complete behavior process.

[0043] In some embodiments, the preset behavior association rule refers to the logical criteria for judging the correlation between discrete behavior data. For example, the behavior association rule may be the chronological order, the spatial proximity, or the behavior logic.

[0044] For example, "from waking up to opening the door to going to the bathroom", the system determines whether the user is using the toilet or washing up based on the chronological order and / or spatial proximity of the action data.

[0045] In some embodiments, a behavior chain refers to an ordered data sequence that reflects a complete and independent behavior process after being linked together according to behavior association rules. Each behavior chain corresponds to a complete event, integrating the originally isolated single-point behaviors into an analyzable complete process.

[0046] For example, the behavior chain can be divided as follows: First, traverse all behavior data within the standard behavior data subset, and perform preliminary sorting of all single-point behaviors according to the collection timestamp. Then, group and aggregate according to spatial proximity and behavior logic. Finally, when the behavior spatial jump exceeds the preset range or the time interval exceeds the threshold (for example, there is a 1-hour interval after completing washing up before the next behavior occurs), the current grouping is terminated. The ordered sequence of behaviors connected in the current group is an independent behavior chain. Repeat the above process until all behavior data is divided into the corresponding behavior chain, and finally obtain multiple behavior chains for the user.

[0047] For example, “waking up in the bedroom at 7:00, then going to the bathroom at 7:02, and finally turning on the sink faucet at 7:03” determines that the user’s behavior chain is the behavior of washing up in the morning.

[0048] Step 203: Based on the monitoring period, determine the stability dataset of the behavior chain.

[0049] In some embodiments, the monitoring period refers to a preset continuous time interval used to statistically analyze user behavior patterns, collecting sufficient behavioral chain data to obtain stable user behavior habits. The monitoring period can be customized, such as 3 months.

[0050] A stability dataset is a statistical dataset that tracks the fluctuations of each action in every user behavior chain throughout the entire monitoring period. It reflects the typical range of changes in the user's corresponding behavior. For example, a stability dataset may include statistical characteristics such as the average occurrence time of the behavior chain, the range of temporal fluctuations, the average spatial dwell time, the spatial distribution range, the weekly frequency of occurrence, and the order deviation of the behavior sequence.

[0051] For example, taking the morning washing behavior chain as an example, users usually get up to wash around 7 o'clock, with a fluctuation range between 6:40 and 7:20. The average washing time is 10 minutes, ranging from 8 to 12 minutes, and it happens 6-7 times a week. These statistically derived regular ranges are the stability data of this behavior chain. Thus, it can be understood that the sum of such data from all behavior chains is the stability dataset.

[0052] Step 204: Construct a behavioral trend model based on the stability dataset.

[0053] In some embodiments, the statistical characteristics of each behavioral chain (including average occurrence time, time fluctuation threshold, spatial distribution range, average dwell time, periodic occurrence frequency, and behavioral sequence consistency rate) are organized into a multi-dimensional feature vector. Then, the multi-dimensional feature vectors of all user behavioral chains are integrated to construct a user-specific behavioral matrix, while setting deviation warning thresholds for each feature dimension. Finally, the behavioral matrix and corresponding deviation thresholds are integrated and stored as a callable model file, ultimately yielding a personalized behavioral trend model for the user.

[0054] For example, taking the morning washing and grooming behavior chain as an example, the statistics show that the average occurrence time is 7:05, the time fluctuation threshold is ±25 minutes, the spatial distribution range is limited to the entrance bathroom area, and the frequency threshold is at least 5 times per week.

[0055] The technical solution provided in this disclosure can analyze only the data of family members, effectively avoiding interference from the behavior of irrelevant personnel on the accuracy of the model. At the same time, it solves the problem of data asynchrony from multiple sources through unified processing, laying a precise and unified data foundation for subsequent analysis. On this basis, discrete single-point behaviors are aggregated into complete behavior chains through behavior association rules based on time, space, and logic. This allows for understanding user activities from the perspective of the behavior process, rather than identifying isolated individual actions. Furthermore, by statistically analyzing the characteristic fluctuation range of each behavior chain through monitoring cycles, a stable dataset is obtained. This enables the precise extraction of the unique long-term behavioral habit patterns of the corresponding user, ultimately constructing a personalized behavior trend model.

[0056] It not only solves the problem of high false alarm rate caused by the inability of traditional general models to adapt to different users' lifestyles, but also provides an accurate personalized comparison benchmark for subsequent real-time behavior deviation detection, thus significantly improving the accuracy of behavior analysis and the response efficiency of risk warning in the context of smart home care.

[0057] like Figure 3 As shown above, in the above Figure 2 Based on the illustrated embodiment, step 201 may specifically include the following steps: Step 2011: Obtain feature information and behavior datasets of multiple users, wherein the behavior dataset includes movement trajectory data and action datasets associated with the movement trajectory data.

[0058] In some embodiments, feature information refers to identifiable individual biological or physical characteristics used to distinguish different users and complete identity matching, which can be directly collected through various sensing devices in smart homes.

[0059] For example, the feature information can be facial features, gait features, height features, or clothing features. This feature information can be collected by a smart camera.

[0060] In some embodiments, the behavior dataset may include movement trajectory data and motion datasets associated with the movement trajectory data. For example, the motion dataset may include behavior motion data, dwell time data corresponding to the behavior motion data, and device interaction behavior data, etc.

[0061] For example, behavioral motion data refers to the perception data of specific user action types and parameters. Specifically, it includes the identification results of specific action types such as getting up, walking, sitting down, falling, opening and closing doors, and picking up items, as well as parameters such as the amplitude and force of the action. This data is usually obtained by extracting human skeleton point action features from millimeter-wave radar, recognizing visual action features from smart cameras, and then classifying them using algorithms.

[0062] Dwell time data refers to statistical data on the duration a user stays in a specific spatial area. Specifically, this includes data such as a user staying in the bedroom for 10 minutes after getting up or in the bathroom for 8 minutes while washing up. This data is usually obtained by extracting the start and end timestamps of the user's location coordinates in the movement trajectory data where no change exceeds a threshold, and then calculating the difference.

[0063] Device interaction behavior data refers to the recorded data of user interaction behavior with smart home terminal devices. Specifically, the records of user operations such as opening and closing smart door locks, adjusting the volume of smart speakers, opening refrigerator doors, and triggering smart toilet sensors are usually obtained directly from the interaction events and timestamps reported by the corresponding smart devices.

[0064] Step 2012: Determine the user's identity information based on the feature information.

[0065] In some embodiments, a family member identity feature database may be pre-stored in the smart home system, which may include basic information such as facial features, gait features, and height features.

[0066] For example, one can select any one of facial features, gait features, height features, or clothing features and compare it with a pre-stored identity feature database to determine the user's identity information; or two or more features can be selected for weighted fusion to obtain a comprehensive matching score, and the user's identity information can be determined based on the comprehensive score. The specific fusion weights can be adaptively adjusted according to the collection accuracy of different devices.

[0067] For example, when the facial features captured by the camera are of high clarity, the matching weight of the facial features can be appropriately increased. When poor lighting conditions lead to a decrease in the accuracy of facial feature extraction, the matching weight of the gait features captured by the millimeter-wave radar can be increased accordingly, thereby ensuring the accuracy of identity recognition in different scenarios.

[0068] For example, when the indoor lighting conditions in a home are sufficient, the smart camera in the entrance area can clearly capture the facial features of the person entering the home. The extracted facial features are compared with the pre-stored identity feature database, and the facial feature matching score of the father, Zhang, is 94%. This score exceeds the preset single feature identity determination threshold of 88%. Therefore, the person's identity is directly determined to be the homeowner, Zhang, based solely on the facial features.

[0069] When the lighting in the entrance area is insufficient at night, the smart camera cannot clearly extract facial features. The millimeter-wave radar collects the gait features of the person entering the house, while the smart camera can still extract stable height contour features. The gait features and height features are compared with the feature database. The gait feature matches the mother, Liu, with a score of 87%, and the height feature matches the mother, Liu, with a score of 91%. The preset gait weight is 0.4 and the height weight is 0.6. The calculated comprehensive matching score is 87×0.4+91×0.6=89.4%, which exceeds the preset comprehensive judgment threshold of 85%. Therefore, based on the fusion of the two features, the person's identity is determined to be the mother, Liu.

[0070] Step 2013: Perform time and semantic alignment on the movement trajectory data and action dataset to obtain the standard behavior dataset.

[0071] In some embodiments, behavioral action data, dwell time data, and device interaction behavior data belonging to the corresponding user are separated, sorted according to the unified baseline timestamp after correction of each data, and matched and bound to the user's movement trajectory points under the same time window in turn. At the same time, the heterogeneous behavior descriptions output by different terminal devices are uniformly mapped and converted into preset standard semantic tags to obtain a standard behavior dataset with time synchronization and unified expression.

[0072] For example, the raw motion code obtained by millimeter-wave radar at a reference time of 18:15:22 is Radar_Motion, and the corresponding raw behavior description is "detected as continuous displacement motion of the human skeleton"; the raw trajectory code obtained by smart camera at the same time range is Camera_Walk, and the corresponding raw trajectory description is "identified as a visual walking trajectory of continuous movement of the user".

[0073] First, the raw timestamps output by both types of devices are uniformly corrected to the base time of the smart home central clock. After confirming that the time windows of the two types of data completely overlap, they are uniformly mapped to the standard behavioral semantic label Walk_Action using preset mapping rules. Then, the time-matched millimeter-wave radar action features and smart camera movement trajectory points are bound to the standard semantic label Walk_Action, ultimately resulting in a standard behavioral data point: "At 18:15, the user exhibited walking behavior in the restaurant area." Thus, the sum of all similar data that have completed matching and mapping constitutes the standard behavioral dataset for the corresponding user.

[0074] Step 2014: Associate the identity information with the standard behavior dataset to obtain a subset of standard behavior data corresponding to the user.

[0075] In some embodiments, each piece of data in the standard behavior dataset that has completed alignment processing is associated and bound with the corresponding user identity information. After splitting the data according to the identity information to obtain a subset of standard behavior data exclusive to a single user, the behavior data in the subset is then divided and aggregated based on preset behavior association rules, and finally multiple independent behavior chains belonging only to the corresponding user are obtained.

[0076] Based on the above embodiments, from feature acquisition and identity determination to multi-source data alignment and identity association splitting, noise filtering and standardization processing were completed at the data source level. Furthermore, time alignment and semantic alignment were used to solve the problems of asynchronous time and inconsistent representation of data from heterogeneous devices, enabling behavioral data scattered across different devices to be accurately matched and integrated into a standardized dataset. Finally, identity association splitting was used to obtain a standard behavioral data subset exclusive to each user, which not only ensured the purity and accuracy of subsequent behavioral analysis data, but also provided standardized basic data support for the construction of personalized behavioral trend models. This reduced the error in subsequent behavioral chain segmentation and trend modeling from the source, and improved the reliability and accuracy of the overall behavioral analysis process.

[0077] like Figure 4 As shown above, in the above Figure 3 Based on the illustrated embodiment, step 2013 may further include the following steps: Step 2015: Based on the same timeline, classify the behavioral data from different acquisition terminals in the action dataset to obtain multiple time-aligned datasets.

[0078] In some embodiments, after completing the unified correction of the timestamps of all behavioral data, all data are projected onto the same timeline based on the smart home central clock, and the action dataset is classified according to the device type of the terminal device.

[0079] First, all behavioral action data from millimeter-wave radar along the timeline are extracted and aggregated to obtain the first type of time-aligned dataset, which includes all skeleton action feature data at the corresponding timestamp. Then, all action recognition data from smart cameras are extracted and aggregated to obtain the second type of time-aligned dataset, which includes all visual action recognition data at the corresponding timestamp. Finally, device interaction data reported by all smart terminals connected to the smart home system (smart sofas, smart door locks, smart refrigerators, etc.) are extracted and aggregated to obtain the third type of time-aligned dataset, which includes all device interaction event data at the corresponding timestamp. All three datasets are sorted based on the same baseline timeline, and data collected by different terminals at the same time point can be directly matched, completing the initial alignment and classification along the time dimension.

[0080] For example, taking the data collected from 18:10 to 18:20 on the same day as an example, the five sets of skeleton motion data collected by millimeter-wave radar, the three sets of visual motion data collected by smart cameras, and the two sets of device interaction data reported by smart sofa and smart refrigerator respectively within this time interval are classified into three time-aligned datasets after being classified on the same time axis: millimeter-wave radar, smart camera, and smart terminal interaction. The data in each dataset are arranged in the order of the base timestamp and can be directly used for subsequent semantic alignment matching.

[0081] Step 2016: Semantically unify the behavioral data from different acquisition terminals in the time-aligned dataset to obtain a standard behavioral dataset.

[0082] For example, in the millimeter-wave radar time-aligned dataset, the original description of the data at 18:15 is "detected continuous displacement of human skeleton", which is uniformly converted into the standard label "walking" according to the mapping rules; in the smart camera time-aligned dataset, the original description of the data at the same time node is "identified user continuous movement trajectory", which is also mapped to the standard label "walking"; in the smart terminal interaction time-aligned dataset, the original description reported by the smart refrigerator at 18:18 is "door opening and closing triggered", which is mapped to the standard label "opening and closing of refrigerator door".

[0083] Based on the above embodiments, by first classifying the data according to device type based on a unified time axis to obtain a time-aligned dataset, and then performing semantic unification on the different behavioral descriptions output by different terminals, it ensures that multi-source data corresponding to the same behavior can be quickly matched and bound from the time dimension, avoiding matching errors caused by the disorder of data time sequence from different devices. It also solves the problem of inconsistent descriptions of the same behavior from different collection terminals from the semantic level, eliminating the semantic barriers of multi-source heterogeneous data. This allows scattered and independent multi-device data to be accurately integrated into usable standardized data. Compared with the direct alignment processing method, it further reduces matching errors and improves alignment efficiency. At the same time, it provides a more accurate and consistent standard data foundation for subsequent identity association and behavior modeling, thus ensuring the data reliability of the entire behavior trend model construction process.

[0084] like Figure 5 As shown above, in the above Figure 2 Based on the illustrated embodiment, step 202 may specifically include the following steps: Step 2021: Based on the temporal continuity sub-rules and behavioral logic sub-rules in the behavioral association rules, adjacent action behavior data are identified as the same behavioral chain.

[0085] In some embodiments, the temporal continuity sub-rule refers to the basic temporal determination criterion used in behavior association segmentation to determine whether two adjacent actions belong to the same complete behavior process. The behavior logic sub-rule refers to the logical determination criterion based on the logic of users' daily behavioral habits to determine whether there is a causal relationship between adjacent actions.

[0086] Furthermore, such as Figure 6 As shown, step 2021 may further include the following steps: Step 2024: In response to the time continuity sub-rule, determine that the difference between the occurrence times of adjacent action behavior data is less than a preset threshold, and identify the adjacent action behavior data as the same behavior chain.

[0087] In some embodiments, a maximum allowed time interval threshold can be preset. If the difference between the timestamps of two adjacent action data is less than the threshold, it is determined that the two satisfy the time continuity and belong to the same action process. If the difference is greater than the threshold, it is determined that they belong to different action processes.

[0088] For example, the base timestamps of adjacent actions are as follows: 7:00 "get up", 7:02 "walk out of the bedroom", 7:03 "enter the bathroom", and 7:05 "turn on the sink faucet".

[0089] The time interval between 7:02 and 7:00 is 2 minutes, which is less than the preset time continuity threshold of 10 minutes, thus satisfying the time continuity sub-rule. At the same time, the behavior logic from getting up to leaving the bedroom conforms to the daily behavior logic of leaving the bedroom after getting up in the morning, thus satisfying the behavior logic sub-rule. Therefore, the two actions are classified as the same behavior chain.

[0090] After 7:05, the timestamp of the next action "opening the living room refrigerator door" is 8:10. The time interval between 7:05 and 8:05 is 65 minutes, which is much greater than the preset time continuity threshold of 10 minutes. Therefore, the time continuity sub-rule is not satisfied, the current behavior chain division is terminated, and the above four adjacent actions are finally determined as the complete "morning washing" behavior chain.

[0091] Step 2025: In response to the behavior logic sub-rule, determine that adjacent action behavior data conforms to the preset logical relationship, and identify adjacent action behavior data as the same behavior chain.

[0092] In some embodiments, based on step 2024, the behavior logic sub-rules are used to verify whether actions with consecutive times truly belong to the same complete behavior, so as to avoid mistakenly classifying actions that are close in time but unrelated in logic into the same behavior chain.

[0093] For example, the time interval between 7:03 and 7:02 is 1 minute, which is less than the 10-minute threshold, satisfying the time continuity requirement. The behavior of leaving the bedroom and entering the bathroom also conforms to the behavioral logic of washing up in the morning, satisfying the behavioral logic sub-rule, and thus continuing to be included in the same behavioral chain. Similarly, the time interval between 7:05 and 7:03 is 2 minutes, satisfying the time continuity requirement. The behavior of turning on the faucet and entering the bathroom is logical and also included in the same behavioral chain.

[0094] Step 2022: Based on the spatial continuity sub-rules in the behavior association rules, associate the occurrence spaces of adjacent action behavior data to determine them as continuous paths of the same behavior chain.

[0095] In some embodiments, spatial continuity sub-rules refer to the criteria for determining the correlation between adjacent actions based on the spatial location relationship of the actions in the behavior association division.

[0096] For example, a maximum distance threshold can be preset between the locations of two adjacent actions. If the Euclidean distance between the locations of adjacent actions is less than this threshold, then the two actions are considered to satisfy spatial continuity and belong to the same continuous path of the same action chain. If the distance is greater than the threshold, then the actions are considered to be spatially discontinuous and belong to different action processes. This rule further verifies the rationality of the action chain division from a spatial dimension, avoiding the mistakenly grouping actions that satisfy time and logic but have a large spatial span into the same action chain.

[0097] For example, the maximum distance threshold for spatial continuity is 3 meters, that is, spatial continuity is satisfied if the spatial distance between adjacent action locations is less than 3 meters.

[0098] The spatial coordinates of the first action "getting up" are the bedroom bed area (12, 5), and the spatial coordinates of the second action "walking out of the bedroom door" are the bedroom doorway (15, 6). The calculated spatial distance between the two points is approximately 3.16 meters, which is within the preset allowable range and satisfies the spatial continuity sub-rule. Therefore, it is confirmed that the two actions belong to the continuous path of the same behavior chain.

[0099] The spatial coordinates of the third action "entering the bathroom" are at the bathroom door (17, 6). The spatial distance between this action and the previous action "walking out of the bedroom door" is about 2 meters, which is less than the 3-meter threshold, satisfying the spatial continuity requirement. Therefore, it continues to be included in the continuous path of the same behavior chain.

[0100] The fourth action, "turning on the sink faucet," occurs at the bathroom sink (18, 7), which is approximately 1.41 meters away from "entering the bathroom." This satisfies spatial continuity and is thus included in the continuous path of the current action chain.

[0101] The next action to be divided, "opening the refrigerator door in the living room", occurs in the living room refrigerator area (8, 10). The spatial distance between this action and "opening the sink faucet" is approximately 10.44 meters, which is much greater than the preset threshold of 3 meters. This does not meet the spatial continuity sub-rule, thus further verifying the determination to terminate the current action chain division from a spatial perspective.

[0102] Step 2023: Based on the continuous paths of the same behavior chain, divide the standard behavior data subset into multiple behavior chains.

[0103] In some embodiments, all behavioral data within the standard behavioral data subset are first sorted in ascending order according to a unified reference timestamp to obtain the behavioral sequence to be divided. Then, starting from the first behavioral data in the sequence, each adjacent behavioral data is traversed sequentially, and time-continuous sub-rules, behavioral logic sub-rules, and spatial continuous sub-rules are matched in turn. When adjacent behaviors satisfy all three types of rules, they are assigned to the same continuous path of the behavioral chain currently being constructed.

[0104] When an adjacent behavior is encountered that does not satisfy any of the rules, the construction of the current behavior chain is terminated. The already aggregated continuous paths are saved as a complete behavior chain, and the next new behavior chain is reconstructed starting from the behavior data that does not satisfy the rules. This traversal and judgment process is repeated until all behavior data in the behavior sequence is assigned to the corresponding behavior chain, ultimately splitting the complete subset of standard behavior data into multiple independent behavior chains.

[0105] For example, starting from the first action "7:00 AM - wake up - bedroom bed", the judgment proceeds sequentially. The first four actions (wake up, leave the bedroom, enter the bathroom, turn on the faucet) all satisfy the three types of rules at the same time, and are aggregated into a continuous path of the current action chain. When the fifth action "8:10 AM - open the refrigerator door - living room" is reached, it does not satisfy the rules of temporal continuity and spatial continuity, so the division is terminated, and the continuous path of the first four actions is saved as the first complete action chain "morning washing up".

[0106] Starting from the fifth behavior, a new behavior chain is reconstructed. If subsequent adjacent behaviors meet the rules, they are continuously aggregated; otherwise, they are segmented. Finally, the 12 behavior data are split into four independent behavior chains: "morning washing up", "breakfast preparation", "working from home", and "evening washing up", completing the entire segmentation process.

[0107] Based on the above embodiments, preliminary behavior segmentation was completed through time continuity rules, and erroneous aggregations that were close in time but unrelated in logic were eliminated through behavior logic rules. Furthermore, erroneous divisions that met temporal and spatial requirements but had unreasonable spatial spans were further eliminated through spatial continuity rules. This effectively solved the problem of large errors and high error rates in behavior chain segmentation using a single rule, improved the accuracy and rationality of behavior chain segmentation, and ensured that each behavior chain obtained corresponded to a complete and independent user behavior process. This accurately restored the user's real home behavior habits and provided a clear and accurate basic data support for subsequent behavior trend modeling, thereby improving the reliability of subsequent user behavior analysis and anomaly judgment.

[0108] like Figure 7 As shown above, in the above Figure 5 Based on the illustrated embodiment, the following steps may also be included: Step 2026: Based on the preset behavior chain classification rules, classify multiple behavior chains to determine daily routine behavior chains, high-frequency behavior chains, and abnormal behavior chains.

[0109] In some embodiments, behavior chain classification rules refer to hierarchical classification rules based on the frequency of occurrence and the temporal / spatial regularity of behavior chains.

[0110] For example, we can first count the number of times each behavior chain occurs in the past 30 days, as well as the time window deviation and spatial location deviation for each occurrence. If a behavior chain occurs ≥ 5 times per week, and the time of each occurrence deviates from the baseline habit time by no more than 1 hour, and the spatial location is completely fixed, then it is classified as a daily routine behavior chain.

[0111] If a behavioral chain occurs ≥8 times per month but less than 5 times per week, or if the time deviation exceeds 1 hour but the spatial location is fixed, it is classified as a high-frequency behavioral chain.

[0112] If a behavioral chain occurs ≤ 1 time in the past 30 days, or if the time or space deviation of the occurrence is far beyond the user's daily habit range (time deviation exceeding 3 hours, spatial location deviating from the daily path by more than 5 meters), it is classified as an abnormal behavioral chain.

[0113] For example, morning washing up (around 7 am, bedroom to bathroom) occurred 26 times in the past 30 days, averaging 6.5 times per week. Each occurrence was concentrated between 6:40 and 7:40 am, with a deviation of no more than 1 hour. The spatial path was fixed from the bedroom bed to the bathroom sink, which met the criteria for a daily routine behavior chain. Therefore, it was classified as a daily routine behavior chain.

[0114] Watching TV shows in the living room (sofa area, evening) occurred 12 times in the past 30 days, averaging 3 times per week. The time of occurrence was concentrated between 7 pm and 9 pm, with a deviation of about 1.5 hours. The spatial location was fixed on the living room sofa, which meets the criteria for high-frequency behavior chain, so it is classified as a high-frequency behavior chain.

[0115] The fall at night (in the bathroom area at 2 a.m.) occurred only once in the past 30 days, and the user has no history of staying in the bathroom at 2 a.m. The time of occurrence and the type of behavior both deviate from the usual range, which meets the criteria for the abnormal behavior chain. Therefore, it is classified as an abnormal behavior chain.

[0116] Based on the above embodiments, by combining the frequency of occurrence and spatiotemporal regularity to classify the behavior chain into layers, it is possible to accurately filter out the most stable and representative daily regular behaviors of users from messy user behavior data, distinguish the high-frequency but less regular behaviors of users, and quickly identify abnormal behaviors that deviate from users' daily habits. This provides a data foundation for targeted modeling and analysis of different types of behaviors, avoids the waste of resources caused by indiscriminate modeling, and enables abnormal behaviors to be located more quickly and accurately, thereby improving the efficiency and accuracy of subsequent behavior analysis and anomaly warning.

[0117] like Figure 8 As shown above, in the above Figure 2 Based on the illustrated embodiment, step 203 above may specifically include the following steps: Step 2031: Based on the monitoring period, acquire multiple time data, multiple continuous path data, and the frequency of occurrence within the time data period of the behavior chain.

[0118] In some embodiments, a natural month (30 days) is used as the preset monitoring period, and the target behavior chains that have been classified within this period are traversed.

[0119] For example, extract the baseline start timestamp recorded in each target behavior chain and summarize it to obtain multiple time data sets corresponding to the behavior chain; extract the spatial coordinate sequence of each action recorded in each target behavior chain and organize and summarize it to obtain multiple continuous path data sets corresponding to the behavior chain; directly count the total number of times the behavior chain appears in the entire monitoring period, and use the total number of times counted as the occurrence frequency of the behavior chain in the monitoring period.

[0120] For example, the monitoring period is set from May 1st to May 30th, 2026. The target behavior chain is the "morning washing" behavior chain that the user has already categorized. All behavior chain entries marked "morning washing" are traversed throughout the entire monitoring period. The start timestamp of each entry record is extracted (e.g., 7:02 on May 1st, 6:58 on May 2nd, etc.), and 26 time data points of the behavior chain are obtained. The spatial coordinate sequence of each entry record is extracted (all are "bedroom bed (12,5) - bedroom door (15,6) - bathroom door (17,6) - washbasin (18,7)"), and 26 sets of continuous path data are obtained. Finally, it is found that the behavior chain occurred 26 times in the 30-day monitoring period, that is, the occurrence frequency is 26 times / monitoring period, thus completing the acquisition of the three types of data.

[0121] Step 2032: Based on multiple time data and a preset time deviation threshold, determine the time pattern data of the behavior chain.

[0122] In some embodiments, by statistically analyzing the distribution characteristics of all extracted time data and combining them with a preset deviation threshold for pattern verification, the time pattern data of the behavior chain can be derived.

[0123] For example, firstly, all start time data for each behavior chain is converted to minutes within the day and normalized. The average of all normalized times is calculated as the baseline habit time for that behavior chain. Then, the absolute deviation between the actual occurrence time and the baseline habit time for each behavior chain is calculated. The proportion of occurrences with deviations within a preset time deviation threshold is then counted. If the proportion exceeds a preset acceptable proportion threshold, the baseline habit time and deviation range are compiled into the time pattern data for that behavior chain. If the proportion is below the acceptable proportion threshold, the behavior chain is marked as having no stable time pattern.

[0124] For example, the target behavior chain "morning washing up" has 26 time data points. After normalizing all of them to the minutes of the day, they are 422 (7:02), 418 (6:58)... The average of all the times is calculated to be about 420 minutes, that is, the baseline habit time is 7:00. The time deviation threshold is 60 minutes. After statistics, the deviation of 25 of the 26 time data points is within 60 minutes, accounting for about 96.1%, which exceeds the preset qualified proportion threshold of 85%. Therefore, the time regularity data of this behavior chain is determined to be: baseline habit time 7:00, and allowable deviation range ±60 minutes.

[0125] If only 6 out of the 12 time data points for the target behavior chain "watching TV shows in the living room" deviate within the preset threshold of 120 minutes, accounting for 50% which is lower than the qualified rate of 85%, then the behavior chain is marked as having no stable time pattern.

[0126] Step 2033: Based on the temporal pattern data of the behavior chain and multiple continuous path data, determine the spatial pattern data of the user corresponding to the behavior chain.

[0127] In some embodiments, spatial pattern data is obtained by statistically aggregating all continuous path data by combining temporal pattern data of behavioral chains.

[0128] For example, first determine whether the behavior chain has a stable temporal regularity data. If a stable temporal regularity data exists, extract the spatial coordinates corresponding to each action in all continuous path data of the behavior chain, calculate the average coordinates of each action position as the reference spatial position, and then count the deviation ratio between the actual position of each action and the reference position. After confirming that the deviation ratio of all actions meets the preset spatial deviation requirements, organize the sequentially arranged reference spatial coordinate sequence of each action into the spatial regularity data of the behavior chain.

[0129] If the behavior chain has no stable temporal pattern, then spatial frequency statistics are performed on all continuous paths. Only spatial paths that appear more frequently than a preset percentage are marked as spatial pattern data of the behavior chain. If no path reaches the frequency threshold, it is marked as having no stable spatial pattern.

[0130] For example, the target behavior chain "morning washing up" has been determined to have a stable temporal pattern. In its 26 sets of continuous path data, each path contains the spatial coordinates of 4 actions. The average coordinates of the four actions are calculated to obtain the reference position: "getting up" corresponds to the bedroom bed area (12,5), "leaving the bedroom door" corresponds to the bedroom doorway (15,6), "entering the bathroom" corresponds to the bathroom doorway (17,6), and "turning on the sink faucet" corresponds to the bathroom sink (18,7). The deviations between all actual positions and the reference positions are counted. 96% of the deviations are within the preset 0.5-meter deviation threshold, which meets the requirements. Therefore, this coordinate sequence is organized into the spatial pattern data of "morning washing up". If a behavior chain has no stable temporal pattern, and 8 out of 12 continuous paths have the same spatial path, which exceeds the preset frequency threshold of 60%, then the consistent path is marked as spatial pattern data. If only 3 paths are consistent, it is marked as having no stable spatial pattern.

[0131] Step 2034: Based on multiple time data and the frequency of occurrence within the time data period, determine multiple occurrence frequencies of the behavior chain, and based on the multiple occurrence frequencies, determine the behavior pattern data.

[0132] The stability dataset includes temporal pattern data, spatial pattern data, and behavioral pattern data.

[0133] In some embodiments, multiple sets of occurrence frequencies can be obtained by first splitting and statistically analyzing the time dimension, and then the stability can be determined by frequency fluctuation characteristics to finally determine the behavioral pattern data.

[0134] For example, based on all the extracted time data, the entire monitoring period is first divided into multiple consecutive sub-periods at a fixed time granularity (such as a natural week). The occurrence frequency of the target behavior chain in each sub-period is counted, and the occurrence frequency of multiple sub-periods corresponding to the multiple sub-periods is obtained.

[0135] Next, the discrete variance of the occurrence frequency of all periods is calculated, and the variance is compared with the preset frequency fluctuation threshold. If the variance is less than the threshold, it means that the occurrence frequency of the behavior is stable, and the average occurrence frequency of the entire monitoring period is used as the behavior pattern data of the behavior chain. If the variance is greater than or equal to the threshold, it means that the frequency fluctuates greatly and there is no stable pattern. The behavior chain is marked as having no stable behavior pattern. Finally, the determined behavior pattern data is integrated with the previously obtained time pattern data and spatial pattern data to form the stability dataset of the corresponding behavior chain.

[0136] For example, the total monitoring period for the target behavior chain "morning washing up" is 30 days. Based on the time data of 26 records, the entire period is divided into 4 natural week sub-cycles. The occurrence frequencies of the four sub-cycles are 6, 7, 7, and 6 times per week, respectively. The variance of the four frequencies is approximately 0.25, which is much smaller than the preset fluctuation threshold of 1. Therefore, the behavioral pattern data of this behavior chain is determined to be an average occurrence of 6.5 times per week. Finally, the stability dataset of "morning washing up" is integrated into: time pattern data (baseline 7:00, deviation ±60 minutes), spatial pattern data (fixed coordinate sequence of bedroom bed - bedroom door - bathroom door - washbasin), and behavioral pattern data (average 6.5 times per week).

[0137] Based on the above embodiments, stable temporal patterns are first extracted by normalized statistics combined with deviation ratio verification. Then, spatial patterns are extracted by adapting different statistical strategies to temporal stability. Finally, the frequency of occurrence is determined by periodic variance. This approach not only meets the pattern extraction needs of behavioral chains with different levels of stability and avoids forced fitting of behaviors without stable patterns, but also accurately extracts the user's real and stable behavioral habits. This allows the final stable dataset to comprehensively and accurately reflect the inherent patterns of users' daily behavior. Compared with single-dimensional pattern extraction, this significantly improves the accuracy of subsequent abnormal behavior judgment.

[0138] like Figure 9 As shown above, in the above Figure 2 Based on the illustrated embodiment, step 204 above may specifically include the following steps: Step 2041: Analyze the fluctuation of the behavior chain based on the stability dataset to determine the stability of the behavior chain.

[0139] In some embodiments, based on the regularity features of the stability dataset in three dimensions—time, space, and behavior frequency—the fluctuation scores of each dimension are calculated and weighted and summed, and the stability of the behavior chain is finally determined based on the total score.

[0140] For example, firstly, for dimensions with clear regular data, the average deviation between the actual occurrence value and the regular value is calculated. For dimensions without clear regular data, a fixed fluctuation score is directly marked. Then, the fluctuation scores of each dimension are weighted and summed according to preset weights to obtain the total fluctuation score. Finally, the total fluctuation score is compared with a preset stability level threshold. If the total fluctuation score is lower than the first threshold, it is judged as high stability; if it is between the first and second thresholds, it is judged as medium stability; and if it is higher than the second threshold, it is judged as low stability. This completes the determination of the stability of the behavior chain.

[0141] In some embodiments, the variance of a behavior chain can be calculated based on the behavior deviation in each behavior chain, using the following formula:

[0142] in, : Single action; Average behavior; : Variance of the behavioral chain.

[0143] For example, the stability dataset of the target behavior chain "morning washing up" is as follows: time pattern (baseline 7:00, deviation ±60 minutes), spatial pattern (fixed coordinate sequence, allowable deviation 0.5 meters), and frequency pattern (average 6.5 times per week). The calculated actual average time deviation is 18 minutes, the average spatial deviation is 0.2 meters, and the weekly frequency variance is 0.25. After being converted into standardized fluctuation scores, these are 0.18, 0.2, and 0.2, respectively. After weighted summation, the total fluctuation score is 0.194, which is lower than the first threshold of 0.3. Therefore, the behavior chain is judged to have a high degree of stability.

[0144] The behavioral chain “watching TV series in the living room” has no stable time pattern. The fluctuation score in the time dimension is recorded as 0.8, the average deviation in the spatial dimension is recorded as 0.3, the frequency variance is recorded as 0.6, and the weighted total fluctuation score is 0.59, which is between the first threshold of 0.3 and the second threshold of 0.7. Therefore, it is judged to be of medium stability.

[0145] The abnormal behavior chain "nighttime fall" occurred only once, and there was no stable pattern in any of the three dimensions. The total fluctuation score was 0.9, which is higher than the second threshold of 0.7, so it was judged to be of low stability.

[0146] Step 2042: If the stability of the behavior chain meets the preset range, obtain the behavior trend model based on the stability dataset.

[0147] In some embodiments, a stability threshold is first preset, and only behavioral chains with high and medium stability are included in the modeling scope. Then, the temporal, spatial, and behavioral patterns in the target behavioral chain stability dataset are used as feature parameters. A behavioral trend model of the behavioral chain is constructed by fitting the structure of "benchmark value and allowable fluctuation range". The model will output the probability range of the behavioral chain occurring in any future time window, as well as the expected occurrence time, spatial path, and frequency. After the modeling is completed, the consistency of the model is checked. Once it is confirmed that the deviation between the output result and the historical statistical data is within the allowable range, a usable behavioral trend model is obtained.

[0148] For example, the stability of the "morning washing" behavior chain is determined to be highly stable and meets the preset acceptable range. Three types of parameters are extracted from its stability dataset: time regularity parameters (baseline occurrence time 7:00, allowable deviation ±60 minutes), spatial regularity parameters (fixed path coordinate sequence, allowable deviation of 0.5 meters for a single action), and behavioral regularity parameters (occurring an average of 6.5 times per week, allowable weekly frequency fluctuation range ±1 time). The three types of parameters are fitted to construct a behavioral trend model of "morning washing". This model can output the expected number of times this behavior chain will occur in the next week as 6-7 times, with the expected occurrence time concentrated between 6:00-8:00, and the expected path as a fixed sequence from the bedroom to the bathroom. After verification, the output deviation meets the requirements, and finally a usable behavioral trend model of this behavior chain is obtained.

[0149] Based on the above embodiments, the process of first determining the stability of behavioral chains by multi-dimensional weighted fluctuations, and then modeling only behavioral chains that meet the preset stability requirements, ensures the comprehensiveness of the stability determination from a dimensional perspective. It combines time, space, and frequency to accurately quantify the stability of behavior. It also avoids interference from irregular data in the modeling process by filtering out low-stability behavioral chains, reducing the resource consumption of ineffective modeling. At the same time, the structure fitting model based on "benchmark value and allowable fluctuation range" not only retains the inherent regularity of user behavior, but also reserves reasonable space for normal fluctuations in user behavior, avoiding over-misjudgment of normal fluctuations. This allows the final behavioral trend model to better fit the user's real behavioral habits, and the output trend prediction results are both accurate and reasonable, providing a reliable basis for subsequent abnormal behavior detection. Overall, it improves the accuracy and operating efficiency of the user home behavior analysis system.

[0150] Figure 10 This is a schematic flowchart of a behavior deviation detection method provided in an exemplary embodiment of this disclosure. This embodiment can be applied to electronic devices and servers, such as... Figure 2 As shown, the method may include the following steps: Step S301: Obtain the user's behavior dataset.

[0151] In some embodiments, the data is collected in real time through a sensing module and a terminal device, and the collected raw data is preprocessed and then summarized and stored.

[0152] For example, by deploying various sensing terminals such as infrared sensors, human body sensing devices, spatial positioning devices, and smart home appliance linkage acquisition modules in the user's home environment, raw data such as timestamps, spatial location coordinates, and behavior type labels corresponding to all user actions and behaviors can be collected in real time. All the collected raw data is cleaned and aligned in a unified format, and invalid data generated by duplicate collection and device malfunctions is removed. The data is then uniformly stored in the user's exclusive behavior database on the server, and the complete behavior dataset of the user is obtained. Subsequently, the corresponding data can be directly called from the database to complete the analysis and processing.

[0153] Step S302: Based on the behavioral trend model, the behavioral dataset is identified as multiple behavioral chains.

[0154] In some embodiments, the segmentation is completed by reusing the three-layer association rules of the aforementioned behavior chain segmentation, while combining the regularity features of the behavior trend model for segmentation.

[0155] For example, the newly acquired user behavior dataset is first sorted in ascending order by timestamp. Temporal continuous sub-rules, behavioral logic sub-rules, and spatial continuous sub-rules are reused to perform preliminary segmentation to obtain candidate behavior chains. Then, the temporal and spatial characteristics of each candidate behavior chain are matched with the regularity benchmarks recorded in the behavior trend model. If the candidate behavior chain conforms to the fluctuation range of the existing regularity, it is directly classified as the behavior chain of the corresponding existing model. If it does not conform to the regularity range of any existing model, it is marked as a newly added independent behavior chain to be analyzed. Finally, the division of all behavior data is completed, and multiple behavior chains corresponding to the new behavior dataset are obtained.

[0156] Step S303: Calculate the degree of deviation for each behavior chain. If the degree of deviation is greater than a preset threshold, output a warning message.

[0157] In some embodiments, based on the regularity parameters of the behavioral trend model, the deviation values ​​of the behavioral chain in four dimensions—time, space, frequency, and the behavioral chain itself—are calculated respectively. By weighted summing of the deviation values ​​in the four dimensions, the total deviation degree of the behavioral chain is obtained, and then compared with a preset threshold to trigger an alert.

[0158] For example, firstly, extract the actual occurrence time, actual spatial path, actual occurrence frequency, and actual behavior sequence (i.e., the composition and order of actions) of the current behavior chain to be detected, and compare them with the regular benchmark in the corresponding behavior trend model. Calculate the proportion of the absolute deviation of the actual value of each dimension from the benchmark value to the allowable fluctuation range to obtain the single-dimensional deviation value. Then, according to preset weights (e.g., time accounts for 20%, space accounts for 20%, frequency accounts for 30%, and behavior sequence accounts for 30%), the deviation values ​​of the four dimensions are weighted and summed to obtain the total deviation degree of the behavior chain.

[0159] The formula for calculating the total deviation is:

[0160] in, DeviationScore: Overall degree of deviation; w1: Time deviation value; w2: Spatial deviation value; w3: Frequency deviation value; w4: Deviation value from the behavior chain; Dt: Time deviation weight value; Ds: Spatial deviation weight value; Df: Frequency deviation from weight value; Db: Deviation weight of the behavior chain.

[0161] If the total deviation exceeds the preset deviation warning threshold, a warning message will be directly output to the preset receiving terminal. If it does not exceed the threshold, it will be judged as normal fluctuation and no warning will be triggered.

[0162] For example, the current "morning washing and grooming" behavior chain to be detected has the following regularity benchmarks: the benchmark time of the behavior chain is 7:00 (allowing fluctuation ±60 minutes), the benchmark spatial path is "bedroom bed - bedroom door - bathroom" (allowing path deviation 0.5 meters), the benchmark frequency is 6.5 times per week (allowing fluctuation ±1 time), and the benchmark behavior sequence is ("get up", "walk to bathroom", "wash and groom").

[0163] Actual occurrence: The time of occurrence was 10:30, a deviation of 210 minutes from the baseline time of 7:00, with a time dimension deviation of (210 / 60) = 3.5; the actual location of occurrence was the living room washbasin, a deviation of 8 meters from the baseline space, with a spatial dimension deviation of (8 / 0.5) = 16; the actual number of occurrences this week was 0, a deviation of 6.5 times from the baseline of 6.5 times, with a frequency dimension deviation of (6.5 / 1) = 6.5; the actual behavioral sequence was ("get up", "walk to the living room", "sit down"). The behavioral chain deviation is the comparison between the actual sequence and the baseline sequence, where the action "wash up" was replaced by "sit down", and the location is completely wrong. Qualitatively, this dimension deviation is very high, assumed to be 5.0.

[0164] The weighted calculation yielded a total deviation of 3.5×0.2 + 16×0.2 + 6.5×0.3 + 5×0.3 = 7.35, which is much greater than the preset deviation threshold of 1.5. Therefore, an abnormal home behavior warning message was directly output to the mobile terminal of the user's guardian.

[0165] Based on the above embodiments, by collecting and integrating raw data and combining it with the constructed behavioral trend model, new behaviors can be quickly classified. Finally, the comprehensive deviation degree is obtained through multi-dimensional weighted calculation to trigger an alert. This not only ensures the integrity and accuracy of the raw behavioral data and provides a reliable data foundation for subsequent detection, but also improves the efficiency and accuracy of new behavior classification by leveraging existing behavioral patterns, avoiding the waste of resources caused by repeated classification.

[0166] Simultaneously, by calculating the weighted deviation across three dimensions—time, space, and frequency—the system can comprehensively quantify the degree to which behavior deviates from its original pattern, avoiding misjudgments that are prone to occur with single-dimensional detection. It can promptly issue warnings when the deviation reaches a risk level, reducing unnecessary false alarms and ensuring that genuine abnormal behavior can be detected in a timely manner. This provides accurate and reliable early warning capabilities for home safety monitoring of elderly people living alone and other special groups at home, effectively improving the practicality and accuracy of home safety monitoring systems.

[0167] Exemplary device Figure 11 This is a schematic diagram of a behavioral trend model building apparatus provided as an exemplary embodiment of the present disclosure. The apparatus can be installed in an electronic device such as a server to execute the behavioral trend model building method of any of the above embodiments of the present disclosure.

[0168] like Figure 11 As shown, the aforementioned device 400 may include: a behavior trend model construction device, comprising: a data processing module 401, used to perform association processing on behavior datasets of multiple users to obtain a standard behavior data subset corresponding to each user; a data classification module 402, used to divide the standard behavior data subset into multiple behavior chains based on preset behavior association rules, wherein the behavior chains are used to combine the behavior data in the standard behavior data subset to form a complete behavior process; and a model construction module 403, used to determine the stability dataset of the behavior chains based on the monitoring period; and to construct a behavior trend model based on the stability dataset.

[0169] In one possible implementation, the data processing module 401 is specifically used to: acquire feature information and behavior datasets of multiple users, wherein the behavior dataset includes movement trajectory data and action datasets associated with the movement trajectory data; determine the user's identity information based on the feature information; perform time alignment and semantic alignment on the movement trajectory data and action datasets to obtain a standard behavior dataset; and associate the identity information with the standard behavior dataset to obtain the standard behavior data subset corresponding to the user.

[0170] In one possible implementation, the data processing module 401 is specifically used to: classify the behavioral data from different acquisition terminals in the action dataset based on the same time axis to obtain multiple time-aligned datasets; and perform semantic unification on the behavioral data from different acquisition terminals in the time-aligned datasets to obtain a standard behavioral dataset.

[0171] In one possible implementation, the data classification module 402 is specifically used to: determine adjacent action behavior data as the same behavior chain based on the temporal continuous sub-rules and behavior logic sub-rules in the behavior association rules; associate the occurrence spaces of adjacent action behavior data as continuous paths of the same behavior chain based on the spatial continuous sub-rules in the behavior association rules; and divide the standard behavior data subset into multiple behavior chains based on the continuous paths of the same behavior chain.

[0172] In one possible implementation, the data classification module 402 is specifically used to: in response to the time continuity sub-rule, determine that the difference between the occurrence times of adjacent action behavior data is less than a preset threshold, and identify the adjacent action behavior data as the same behavior chain; in response to the behavior logic sub-rule, determine that adjacent action behavior data conforms to a preset logical relationship, and identify the adjacent action behavior data as the same behavior chain.

[0173] In one possible implementation, the data classification module 402 is specifically used to: classify multiple behavior chains based on preset behavior chain classification rules, and determine daily regular behavior chains, high-frequency behavior chains, and abnormal behavior chains.

[0174] In one possible implementation, the model building module 403 is specifically used to: acquire multiple time data, multiple continuous path data, and the occurrence frequency within the time data period of the behavior chain based on the monitoring period; determine the time pattern data of the behavior chain based on the multiple time data and a preset time deviation threshold; determine the spatial pattern data of the user corresponding to the behavior chain based on the time pattern data of the behavior chain and the multiple continuous path data; determine multiple occurrence frequencies of the behavior chain based on the multiple time data and the occurrence frequency within the time data period, and determine the behavior pattern data based on the multiple occurrence frequencies; wherein, the stability dataset includes time pattern data, spatial pattern data, and behavior pattern data.

[0175] In one possible implementation, the model building module 403 is specifically used to: analyze the fluctuation of the behavior chain based on the stability dataset to determine the stability of the behavior chain; and, if the stability of the behavior chain meets the preset range, obtain a behavior trend model based on the stability dataset.

[0176] The beneficial technical effects corresponding to the exemplary embodiments of this device can be found in the corresponding beneficial technical effects in the exemplary method section above, and will not be repeated here.

[0177] Exemplary electronic devices Figure 12 A structural diagram of an electronic device provided in this disclosure includes at least one processor 111 and a memory 112. The electronic device may be a vehicle, a server, or a device.

[0178] The processor 111 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 11 to perform desired functions.

[0179] The memory 112 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 111 may execute one or more computer program instructions to implement the content search methods and / or other desired functions of the various embodiments of this disclosure described above.

[0180] In one example, the electronic device 11 may also include an input device 113 and an output device 114, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).

[0181] The input device 113 may also include, for example, a keyboard, a mouse, etc.

[0182] The output device 114 can output various information to the outside, including, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0183] Of course, for the sake of simplicity, Figure 12 Only some of the components of the electronic device 11 relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device 11 may include any other suitable components depending on the specific application.

[0184] Exemplary computer program products and computer-readable storage media In addition to the methods and apparatus described above, embodiments of this disclosure may also provide a computer program product, including computer program instructions that, when executed by a processor, cause the processor to perform the steps of the content search methods of the various embodiments of this disclosure described in the "Exemplary Methods" section above.

[0185] Computer program products can be written in any combination of one or more programming languages ​​to perform the operations of embodiments of this disclosure. These programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0186] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the content search methods of the various embodiments of this disclosure described in the "Exemplary Methods" section above.

[0187] Computer-readable storage media may take the form of any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, but is not limited to, systems, apparatuses, or devices that are electrical, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0188] The basic principles of this disclosure have been described above with reference to specific embodiments. However, the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.

[0189] Various modifications and variations can be made to this disclosure without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.

Claims

1. A method for constructing a behavioral trend model, comprising: The behavior datasets of multiple users are correlated to obtain a standard behavior data subset corresponding to the user. Based on preset behavior association rules, the standard behavior data subset is divided into multiple behavior chains, and the behavior chains are used to combine the behavior data in the standard behavior data subset to form a complete behavior process. Based on the monitoring period, a stability dataset for the behavior chain is determined; Based on the stability dataset, a behavioral trend model is constructed.

2. The method according to claim 1, wherein, The step of associating multiple user behavior datasets to obtain a standard behavior data subset corresponding to each user includes: Obtain feature information and behavior datasets of the multiple users, wherein the behavior dataset includes movement trajectory data and action datasets associated with the movement trajectory data; Based on the aforementioned feature information, the user's identity information is determined; The movement trajectory data and the action dataset are time-aligned and semantically aligned to obtain a standard behavior dataset. The identity information is associated with the standard behavior dataset to obtain the standard behavior data subset corresponding to the user.

3. The method according to claim 2, wherein, The step of performing time and semantic alignment on the movement trajectory data and the action dataset to obtain a standard behavior dataset includes: Based on the same time axis, the behavioral data from different acquisition terminals in the action dataset are classified to obtain multiple time-aligned datasets; Semantic unification is performed on the behavioral data from different acquisition terminals in the time-aligned dataset to obtain the standard behavioral dataset.

4. The method according to claim 3, wherein, The preset behavior association rules divide the standard behavior data subset into multiple behavior chains, including: Based on the time-continuous sub-rules and the behavior logic sub-rules in the behavior association rules, adjacent action behavior data are identified as the same behavior chain; Based on the spatial continuity sub-rules in the behavior association rules, the occurrence spaces of adjacent action behavior data are associated to determine them as continuous paths of the same behavior chain; Based on continuous paths within the same behavior chain, the standard behavior data subset is divided into the multiple behavior chains.

5. The method according to claim 4, wherein, The step of determining adjacent action behavior data as the same behavior chain based on the time-continuous sub-rules and behavior logic sub-rules in the behavior association rules includes: In response to the time continuity sub-rule, if the difference between the occurrence times of adjacent action behavior data is less than a preset threshold, the adjacent action behavior data are identified as the same behavior chain. In response to the behavior logic sub-rule, it is determined that adjacent action behavior data conforms to a preset logical relationship, and the adjacent action behavior data are identified as the same behavior chain.

6. The method according to claim 4, further comprising, after dividing the standard behavior data subset into multiple behavior chains based on continuous paths of the same behavior chain, the method includes: Based on preset behavior chain classification rules, the multiple behavior chains are classified to determine daily routine behavior chains, high-frequency behavior chains, and abnormal behavior chains.

7. The method according to claim 1, wherein, The stability dataset for determining the behavior chain based on the monitoring period includes: Based on the monitoring period, multiple time data, multiple continuous path data, and the occurrence frequency within the time data period of the behavior chain are obtained; Based on the multiple time data and the preset time deviation threshold, the time pattern data of the behavior chain is determined; Based on the temporal pattern data of the behavior chain and the multiple continuous path data, determine the spatial pattern data of the user corresponding to the behavior chain; Based on the multiple time data and the occurrence frequency within the time data period, multiple occurrence frequencies of the behavior chain are determined, and based on the multiple occurrence frequencies, behavior pattern data is determined; wherein, the stability dataset includes time pattern data, spatial pattern data, and behavior pattern data.

8. The method according to claim 1, wherein, Based on the stability dataset, a behavioral trend model is constructed, including: The stability of the behavioral chain is determined by analyzing the fluctuations of the behavioral chain based on the stability dataset. If the stability of the behavior chain meets a preset range, the behavior trend model is obtained based on the stability dataset.

9. A method for detecting behavioral deviations, comprising: Obtain user behavior datasets; Based on the behavioral trend model, the behavioral dataset is identified as multiple behavioral chains; Calculate the degree of deviation for each behavioral chain, and output a warning message if the degree of deviation exceeds a preset threshold.

10. A behavioral trend model building device, comprising: The data processing module is used to perform correlation processing on the behavior datasets of multiple users to obtain a standard behavior data subset corresponding to the user; The data classification module is used to divide the standard behavior data subset into multiple behavior chains based on preset behavior association rules. The behavior chains are used to combine the behavior data in the standard behavior data subset to form a complete behavior process. The model building module is used to determine the stability dataset of the behavior chain based on the monitoring period; Based on the stability dataset, a behavioral trend model is constructed.

11. A computer-readable storage medium storing a computer program for performing the model building method according to any one of claims 1-8.

12. An electronic device, the electronic device comprising: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the model building method according to any one of claims 1-8.