A smart elderly care service management platform
By designing a smart elderly care service management platform, analyzing the basic information and behavioral data of the elderly, and calculating physical condition, behavioral differences and mood state index, it solves the problem of difficulty in personalized management of the existing system and achieves more accurate health assessment and intelligence. Specialized elderly care services have improved the quality of life of the elderly.
Patent Information
- Application Number
- CN202410902656.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The existing smart elderly care service management system is difficult to provide personalized elderly care management based on the behaviors and habits of different elderly people, and the data acquisition is inaccurate, ignoring the individual differences and changes of the elderly.
A smart elderly care service management platform is designed, including a body detection module, a first information processing module, a second information processing module and a third information processing module. By analyzing the basic information of the elderly, user behavior information and environmental information, the body is calculated. The condition index, behavioral difference index and mood state index comprehensively assess the happiness index of the elderly and provide personalized health management and early warning.
It improves the accuracy and comprehensiveness of the health status assessment of the elderly, enables timely warning and management based on the analysis results, improves the intelligence and personalized level of elderly care services, meets the specific needs of each elderly person, and improves the quality of life. and happiness.
Smart Images

Figure CN118446858B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart elderly care management, and in particular to a smart elderly care service management platform. Background Art
[0002] Smart elderly care service is a sensor system and information platform for elderly people at home, in communities and elderly care institutions, and on this basis provides real-time, fast, efficient, low-cost, object-connected, interconnected and intelligent elderly care services.
[0003] With the progress of society and the development of science and technology, elderly care services have provided the elderly with certain material needs to a certain extent. According to the actual health status and psychological state of the elderly, the lives of the elderly are tested to prevent possible critical events.
[0004] For example, Chinese patent publication number CN116342344A discloses a smart elderly care service management system based on the Internet of Things, which belongs to the field of smart elderly care management and solves the problem of how to monitor the current happiness of the elderly and provide timely help without disclosing their personal privacy; the health analysis module can judge the physical condition of the elderly, supervise the physical examination of the elderly, and discover health problems in time; the environment analysis module can judge whether the elderly are satisfied with the current living environment, and if abnormal environmental information occurs, it can be quickly processed; the heart rate analysis module can judge the mood of the elderly, and timely relieve the elderly who are in a bad mood; when an abnormality occurs, it can promptly alarm and help the elderly out of life danger in time.
[0005] However, when monitoring the health status of the elderly themselves, each elderly person's own living habits and preferences are ignored, resulting in the inability to adapt to the individual differences and changing needs of all elderly people; at the same time, when obtaining relevant data, there is a problem of inaccurate monitoring data. Summary of the invention
[0006] The purpose of this invention is to provide a smart elderly care service management platform to solve the following technical problems:
[0007] How to provide a system that can provide elderly care management based on the behaviors and habits of different elderly people and provide personalized needs and treatments for different elderly people.
[0008] The purpose of the present invention can be achieved through the following technical solutions:
[0009] A smart elderly care service management platform, comprising:
[0010] The body detection module is used to obtain basic information and user behavior information during the detection of the elderly;
[0011] The first information processing module is used to analyze the physical condition of the elderly based on the collected basic information and determine the physical condition index under different user behaviors;
[0012] The second information processing module is used to perform secondary recognition of the health status of the target elderly according to the obtained physical condition results and user behavior information, determine the difference results of user behavior in different environments, and output the behavior difference index;
[0013] The third information processing module is used to analyze the user behavior information, determine the judgment result of the target elderly person corresponding to the user behavior information when abnormal behavior occurs, and output the mood state index;
[0014] The comprehensive processing module is used to analyze the happiness index of the target elderly based on the output results of the first information processing module, the second information processing module, and the third information processing module, and determine the differentiated comprehensive results caused by different behavioral habits.
[0015] Beneficial effects of the present invention:
[0016] The smart elderly care service management platform analyzes the physical state of the elderly through the first information processing module and determines the physical condition index under different user behaviors. The second information processing module performs secondary identification on the health state of the elderly, determines the difference results of user behaviors, and outputs the behavior difference index. The third information processing module analyzes the user behavior information, determines abnormal behaviors, and outputs the mood state index. The health state of the elderly is comprehensively analyzed from multiple angles, which improves the accuracy and comprehensiveness of the evaluation; timely warning and management can be carried out according to the analysis results, which improves the intelligence and personalization level of elderly care services. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present invention will be further described below in conjunction with the accompanying drawings.
[0018] Figure 1 It is a schematic diagram of a module of the present invention;
[0019] Figure 2 is a flow chart of the first information processing module of the present invention;
[0020] Figure 3 is a flow chart of step A3 of the first information processing module of the present invention;
[0021] Figure 4 is a flow chart of the second information processing module of the present invention;
[0022] Figure 5 is a schematic diagram of the flow of the third information processing module of the present invention;
[0023] Figure 6FIG. 4 is a flow chart of another embodiment of the third information processing module of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] Under normal circumstances, the sources of happiness for the elderly are diverse and involve many aspects, including physical health, family relationships, social activities, self-worth realization, etc.
[0026] For example, the elderly have normal body index, no disease troubles, and can carry out daily activities normally; the elderly have good social relationships, can maintain good relationships with their families and enjoy family happiness; the elderly maintain social activities, communicate with friends, and participate in community activities to enhance their sense of social belonging and reduce loneliness; even in old age, many people still hope to make a difference and realize their self-worth through volunteer services, hobbies, learning new skills, etc.; have faith or spiritual sustenance; live in a safe, comfortable and convenient environment, etc.; such elderly people have a relatively satisfied sense of happiness and corresponding sense of belonging.
[0027] However, when elderly people need intervention in order to provide elderly care services, it is necessary not only to consider these basic contents, but also to consider the preferences of each elderly person so as to make adjustments and ultimately find a point of coexistence between care management and the elderly’s own individuality, and ultimately solve some individual problems that exist in the care of the elderly and prevent emergencies.
[0028] See also Figure 1 As shown, the present invention is a smart elderly care service management platform, including: a physical detection module, which is used to obtain basic information and user behavior information of the elderly during detection, and the basic information includes basic physical information and case information of the elderly;
[0029] The first information processing module is used to analyze the physical condition of the elderly based on the collected basic information and determine the physical condition index under different user behaviors;
[0030] The second information processing module is used to perform secondary recognition of the health status of the target elderly according to the obtained physical condition results and user behavior information, determine the difference results of user behavior in different environments, and output the behavior difference index;
[0031] The third information processing module is used to analyze the user behavior information, determine the judgment result of the target elderly person corresponding to the user behavior information when abnormal behavior occurs, and output the mood state index;
[0032] The comprehensive processing module is used to analyze the happiness index of the target elderly based on the output results of the first information processing module, the second information processing module, and the third information processing module, and determine the differentiated comprehensive results caused by different behavioral habits.
[0033] The physical information is the information of the elderly during the physical examination, such as name, age, occupation, blood pressure, heart rate, weight, etc.
[0034] The case information includes the elderly person's disease information, corresponding examination results, and corresponding disease treatment status.
[0035] User behavior information is expressed in the form of social preferences, living habits preferences, leisure preferences, environmental preferences, cultural preferences, etc., to show the differences in the living habits of the elderly.
[0036] Social preferences mean that older people may have different social needs and preferences. Some may like to participate in community activities, social groups or volunteer activities to communicate and share with others, while others may prefer a small, close social circle.
[0037] Lifestyle preferences are manifested in preferred food, exercise, and preferences related to medicines and health products.
[0038] Leisure preferences are reflected in the interests and hobbies of the elderly in outdoor sports and leisure.
[0039] Environmental preference refers to the preference of the elderly for living facilities, living environment and lifestyle in their living environment.
[0040] Cultural preferences are manifested in preferences for art and spiritual needs.
[0041] The above-mentioned preference information can be obtained through questionnaire surveys and statistics to understand the hobbies preferred by the elderly in the current area. It can also be determined through devices such as smart bracelets. The data information generated by the elderly in different scenarios can be adjusted accordingly based on the different performances of each elderly person.
[0042] In one embodiment of the present invention, the environmental information of the living environment of the elderly is obtained by setting up air quality detection instruments, humidity detection sensors, temperature detection sensors, and air flow rate detection sensors, and regular detection is performed according to a fixed period, and the safe range values of the environmental information in different seasons and weather are obtained.
[0043] In one embodiment of the present invention, Figure 2As shown, the implementation of the first information processing module includes:
[0044] Step A1, obtain the basic information of the target elderly and determine the update frequency of the basic information; if the update frequency is less than a preset threshold, check the target elderly to obtain the latest basic information.
[0045] In this step, when checking the health of the elderly in the current platform, if the target elderly has not updated the information for a long time, it means that the target elderly has not undergone a physical examination in time, and it is impossible to know the latest health status. In addition, it is difficult to carry out personalized treatment and supervision of the body of the new target elderly in the absence of corresponding data.
[0046] Step A2, judging the physical condition of the target elderly person and determining the physical condition index of the target elderly person.
[0047] Obtain various indexes of the target elderly during physical examination, determine the difference between each index and the normal range, and according to the score obtained in each examination, sum the residuals of all examinations as the physical condition index of the target elderly.
[0048] In order to determine the way to manage the target elderly with preference information, the implementation method of the current first processing module also includes obtaining the user behavior information of the elderly:
[0049] Step A3, obtaining user behavior information of the target elderly, classifying the user behavior information according to the corresponding physical condition index, and marking different user behavior information.
[0050] In this step, we mainly identify changes in the elderly's living habits, such as diet and exercise, based on their different living habits, to conduct more accurate health analysis, predict potential health risks based on the user's historical health data and habit changes, and give personalized health advice.
[0051] Specifically, Figure 3 As shown, the implementation method of obtaining the body condition index for classification in step A3 includes:
[0052] Step A31, obtaining the living habit data of the target elderly, determining the amount of change in the living habit data within a preset period, and determining basic information corresponding to the amount of change within the preset period;
[0053] Step A32, constructing a decision tree for classification based on the living habit data and basic information, and determining the classification model corresponding to different time periods;
[0054] Step A33, using the division nodes of the established classification model as output physical condition index.
[0055] The way to process the living habit data is to clean and standardize the data in the physical examination report to ensure the accuracy and consistency of the data. The daily behavior habit data is converted into quantifiable indicators, such as daily steps, exercise duration, food calories, etc., to calculate the changes in the corresponding data within a week or a month, and based on the calculated changes, the corresponding status of some basic information can be determined, such as whether the elderly's mobility has declined and whether their eating habits are stable; based on this part of the data, the current physical examination results and the elderly's physical health can be verified more accurately.
[0056] The established classification model is classified based on the change in living habit data within a preset period, and the classification model constructed by the decision tree is divided into different categories, such as "stable health status" and "decreased activity ability", to determine the data corresponding to this part of the basic information.
[0057] After identifying the corresponding behavioral information of the elderly under different users, this part is identified after the impact of different habits on physical condition results, and further obtains the relationship between different behaviors and corresponding environments after classification to identify the differences in behaviors in different environments.
[0058] Determine the amount of change in the target elderly's travel frequency, heart rate, blood pressure, and breathing when they change from the preset range, and build a decision tree based on this part of the data. The decision tree takes the elderly's normal habit data as the starting point, and the data with the amount of change as the node, and connects the nodes in turn according to the size of the corresponding data volume. When each node is connected, the part with the largest change value is used as the secondary node of the starting point. When each node is connected, it is connected based on the correlation of the data in each node, and the correlation of each connected node is at least greater than 0.6. The threshold of this correlation is adjusted according to the form of the current decision tree after segmentation. If there is a difference in the number of nodes divided on both sides of the decision tree, based on the calculated correlation mean, the correlation mean is used as the threshold set when each node is currently connected; all nodes are judged in turn until all nodes are connected. The connected nodes are the output results of the classification model corresponding to the current time, and the values of the main nodes that divide the decision tree in each classification model are used as the output physical condition index.
[0059] The correlation of each node is calculated by calculating the value of the corresponding data in each node. The calculated correlation is based on the Pearson correlation coefficient of the values in the two nodes. At this time, the Pearson correlation coefficient is gradually determined by the Pearson correlation coefficient of every two values in the node, and the Pearson correlation coefficient of all values is weighted and summed to obtain the Pearson correlation coefficient of the corresponding node.
[0060] For example: for each pair of values in the nodes (for example, the number of daily steps for node A and the number of daily steps for node B), calculate the Pearson correlation coefficient between them; repeat the above steps to calculate the Pearson correlation coefficients between all possible pairs of values; assign different weights to each pair of values based on their importance or relevance; and take the weighted sum of the Pearson correlation coefficients of all pairs of values to obtain the overall Pearson correlation coefficient between the two nodes:
[0061]
[0062] in, and are the observed values of the corresponding values in the two nodes, and are the means of the values in the two nodes, is the weight of each value pair, is the number of value pairs.
[0063] The pseudo code for this step is as follows:
[0064] Define data set D: Contains data such as the number of trips, heart rate, blood pressure, and breathing of the elderly;
[0065] Define the preset range PR: the normal range of each indicator;
[0066] Define the change list ΔL: store the change of each indicator; define the decision tree T;
[0067] Define the correlation threshold THRESHOLD=0.6.
[0068] Function calculation change (data set D, preset range PR):
[0069] For each data point dp in D:
[0070] For each index i in dp:
[0071] Calculate Δi=|dp[i]-PR[i]|;
[0072] Add Δi to ΔL;
[0073] Returns ΔL.
[0074] Function to build a decision tree (list of changes ΔL):
[0075] Create the root node root, starting with normal habit data;
[0076] For each change Δi in ΔL:
[0077] Find the data point dp_max with the largest change and correlation with root > THRESHOLD;
[0078] Create a new node node with dp_max as data;
[0079] Connect node to root or corresponding parent node;
[0080] Update THRESHOLD (optional, adjusted according to the form after decision tree segmentation);
[0081] Set root to node and continue looking for the next node;
[0082] Returns T.
[0083] Function output body condition index (decision tree T):
[0084] Find the major nodes in T (i.e., the nodes with the largest amount of change);
[0085] Output the physical condition index corresponding to these nodes.
[0086] In one embodiment of the present invention, Figure 4 As shown, the method for obtaining the difference results of user behaviors in the second information processing module is:
[0087] Step B1, obtaining data including various environmental information and physical condition indexes as an environmental data set, and obtaining the user behavior frequency and duration of the target elderly in the corresponding environment;
[0088] Step B2, obtaining the behavior difference index related to the environment according to the user behavior frequency and duration of the target elderly in the corresponding environment.
[0089] The environmental information refers to the indoor environment information, ventilation, air composition, temperature, humidity, and environmental parameters affected by the regional habits corresponding to the place of residence where the elderly live. This part of the affected environmental parameters mainly includes the range of changes in air quality index, humidity, and temperature.
[0090] Assuming that the behavior of the elderly is different, it is affected by multiple variables. The behavior difference index can be expressed as the following function form:
[0091]
[0092] in, represents the behavioral difference index among the elderly. Represents environment variables, Represents the physical condition index of the elderly. Represents user behavior information, Represents time.
[0093] Environmental variables include the physical environment (temperature, humidity, etc.), natural environment (weather, season, etc.) and geographic location; the elderly’s physical condition index may include physiological indicators such as heart rate, blood pressure, blood sugar, etc.; user behavior information, such as activity level, diet, sleep, etc.; time, which can be date, time period or season, etc.
[0094] Variables that can influence behavior in an environment:
[0095] Environmental variables can be: indoor environment, temperature, humidity, air quality, etc.;
[0096] Natural environment, weather conditions (sunny, rainy, snowy, etc.), seasons (spring, summer, autumn, winter), temperature, wind speed, etc.; geographical location: longitude and latitude, altitude, city or country, etc.
[0097] The physical condition index can be: physiological indicators, heart rate, blood pressure, blood sugar, blood lipids, etc.; chronic disease status, whether there is heart disease, respiratory disease, etc.
[0098] User behavior information may include: activity level, number of steps, exercise time, exercise intensity, etc.; eating habits, intake, dietary structure, dietary patterns, etc.; sleep patterns: sleep time, sleep quality, sleep cycles, etc.
[0099] Time variables can be: time periods in a day, morning, noon, evening, etc.; seasons, spring, summer, autumn, and winter; special dates: holidays, birthdays, etc.
[0100] Through the function Calculated behavioral differences It is a quantitative indicator that indicates the degree of change in the behavior of the elderly in different environments. This difference can be a numerical value or a vector containing behavioral changes in multiple dimensions. For example, It may include increases or decreases in activity, changes in the frequency of going out, adjustments in diet, etc.
[0101] The specific calculation results depend on the data and analysis methods used. In machine learning models, It may be the output of the model prediction, indicating the degree and direction of the elderly's behavioral changes, and obtaining a series of vectors representing behavioral characteristics, which are further used to analyze and explain the changes in the elderly's behavior.
[0102] For example, if it represents the change in activity, a positive value may mean that the elderly have increased their activity in a certain environment, while a negative value means that their activity has decreased. Such calculation results can help us understand how the environment affects the daily behavior of the elderly and provide a basis for health management and intervention.
[0103] After analyzing the user behavior information according to the environment, in order to confirm the further association between the current user behavior information and the target elderly, the user behavior information is trained to obtain analysis results based on the user information to determine the association between the corresponding user's psychological state and behavior at this time.
[0104] The corresponding behavior difference index is expressed as a numerical value formed by combining environmental variables, physical condition index, user behavior information, and time, which is used to represent the difference between user behaviors in different situations.
[0105] For example, when the behavior of an elderly person changes, the changes in the user behavior information and physical condition in the behavior difference index are changes in the behavior difference index. When the environment changes, the corresponding environmental variables will be marked. That is, the behavior difference index is used to record the change values corresponding to the environmental variables, physical condition index, user behavior information, and time when the behavior difference occurs, to assist in determining the behavior changes of the elderly.
[0106] The corresponding pseudo code is as follows:
[0107] Define the behavior difference index calculation function calculate_behavior_difference_index (data set D, decision tree T):
[0108] Define the behavior difference index list BDI_list;
[0109] For each data point dp in D:
[0110] Define environment variable change env_change;
[0111] define health_index_change;
[0112] Define user behavior information change behavior_info_change;
[0113] Define time change time_change.
[0114] #Assume that the data point dp contains the following fields: environment variable env, health condition index health_index, user behavior information behavior_info, time time;
[0115] #And there is a function get_node_value(T,dp) to find the node related to dp from the decision tree T and get its value.
[0116] #Calculate changes in environment variables;
[0117] If dp.env is not equal to the environment variable of the previous data point:
[0118] env_change = calculate_change(dp.env,environment variable of the previous data point);
[0119] otherwise:
[0120] env_change=0.
[0121] #Calculate the change of body condition index;
[0122] If dp.health_index is not equal to the health index of the previous data point:
[0123] health_index_change = calculate_change(dp.health_index, the health index of the previous data point);
[0124] otherwise:
[0125] health_index_change=0.
[0126] #Calculate the changes in user behavior information;
[0127] If dp.behavior_info is not equal to the user behavior information of the previous data point:
[0128] behavior_info_change = calculate_change(dp.behavior_info, user behavior information of the previous data point);
[0129] otherwise:
[0130] behavior_info_change=0.
[0131] #Calculate time changes (the calculation method of time changes can be defined here according to specific needs);
[0132] time_change = calculate_time_difference(dp.time, time of the previous data point).
[0133] #Calculate the behavior difference index;
[0134] BDI=f(env_change,health_index_change,behavior_info_change,time_change);
[0135] Where f is a custom function used to combine four variables into one value.
[0136] #Add the calculated behavior difference index to the list;
[0137] BDI_list.append(BDI).
[0138] #Return a list of behavior difference indices;
[0139] Returns BDI_list.
[0140] #Auxiliary function: calculate the change;
[0141] Define calculation_change(current value, previous value):
[0142] Return abs(current value - previous value);
[0143] #Auxiliary function: calculate the time difference (the specific implementation depends on the time format and requirements);
[0144] Define calculation_time difference (current time, previous time):
[0145] Returns (current time - previous time).total_seconds()
[0146] In this pseudocode, the calculate_behavior_difference_index function accepts a dataset D and a decision tree T as input, and outputs a behavior difference index list BDI_list. The function traverses each data point in the dataset D, calculates the changes in environmental variables, physical condition index, user behavior information, and time, and combines these changes into a behavior difference index. Finally, all calculated behavior difference indices are added to the list and returned.
[0147] Define custom function f (environmental variable change env_change, health index change health_index_change, user behavior information change behavior_info_change, time change time_change):
[0148] #Define weights, which can be adjusted according to actual conditions;
[0149] Define environment weight ENV_WEIGHT=0.25;
[0150] Define body weight HEALTH_WEIGHT=0.3;
[0151] Define behavior weight BEHAVIOR_WEIGHT=0.3;
[0152] Define the time weight TIME_WEIGHT=0.15.
[0153] #Calculate weighted change;
[0154] define weighted environment change = env_change * ENV_WEIGHT;
[0155] define weighted health condition change = health_index_change*HEALTH_WEIGHT;
[0156] define weighted behavior change = behavior_info_change * BEHAVIOR_WEIGHT;
[0157] Define weighted time change = time_change*TIME_WEIGHT.
[0158] #Calculate the behavior difference index;
[0159] Define Behavior Difference Index BDI = weighted environmental change + weighted physical condition change + weighted behavior change + weighted time change;
[0160] #Returns the behavior difference index;
[0161] Returns BDI.
[0162] In this custom function f, four weights are first defined, corresponding to the weights of environmental variable changes, physical condition index changes, user behavior information changes, and time changes. These weights can be adjusted according to actual conditions to reflect the importance of different changes in the behavior difference index.
[0163] Then, the weighted values of each change are calculated and added together to get the Behavior Difference Index (BDI). Finally, the function returns the calculated Behavior Difference Index.
[0164] Specifically, Figure 5 As shown, the implementation of the third information processing module includes:
[0165] Step C1, based on the acquired user behavior information, performing sentiment analysis on the user behavior information to determine the sentiment trend corresponding to the user behavior information;
[0166] Step C2, based on the emotional trend corresponding to the user behavior information, determine the trend change amount corresponding to the target elderly in different time periods, record the corresponding timestamp and occurrence frequency, so as to obtain the emotional impact degree of the target elderly;
[0167] Step C3, classifying the user behavior based on the acquired emotional impact degree, and determining the emotional classification of the user behavior information corresponding to the target elderly.
[0168] Step C4, calculating the user behavior information after emotion classification to determine the mood state index of the user behavior information.
[0169] For the emotional trend of the target elderly, the emotional score of the target elderly under the corresponding conditions is obtained through the Bayesian model to derive the emotions displayed by the target elderly in different behavior patterns, and the time and amount of change in the emotional trend are recorded to determine the corresponding emotions of the target elderly at different times, and the corresponding category of the target elderly is set according to the change in the emotional score in different periods.
[0170] The above-mentioned mood state index obtains the emotional impact degree of user behavior information and calculates the classified user behavior information to calculate the mood state index corresponding to each category.
[0171] At this time, the emotions of the elderly in different behavior modes are obtained by identifying the elderly's faces in the corresponding scenes, determining the elderly's emotions based on face comparison, and using the Bayesian model to verify the probability of the elderly showing corresponding emotions for the similarity of the current face comparison. For example, the elderly's current expression and heartbeat values show that the elderly are likely to be happy. At this time, the corresponding happiness value is generated based on the elderly's happiness ratio, and this emotion is scored according to the set emotion scale to determine the elderly's emotions. At the same time, the elderly's physiological data when emotions appear is read. Physiological data is basic body data that can be directly measured, such as heartbeat, blood pressure, etc., which are related to behavior.
[0172] The specific pseudo code is as follows:
[0173] Define the function get_emotion_score (elderly data data, emotion scale scale) to get the elderly's emotion score:
[0174] Define the emotion score dictionary emotion_scores;
[0175] For each behavior pattern behavior in data:
[0176] Define the emotion probability dictionary emotion_probs under the current behavior mode.
[0177] #Suppose there is a function face_recognition to recognize the face of an old man and return the emotion label;
[0178] emotion_label = face_recognition(data[behavior]['face image']);
[0179] #Suppose there is another function get_physiological_data to obtain the physiological data of the elderly;
[0180] physiological_data = get_physiological_data(data[behavior]).
[0181] #Use the Bayesian model to calculate the probability of the current emotion;
[0182] For each emotion in scale:
[0183] Define prior probability prior = scale[emotion]['prior probability'];
[0184] Define likelihood.
[0185] #Calculate the likelihood. Here, the calculation method needs to be defined based on the actual data;
[0186] If emotion tag == emotion:
[0187] likelihood = calculate_likelihood(physiological data, scale[emotion]['physiological data range']);
[0188] otherwise:
[0189] likelihood=scale[emotion]['Other emotion likelihood'].
[0190] #Calculate the posterior probability;
[0191] Posterior probability = (prior*likelihood) / (sum of prior probability*likelihood);
[0192] emotion_probs[emotion] = posterior probability.
[0193] #Set the sentiment score based on the emotion with the highest posterior probability;
[0194] highest_probability_emotion = get_highest_probability_emotion(emotion_probs);
[0195] emotion_scores[behavior]=scale[highest probability emotion]['emotion score'];
[0196] Returns emotion_scores.
[0197] #Auxiliary function: calculate likelihood;
[0198] define calculate_likelihood(physiological data, physiological data range):
[0199] #Here we need to define the calculation method based on the actual data and distribution;
[0200] #For example, Gaussian distribution can be used to calculate the probability of physiological data being within a given range;
[0201] Returns the calculated likelihood.
[0202] #Auxiliary function: Get the highest probability emotion
[0203] Define get_highest probability emotion (emotion_probs):
[0204] Returns the emotion label with the highest probability in emotion_probs.
[0205] In this pseudocode, the get_emotion_score function accepts the elderly's data and the emotion scale as input, and returns a dictionary containing the emotion scores under different behavior patterns. The function uses face recognition technology to obtain the elderly's emotion label, and uses a Bayesian model combined with physiological data to calculate the probability of the current emotion. Finally, the emotion score is set according to the emotion with the highest posterior probability.
[0206] The likelihood obtained at this time can be determined by a one-dimensional Gaussian distribution, and its probability is expressed as:
[0207]
[0208] in, is the probability of physiological data, is a physiological data point, is the mean of the physiological data, is the standard deviation.
[0209] According to the probability of the obtained physiological data, the emotion corresponding to the maximum corresponding data is used as the emotion label of the current test.
[0210] When obtaining the degree of emotional impact, it is necessary to assign emotions to different user behavior information and set an emotional value for each behavior; for example, positive behaviors are assigned positive numbers, negative behaviors are assigned negative numbers, and neutral behaviors are assigned zero; within a specific time period, various behaviors of the target elderly and their corresponding emotional values are recorded. The trend change can be obtained by calculating the sum of the emotional values of all behaviors within the time period. Each time a behavior is recorded, the timestamp of the behavior is also recorded. The frequency of occurrence can be calculated by counting the number of times a specific behavior occurs within a period of time; the degree of emotional impact can be evaluated by comprehensively considering the trend change, timestamp and frequency of occurrence.
[0211] The specific expression formula of trend change is:
[0212]
[0213] in, is the trend change amount, For the User behavior, is the sentiment value corresponding to the user behavior, is the frequency of the corresponding user behavior. The amount of user behavior information;
[0214] Then after obtaining the trend change, the degree of emotional impact is expressed as:
[0215]
[0216] in, For the degree of emotional impact, It is the ratio of the maximum trend change to the minimum trend change. is the trend change amount, For the preset time length, The amount of user behavior information.
[0217] After obtaining the degree of emotional impact, the mood state index is obtained as follows:
[0218]
[0219] in, is the mood state index, is the variance of the emotional impact under the current emotional classification, is the average value of the emotional impact under the current emotional classification, It is the preset standard value of the degree of emotional impact under the current emotional classification.
[0220] In one embodiment of the present invention, in order to improve the analysis of the user behavior of the target elderly in more detail, so that the obtained data can accurately reflect the behavior pattern of the target elderly, so as to find the service suitable for the current target elderly when managing the elderly care service for the target elderly; when the user behavior information of the target elderly is classified and processed according to the degree of emotional influence in the third information processing module, such as Figure 6 As shown, the following methods are also included:
[0221] Step D1, when analyzing the user behavior information of the target elderly, obtain the behavior type, behavior occurrence time and user identity corresponding to the user behavior information, determine the multiple behavior random sets and single behavior cycle sets corresponding to the user behavior, each multiple behavior random set includes multiple interrelated user behavior information, and the single behavior cycle set represents the cycle in which each user behavior information occurs, and records the set of the same behavior that occurs in a continuous cycle to determine the user's behavioral tendencies in different forms;
[0222] Step D2, establishing a behavior analysis model based on multiple random behavior sets and single behavior periodic sets, and analyzing user behaviors, the analysis includes a first behavior analysis model and a second behavior analysis model, the first behavior analysis model is used to determine behaviors that occur together in a continuous period between multiple random behavior sets and single behavior periodic sets, and the second analysis model is used to determine user behaviors that occur in a non-period between multiple random behavior sets and single behavior periodic sets;
[0223] Step D3, determining the initial user behavior within the preset period time period, and determining whether each user behavior after the initial user behavior satisfies the first preset rule, the first preset rule being whether the continuous relationship of user behaviors after the initial user behavior satisfies the preset condition; the preset condition of the first preset rule is that both the initial user behavior and the user behavior after the initial user behavior exceed the preset threshold; at this time, the preset condition is whether the corresponding user behavior satisfies the preset general regular behavior after the behavior analysis of the current user, so as to identify irregular behaviors;
[0224] Step D4, determining abnormal user behavior information of the user within multiple periodic time periods, analyzing the abnormal user behavior information, determining the occurrence time and associated behavior of the abnormal user behavior information, and determining whether the occurrence time and associated behavior of the abnormal user behavior information meet the second preset rule, the second preset rule indicates that after the abnormal behavior is processed with certain measures, the abnormal user behavior still exists, which is used to compensate the user behavior to determine the performance and corresponding status of the user behavior in the overall implementation process;
[0225] After identifying the corresponding behavior, the behavior is centrally associated and processed to obtain the execution strategy of the user within the expected time, and when the user behavior exceeds the overdue time, the user behavior is analyzed to determine the occurrence pattern of the second preset rule;
[0226] Step D5, merging the user behavior information satisfying the first preset rule and the second preset rule and outputting the result.
[0227] In this processing step, the behavior type corresponding to the user behavior, the time when the behavior occurred, and the user identity are first obtained, and the corresponding user behavior is analyzed. The corresponding abnormal user behavior within the preset period time period is obtained from the behaviors that occur together in a continuous period of multiple random behavior sets and a single behavior period set, and the user behaviors that occur in a non-periodic period of multiple random behavior sets and a single behavior period set. These user behaviors that appear beyond the regular range and those that remain abnormal after measures are taken are marked to determine the deficiencies in the current processing method, and this part of the identified data is output to determine the deficiencies in the user's behavior pattern in the service management process and the differences between the corresponding elderly people. The user behavior that finally outputs the first preset rule and the second preset rule is used as the key point for dividing the sentiment classification to obtain the sentiment classification results that can reflect different behavior patterns.
[0228] In one embodiment of the present invention, after obtaining the processing results of the first information processing module, the second information processing module, and the third information processing module, the corresponding user behavior information is combined to determine the physical condition index, behavior difference index, and mood state index corresponding to the user behavior information, and the final processing result is obtained based on the weighted sum of the three indexes.
[0229] Specifically, the implementation of the comprehensive processing module includes:
[0230]
[0231] in, is the comprehensive index of the comprehensive processing module. is the mood state index, Behavior Difference Index, is the body condition index, , , They are the weights of the physical condition index, behavioral difference index, and mood state index, which are used to adjust the weights of different behavioral habits, environments, and corresponding moods.
[0232] According to these processing results, the management platform is also equipped with a background processing module, which is used to manage the target elderly people according to the output results of the comprehensive processing module and determine the early warning methods corresponding to different user behaviors.
[0233] Backstage staff can provide more considerate services based on user behavior habit data, such as regularly reminding users to undergo physical examinations and adjust their living environment.
[0234] When using the platform, if an alarm signal is received, the urgency of the situation can be quickly determined based on the user's historical behavior data, and corresponding processing can be taken to reduce the number of false alarms and handle corresponding situations in a timely manner.
[0235] In general, after incorporating data such as user behavior information and user habits, the entire elderly care service management system will become more intelligent and personalized, and will be able to better meet the specific needs of each elderly person, thereby improving their quality of life and happiness.
[0236] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A smart elderly care service management platform, characterized in that: include: The body detection module is used to obtain basic information and user behavior information during the detection of the elderly; The first information processing module is used to analyze the physical condition of the elderly based on the collected basic information and determine the physical condition index under different user behaviors; The second information processing module is used to perform secondary recognition of the health status of the target elderly according to the obtained physical condition results and user behavior information, determine the difference results of user behavior in different environments, and output the behavior difference index; The third information processing module is used to analyze the user behavior information, determine the judgment result of the target elderly person corresponding to the user behavior information when abnormal behavior occurs, and output the mood state index; A comprehensive processing module, used to analyze the happiness index of the target elderly based on the output results of the first information processing module, the second information processing module, and the third information processing module, and determine the differentiated comprehensive results caused by different behavioral habits; The implementation of the first information processing module includes: Step A1, obtaining basic information of the target elderly and determining the update frequency of the basic information; if the update frequency is less than a preset threshold, checking the target elderly and obtaining the latest basic information; Step A2, judging the physical condition of the target elderly and determining the physical condition index of the target elderly; Step A3, obtaining user behavior information of the target elderly, classifying the user behavior information according to the corresponding physical condition index, and marking different user behavior information; The implementation method of obtaining the physical condition index for classification in step A3 includes: Step A31, obtaining the living habit data of the target elderly, determining the amount of change in the living habit data within a preset period, and determining basic information corresponding to the amount of change within the preset period; Step A32, constructing a decision tree for classification based on the living habit data and basic information, and determining the classification model corresponding to different time periods; Step A33, using the division nodes of the established classification model as output physical condition index; The method for obtaining the difference results of user behaviors in the second information processing module is as follows: Step B1, obtaining data including various environmental information and physical condition indexes as an environmental data set, and obtaining the user behavior frequency and duration of the target elderly in the corresponding environment; Step B2, obtaining a behavior difference index related to the environment according to the user behavior frequency and duration of the target elderly in the corresponding environment; The implementation of the third information processing module includes: Step C1, based on the acquired user behavior information, performing sentiment analysis on the user behavior information to determine the sentiment trend corresponding to the user behavior information; Step C2, based on the emotional trend corresponding to the user behavior information, determine the trend change amount corresponding to the target elderly in different time periods, record the corresponding timestamp and occurrence frequency, so as to obtain the emotional impact degree of the target elderly; Step C3, classifying the user behavior based on the acquired emotional impact degree, and determining the emotional classification of the target elderly person corresponding to the user behavior information; Step C4, calculating the user behavior information after emotion classification to determine the mood state index of the user behavior information; The implementation of the comprehensive processing module includes: ; in, is the comprehensive index of the comprehensive processing module. is the mood state index, Behavior Difference Index, is the body condition index, , , are the weights of the physical condition index, behavioral difference index, and mood state index, respectively; The specific expression formula of trend change is: ; in, is the trend change amount, For the User behavior, is the sentiment value corresponding to the user behavior, is the frequency of the corresponding user behavior. The amount of user behavior information; The degree of emotional impact is expressed as: ; in, For the degree of emotional impact, It is the ratio of the maximum trend change to the minimum trend change. is the trend change amount, For the preset time length, The amount of user behavior information; The mood state index is obtained as follows: ; in, is the mood state index, is the variance of the emotional impact under the current emotional classification, is the average value of the emotional impact under the current emotional classification, It is the preset standard value of the degree of emotional impact under the current emotional classification.
2. A smart elderly care service management platform according to claim 1, characterized in that: When the third information processing module classifies the user behavior information of the target elderly according to the degree of emotional impact, it also includes the following methods: Step D1, when analyzing the user behavior information of the target elderly, obtain the behavior type, behavior occurrence time and user identity corresponding to the user behavior information, determine the multiple behavior random sets and single behavior period sets corresponding to the user behavior, each multiple behavior random set includes multiple interrelated user behavior information, and the single behavior period set represents the period in which each user behavior information occurs, and records the set of the same behavior that occurs in a continuous period of the user; Step D2, establishing a behavior analysis model based on multiple random behavior sets and single behavior periodic sets, and analyzing user behaviors, the analysis includes a first behavior analysis model and a second behavior analysis model, the first behavior analysis model is used to determine behaviors that occur together in a continuous period between multiple random behavior sets and single behavior periodic sets, and the second analysis model is used to determine user behaviors that occur in a non-period between multiple random behavior sets and single behavior periodic sets; Step D3, determining the initial user behavior within a preset period, and determining whether each user behavior after the initial user behavior satisfies a first preset rule, wherein the first preset rule indicates whether a continuous relationship of user behaviors after the initial user behavior satisfies a preset condition; The precondition of the first precondition principle is that both the initial user behavior and the user behavior after the initial user behavior exceed the precondition threshold; Step D4, determining abnormal user behavior information of the user within multiple periodic time periods, analyzing the abnormal user behavior information, determining the occurrence time and associated behavior of the abnormal user behavior information, and determining whether the occurrence time and associated behavior of the abnormal user behavior information meet a second preset rule, wherein the second preset rule indicates that abnormal user behavior still exists after the abnormal behavior is processed; Step D5, merging the user behavior information satisfying the first preset rule and the second preset rule and outputting the result.
3. According to claim 1, a smart elderly care service management platform is characterized in that: Also includes: The background processing module is used to manage the target elderly people according to the output results of the comprehensive processing module and determine the early warning methods corresponding to different user behaviors.
Citation Information
Patent Citations
Intelligent old-age care service management system based on Internet of Things
CN116342344A
Intelligent early warning system based on wearable device and early warning method
CN106037635A
Mood self-adaptive system based on elderly nursing robot
CN107243905A
Comprehensive safety service and life service system for old people
CN115239537A
Intelligent healthy environment regulation and control system based on micro expressions and behaviors of old people
CN115357073A
