Intelligent drinking water management method and system based on user physical condition
Through the intelligent drinking terminal, the user's drinking habits and physical condition characteristics are analyzed, a drinking water recommendation model is constructed, and an improvement plan is generated, which solves the problem that the existing technology cannot provide personalized healthy drinking water recommendations, realizes the scientific management of users' healthy drinking water, and improves Intelligent management capabilities of drinking water equipment.
Patent Information
- Application Number
- CN202411061896.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-09-24
AI Technical Summary
Existing drinking water equipment cannot provide personalized healthy drinking water suggestions based on the user's physical condition, resulting in unhealthy drinking behaviors and affecting physical health.
Obtain users' multi-source historical drinking parameters and physical examination data through smart drinking terminals, analyze users' drinking habits and physical condition characteristics, build a drinking water recommendation recommendation model, generate improvement plans and manage terminal equipment to achieve adaptive regulation.
Provide users with scientific drinking water suggestions to help improve physical health, improve the rapid response capabilities of smart drinking water terminals, and develop good drinking habits.
Smart Images

Figure CN118692628A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of health management technology, and more specifically, to a smart drinking water management method and system based on a user's physical condition. Background Art
[0002] Healthy drinking water requires not only the quality of the water source, but also the drinking method. Healthy drinking water is closely related to drinking time, water quality and type. Personal drinking water information is concentrated on personal drinking habits. People are paying more and more attention to physical health issues, among which healthy drinking water is closely related to human health. However, existing drinking water equipment generally only has heating function or heat preservation function, such as electric kettles, traditional water dispensers, etc. Drinking behavior is loose and casual, and often develops unhealthy drinking methods, thus affecting physical health. With the development of intelligent technology, the functions of drinking water equipment have also been continuously expanded.
[0003] With the continuous development and progress of modern science and technology, society is becoming more and more digitalized, and the Internet of Things technology has gradually entered people's lives. The emergence of smart homes provides a one-stop solution for modern life. The concept of the Internet of Everything has added a new research direction to intelligent control. The management mode of water dispensers also tends to be interconnected and controlled. They are connected to the cloud server through the Internet of Things communication technology and controlled by designated software APP or WeChat applet. With the continuous development of short-distance and low-power Internet of Things technologies such as LoRa, Wi-Fi modules, NB-IoT and ZigBee, many water dispenser terminals currently support intelligent management such as remote control and data monitoring. Therefore, how to generate healthy drinking water recommendations based on the user's physical condition and manage smart drinking water equipment globally is an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a smart drinking water management method and system based on the user's physical condition, with the purpose of providing healthy drinking water suggestions by tracking the user's drinking habits and physical health status, while guiding the working status of the water dispenser smart terminal to achieve adaptive regulation.
[0005] The first aspect of the present invention provides a smart drinking water management method based on the user's physical condition, comprising: Acquire the user's multi-source historical drinking water parameters through the intelligent drinking water terminal, pre-process the multi-source historical drinking water parameters to analyze the drinking water status, and use the drinking water status to track and collect the user's drinking habits; Obtaining the user's physical examination data within a preset time, generating the user's physical condition characteristics based on the physical examination data, analyzing the correlation between the user's physical condition characteristics and drinking habits, and screening the user's physical condition characteristics whose correlation meets the preset requirements; Retrieving case data based on the screened user's physical condition characteristics, building a water drinking recommendation model, using the case data for learning representation, and outputting the user's recommended water drinking recommendations; Obtain the deviation information between the user's drinking habits and the recommended drinking suggestions, generate a drinking improvement plan based on the deviation information and the time sequence, generate a smart drinking terminal control sequence based on the drinking improvement plan, and perform terminal device management.
[0006] In this solution, the multi-source historical drinking water parameters are pre-processed to analyze the drinking water status, and the drinking water status is used to track and collect the user's drinking habits, specifically: Acquire the user's identity information, and retrieve multi-source historical drinking water data from smart drinking water terminals of different preset scenarios based on the identity information, wherein the multi-source historical drinking water data includes: water temperature, water volume, drinking time and water temperature; Perform circular coordinate fitting on each time period in the daily cycle, each time period corresponds to a two-dimensional coordinate, and after splicing, they are fitted into a circular area, and the drinking time based on the multi-source historical drinking water data is mapped to the circular area to generate a data scatter plot; Clustering is performed in the data scatter plot, initial cluster centers are randomly selected, distances between data sample points and each initial cluster center are calculated, clusters are divided according to minimum distances, and the average distances between all data sample points and the initial cluster centers are calculated in the clusters; Introducing dynamic weights to adaptively control the range of data samples participating in the updating of the clustering center, using the dynamic weights to weight the average distance, screening data sample points in the clustering clusters according to the weighted distance, obtaining the average distance corresponding to the screened data sample points, and updating the clustering center; After the maximum clustering iteration number is met, the clustering result is output, the user's drinking water status is obtained according to the clustering result, the user's exercise data is obtained and associated with the drinking water status, and the drinking water parameters of the user are tracked and collected using the drinking water status associated with the exercise data; If the data distribution deviation of the drinking water status after the tracked and collected drinking water parameters are associated with the sports data is less than a preset deviation threshold, the user's drinking water habits are generated according to the drinking water status after the sports data is associated.
[0007] In this solution, the user's physical examination data within a preset time is obtained, and the user's physical condition characteristics are generated based on the physical examination data, specifically: Obtaining a physical examination report of a user within a preset time, reading multimodal physical examination data in the physical examination report, performing feature extraction processing and text recognition processing on the multimodal physical examination data, and generating pre-processed multimodal data; Extracting abnormal indicators and physical examination analysis data of the user according to the preprocessed multimodal physical examination data, extracting disease labels based on the physical examination analysis data, taking the disease labels as dependent variables, calculating abnormal labels associated with the dependent variables using the Pearson correlation coefficient, and selecting a preset number of abnormal labels for marking; Calculate the Pearson correlation coefficient between the marked abnormal label and other physical examination labels, aggregate other physical examination labels that meet the preset Pearson correlation coefficient requirements with the marked abnormal label to characterize the user's physical condition characteristics.
[0008] In this solution, the correlation between the user's physical condition characteristics and drinking habits is analyzed, and the user's physical condition characteristics whose correlation meets the preset requirements are screened, specifically: Accessing the relevant domain knowledge graph according to the user's physical condition characteristics, obtaining the initial positioning of the user's physical condition characteristics and drinking habits in the domain knowledge graph, reading the association between nodes through the initial node positioning, and counting the number of meta-paths containing the user's physical condition characteristics and drinking habits in the domain knowledge graph; Obtaining explicit correlations between physical condition characteristics and drinking habits of different users through the meta-path data, and constructing an explicit relationship graph between the physical condition characteristics and drinking habits of users according to the meta-path; The self-attention block in the multi-head attention mechanism is used to divide the physical examination data and drinking status data corresponding to the user's physical condition characteristics and drinking habits into time dimensions, and the divided segments are processed through a linear layer to generate query vectors and key vectors; Acquire the attention weights between the characteristics of the user's physical condition and drinking habits through the query vector and the key vector, integrate multiple attention weight matrices to generate an implicit relationship graph according to the attention weight matrix, and generate implicit correlation according to the attention weight; The explicit correlation and the implicit correlation are averaged to obtain the correlation between the user's physical condition characteristics and drinking habits, a correlation threshold is preset, and the user's physical condition characteristics that are not less than the correlation threshold are screened.
[0009] In this solution, a drinking water recommendation model is constructed, and the case data is used for learning representation to output the user's recommended drinking water recommendations, specifically: The explicit relationship graph and implicit relationship graph of the user's physical condition characteristics and drinking habits are integrated to obtain the graph structure of the integrated relationship graph in the domain knowledge graph, and the drinking water data in the screened case data is extracted to supplement the graph structure; A drinking water recommendation model is constructed using Metapath random walk and graph attention network, a meta-path is constructed using the drinking water recommendation model, and the meta-path is represented using graph attention network; The weights of neighbor entities in each meta-path are obtained through the attention mechanism to represent the importance of the neighbor entities to the head entity. The meta-path neighbor entities are weighted to obtain the entity feature representation after neighbor aggregation. The score of the corresponding drinking water data is calculated based on the entity feature representation. The drinking water data are sorted according to the scores, and a preset number of drinking water data are acquired based on the sorting results to generate recommended drinking water suggestions for the user.
[0010] In this solution, the deviation information between the user's drinking habits and the recommended drinking suggestions is obtained, and a drinking improvement plan is generated by combining the deviation information with the time series, specifically: The recommended drinking water suggestion is split according to the drinking water data index, the standard data of each drinking water data index is obtained, and the standard data is associated with the actual exercise data, and the associated standard data is reconstructed by using an autoencoder network to generate a normal drinking water distribution model; Extracting the distribution of iconic sports data of different time periods according to the user's sports data, importing the iconic sports data distribution into the normal drinking water allocation model, performing time period allocation based on the standard data, and generating a drinking water allocation plan for the user; Obtaining deviation information between the drinking water status of each time period corresponding to the user's drinking water habit and the drinking water distribution plan, evaluating the user's acceptability according to the user's physical condition and exercise data, introducing a division coefficient based on the acceptability, and dividing the deviation information using the division coefficient; Based on the user's drinking habits, the segmented deviation information is used to compensate the drinking data, and the user's feedback information is obtained. The compensation interval is set based on the feedback information, and a drinking improvement plan is generated according to the compensation amount and compensation interval of the drinking data.
[0011] In this solution, based on the drinking water improvement solution, a smart drinking water terminal control sequence is generated to manage the terminal equipment, specifically: Generate initial thresholds of drinking water parameters for users at different time periods based on the drinking water improvement plan, obtain data differences between actual exercise data of the user and iconic exercise data of the corresponding time period, weight the initial thresholds according to the data differences, and obtain drinking water parameter thresholds; The drinking water parameter threshold is matched with the user identity information to generate a smart drinking water terminal control sequence, and sent to the smart drinking water terminal of each scene. If the user's drinking water data does not reach the drinking water parameter threshold, a reminder message is generated; In addition, the user's water drinking volume and drinking interval in different time periods are recorded, and the user's water collection time is predicted based on the water drinking volume and drinking interval. Based on the water collection time, the drinking parameter threshold is initialized according to a preset proportional coefficient to pre-set the smart drinking terminal.
[0012] The second aspect of the present invention provides a smart drinking water management system based on the user's physical condition, comprising: a memory, a processor, a drinking water parameter collection module, a drinking water habit analysis module, a drinking water suggestion module and a drinking water equipment management module, wherein the memory and the processor store and execute a smart drinking water management method program based on the user's physical condition; The drinking water parameter acquisition module is used to obtain the user's multi-source drinking water parameters and pre-process the multi-source historical drinking water parameters; The drinking habit analysis module analyzes the drinking status based on the user's multi-source drinking parameters, and tracks the drinking status to obtain the user's drinking habits; The drinking water suggestion module screens the user's physical condition characteristics, builds a drinking water suggestion recommendation model in combination with the knowledge graph, uses a large number of case recovery examples for learning representation, outputs the user's recommended drinking water suggestions, and generates the user's drinking water improvement plan; The drinking water equipment management module generates a smart drinking water terminal control sequence based on the drinking water improvement plan to manage the terminal equipment.
[0013] Compared with the prior art, the present invention has the following beneficial effects: The present invention combines the user's physical condition data with drinking water parameters, tracks and records the user's drinking water behavior, generates drinking water suggestions to provide a reference for the user to improve his or her physical health, and ensures that the user drinks water scientifically according to his or her own physical condition.
[0014] Initialize the working status of the water dispenser smart terminal according to the user's drinking water improvement plan, realize adaptive regulation, improve the rapid response capability of the drinking water smart terminal, provide users with appropriate water temperature, water quality and water quantity, etc., and help users develop good drinking habits. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments or exemplary embodiments of the present invention, the drawings required for use in the embodiments or exemplary descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained according to the drawings without paying creative work.
[0016] Figure 1 A flow chart showing a smart drinking water management method based on the user's physical condition; Figure 2 A flow chart showing screening of user physical condition characteristics related to water drinking habits; Figure 3 A flow chart for constructing a water drinking advice recommendation model is shown; Figure 4 The diagram shows the architecture of a smart drinking water management system based on the user's physical condition. DETAILED DESCRIPTION
[0017] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0018] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0019] Figure 1 Flowcharts of the smart drinking water management method based on the user's physical condition are shown respectively.
[0020] like Figure 1 As shown, this embodiment provides a smart drinking water management method based on the user's physical condition, including: S102, obtaining the multi-source historical drinking water parameters of the user through the intelligent drinking water terminal, pre-processing the multi-source historical drinking water parameters to analyze the drinking water status, and using the drinking water status to track and collect the drinking water habits of the user; S104, obtaining the user's physical examination data within a preset time, generating the user's physical condition characteristics according to the physical examination data, analyzing the correlation between the user's physical condition characteristics and drinking habits, and selecting the user's physical condition characteristics whose correlation meets the preset requirements; S106, retrieving case data according to the screened user's physical condition characteristics, building a drinking water recommendation model, using the case data for learning representation, and outputting a recommended drinking water recommendation for the user; S108, obtaining deviation information between the user's drinking habits and recommended drinking suggestions, generating a drinking improvement plan based on the deviation information and the time sequence, generating a smart drinking terminal control sequence based on the drinking improvement plan, and performing terminal device management.
[0021] It should be noted that the user's identity information is obtained, and based on the identity information, multi-source historical drinking water data is retrieved from smart drinking water terminals such as smart drinking machines and smart water cups in different preset scenes. The multi-source historical drinking water data includes: water temperature, water volume, drinking time and water temperature and other information. The preset scenes include home scenes, office scenes, etc., and the drinking water data from multiple scenes and sources are aggregated. Circular coordinates are fitted for each time period in the daily cycle. Each time period corresponds to a two-dimensional coordinate. The coordinate (0,0) represents the first time period, and the other coordinates are arranged counterclockwise. The Euclidean distance between two adjacent coordinate points is 1. After splicing, they are fitted into a circular area. The drinking time based on the multi-source historical drinking water data is mapped to the circular area to generate a data scatter plot.
[0022] Clustering is performed in the data scatter plot, initial cluster centers are randomly selected, the distances between data sample points and each initial cluster center are calculated, clusters are divided according to the minimum distance, and the average distances between all data sample points and the initial cluster center are calculated in the cluster clusters; dynamic weights are introduced to adaptively control the range of data samples participating in the update of cluster centers, and the dynamic weights change with the cluster iteration coefficient. The calculation formula is: , is the initial dynamic weight, is the final dynamic weight, is the number of iterations, is the maximum number of iterations. A smaller range in the early stage can help exclude more data samples of different categories, and a larger range in the later stage is conducive to global search. The average distance is weighted by the dynamic weight, and data sample points are screened in the cluster cluster according to the weighted distance, and the average distance corresponding to the screened data sample points is obtained, and the cluster center is updated; after the maximum number of clustering iterations is met, the clustering result is output, and the user's drinking water status is obtained according to the clustering result, and the user's sports data is obtained and associated with the drinking water status. The drinking water status after the sports data is associated is used to track and collect the user's drinking water parameters, and preferably the user's step information, pulse information or heart rate information is sensed by a wearable smart terminal to represent the user's sports state data; if the data distribution deviation of the drinking water status after the tracking and collection of drinking water parameters and the sports data is less than the preset deviation threshold, the user's drinking water habits are generated according to the drinking water status after the sports data is associated.
[0023] It should be noted that, a physical examination report of the user within a preset time is obtained, and the multimodal physical examination data in the physical examination report, including text physical examination data and image physical examination data, etc., is read, and the multimodal physical examination data is subjected to feature extraction processing and text recognition processing to generate preprocessed multimodal data; the user's abnormal indicators and physical examination analysis data are extracted according to the preprocessed multimodal physical examination data, and disease labels are extracted based on the physical examination analysis data, and the disease labels are used as dependent variables. The Pearson correlation coefficient is used to calculate the abnormal labels associated with the dependent variables, and a preset number of abnormal labels are selected for marking; the Pearson correlation coefficient of the marked abnormal labels and other physical examination labels is calculated, and other physical examination labels that meet the preset Pearson correlation coefficient requirements are aggregated with the marked abnormal labels into a physical examination indicator set to characterize the user's physical condition characteristics. The physical examination indicator set contains examination indicators related to the user's disease, which comprehensively reflects the user's physical health status.
[0024] Figure 2 A flow chart showing screening of user's physical condition characteristics related to water drinking habits.
[0025] According to an embodiment of the present invention, the correlation between the user's physical condition characteristics and drinking habits is analyzed, and the user's physical condition characteristics whose correlation meets the preset requirements are screened, specifically: S202, accessing the relevant domain knowledge graph according to the user's physical condition characteristics, obtaining the initial positioning of the user's physical condition characteristics and drinking habits in the domain knowledge graph, reading the association between nodes through the initial node positioning, and counting the number of meta-paths containing the user's physical condition characteristics and drinking habits in the domain knowledge graph; S204, obtaining explicit correlations between physical condition characteristics and drinking habits of different users through the meta-path data, and constructing an explicit relationship graph between the physical condition characteristics and drinking habits of the users according to the meta-path; S206, using the self-attention block in the multi-head attention mechanism to divide the physical examination data and drinking status data corresponding to the user's physical condition characteristics and drinking habits into time dimensions, and processing the divided segments through a linear layer to generate a query vector and a key vector; S208, obtaining the attention weights between the characteristics of the user's physical condition and drinking habits through the query vector and the key vector, integrating multiple attention weight matrices to generate an implicit relationship graph according to the attention weight matrix, and generating implicit correlation according to the attention weight; S210, averaging the explicit correlation and the implicit correlation to obtain the correlation between the user's physical condition characteristics and drinking habits, presetting a correlation threshold, and screening the user's physical condition characteristics that are not less than the correlation threshold.
[0026] It should be noted that some common chronic diseases of the human body are related to drinking water and can be improved by adjusting drinking habits, including hypertension, hypotension, hyperlipidemia and diabetes. The domain knowledge graph of relevant disease knowledge and rehabilitation adjustment methods is accessed, and the user's physical condition characteristics and drinking habits are used to locate them in the domain knowledge graph. By judging whether the domain knowledge graph contains the meta-path of the user's physical condition characteristics and drinking habits, it is characterized whether there is an explicit correlation. The greater the correlation, the more likely the physical condition characteristics can be improved by drinking habits. In order to better represent the high-level semantic association between the user's physical condition characteristics and drinking habits, the implicit correlation is obtained through the multi-head attention mechanism. The original data corresponding to the user's physical condition characteristics and drinking habits are segmented according to the total number of self-attention heads, and the attention parameters are input into the linear layer. The query vector and the key vector are obtained by scaling the dot product calculation to obtain the attention weight to generate implicit correlation.
[0027] Figure 3 A flow chart for constructing a water drinking advice recommendation model is shown.
[0028] According to an embodiment of the present invention, a drinking water recommendation model is constructed, and the case data is used for learning representation to output the user's recommended drinking water recommendations, specifically: S302, fusing the explicit relationship graph and implicit relationship graph of the user's physical condition characteristics and drinking habits, obtaining the graph structure of the fused relationship graph in the domain knowledge graph, and extracting drinking water data from the screened case data to supplement the graph structure; S304, using Metapath random walk and graph attention network to build a drinking water recommendation model, using the drinking water recommendation model to build a meta-path, and using the graph attention network to represent the meta-path; S306, obtaining the weight of the neighbor entity in each meta-path through the attention mechanism, indicating the importance of the neighbor entity to the head entity, weighting the meta-path neighbor entity, obtaining the entity feature representation after the neighbor aggregation, and calculating the score of the corresponding drinking water data according to the entity feature representation; S308, sorting the drinking water data according to the scores, and obtaining a preset amount of drinking water data based on the sorting results to generate recommended drinking water suggestions for the user.
[0029] It should be noted that the explicit relationship graph is fused with the implicit relationship graph. The fusion graph balances the explicit and implicit correlations between the user's physical condition characteristics and drinking habits, which can enhance the generalization and representation capabilities of the model. According to the association between the user's physical condition characteristics and drinking habits in the fusion relationship graph, the corresponding graph structure is segmented in the domain knowledge graph. Case data similar to the user's physical condition characteristics are obtained, and the case data is secondary screened based on the degree of recovery. The case data includes disease development, disease treatment, and disease rehabilitation adjustment, etc. The data that improves disease recovery by adjusting drinking habits is selected, and the selected data is located in the domain knowledge graph, and the location node is used to supplement the graph structure.
[0030] Metapath random walk is used to pre-train the supplemented graph structure, obtain the meta-path containing the user's physical condition characteristics and the drinking water data in the case data, calculate the weight of the neighbor entity in the meta-path, and characterize the importance of the neighbor entity to the head entity. Its neighbors on the meta-path , right The importance of is expressed as: , Represents a learnable parameter matrix, calculates the weight of neighbor entities according to importance; updates the feature representation after neighbor aggregation to obtain the score of the corresponding drinking water data ; ,in Indicates the user's physical condition characteristics, Indicates drinking water data, represents the activation function, The feature embedding representation representing the updated user's physical condition features, represents the bias term, Represents the norm.
[0031] It should be noted that the recommended drinking water suggestion is split according to the drinking water data indicators, the standard data of each drinking water data indicator is obtained, and associated with the actual exercise data, and the associated standard data is reconstructed by using an autoencoder network to generate a normal drinking water distribution model; the iconic exercise data distribution of different time periods is extracted according to the user's exercise data, and the iconic exercise data distribution is imported into the normal drinking water distribution model, and the time period is allocated based on the standard data to generate the user's drinking water distribution plan; the deviation information between the drinking water status of each time period corresponding to the user's drinking habits and the drinking water distribution plan is obtained, the user's acceptability is evaluated according to the user's physical condition and exercise data, and a partition coefficient is introduced based on the acceptability. The deviation information is divided using the partition coefficient. Preferably, a deep learning method is selected to quantify the user's acceptability, an initial value is set according to the user's age group, and the user's physical condition and exercise data are used as evaluation indicators. The corresponding partition coefficient is generated based on the initial value. Generally, the better the user's physical condition and the more exercise data, the higher the acceptability. Based on the user's drinking habits, the segmented deviation information is used to compensate the drinking data, and the user's feedback information is obtained. The compensation interval is set based on the feedback information, and a drinking improvement plan is generated according to the compensation amount and compensation interval of the drinking data.
[0032] It should be noted that, based on the drinking water improvement plan, the initial thresholds of the user's drinking water parameters at different time periods are generated, and the data difference between the user's actual motion data and the iconic motion data of the corresponding time period is obtained. The initial threshold is weighted according to the data difference to obtain the drinking water parameter threshold. When the user's motion data is relatively small, the corresponding drinking water parameter threshold is appropriately reduced. The drinking water parameter threshold is matched with the user identity information to generate a smart drinking water terminal control sequence, and is sent to the smart drinking water terminals in each scene. The user's water collection and drinking volume are counted according to the smart drinking water terminal. If the user's drinking water data does not reach the drinking water parameter threshold, a reminder message is generated, and the reminder message is visualized using a variety of media; in addition, the user's drinking water volume and drinking water interval at different time periods are recorded, and the user's water collection time is predicted based on the drinking water volume and drinking water interval. The drinking water parameter threshold is initialized according to a preset proportional coefficient based on the water collection time. For example, the water temperature is preheated to 70% of the water temperature corresponding to the user's drinking habit. The smart drinking water terminal determines the user's identity information through methods such as face recognition or RFID tag perception before performing subsequent water temperature heating. The pre-setting of the smart drinking water terminal improves the water outlet temperature response time of the smart drinking water terminal.
[0033] When there are multiple users in the preset scenario, the drinking habits of all users are obtained, and similar drinking data indicators are obtained based on the analysis of each drinking habit. The average value of each similar drinking data indicator in each time period is calculated as the preset standard for the smart drinking terminal; among the remaining drinking data indicators, the lowest value is used as the preset standard, and the high-frequency water demand time period in the preset scenario is statistically obtained. The smart drinking terminal is managed by introducing a proportional coefficient in the high-frequency water demand time period to adaptively reduce the preset standard.
[0034] Figure 4 The diagram shows the architecture of a smart drinking water management system based on the user's physical condition.
[0035] This embodiment provides a smart drinking water management system 4 based on the user's physical condition, including: a memory 41, a processor 42, a drinking water parameter collection module 43, a drinking water habit analysis module 44, a drinking water suggestion module 45 and a drinking water equipment management module 46, wherein the memory 41 and the processor 42 store and execute a smart drinking water management method program based on the user's physical condition; The drinking water parameter acquisition module 43 is used to obtain the multi-source drinking water parameters of the user and pre-process the multi-source historical drinking water parameters; The drinking habit analysis module 44 analyzes the drinking status based on the multi-source drinking parameters of the user, and tracks the drinking status to obtain the drinking habits of the user; The drinking water suggestion module 45 screens the user's physical condition characteristics, builds a drinking water suggestion recommendation model in combination with the knowledge graph, uses a large number of case recovery examples for learning representation, outputs the user's recommended drinking water suggestions, and generates the user's drinking water improvement plan; The drinking water equipment management module 46 generates a smart drinking water terminal control sequence based on the drinking water improvement plan to manage the terminal equipment.
[0036] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0037] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0038] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0039] Those skilled in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.
[0040] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0041] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A smart drinking water management method based on the user's physical condition, It is characterized in that The following steps are involved: Acquire the user's multi-source historical drinking water parameters through the intelligent drinking water terminal, pre-process the multi-source historical drinking water parameters to analyze the drinking water status, and use the drinking water status to track and collect the user's drinking habits; Obtaining the user's physical examination data within a preset time, generating the user's physical condition characteristics based on the physical examination data, analyzing the correlation between the user's physical condition characteristics and drinking habits, and screening the user's physical condition characteristics whose correlation meets the preset requirements; Retrieving case data based on the screened user's physical condition characteristics, building a water drinking recommendation model, using the case data for learning representation, and outputting the user's recommended water drinking recommendations; Obtain the deviation information between the user's drinking habits and the recommended drinking suggestions, generate a drinking improvement plan based on the deviation information and the time sequence, generate a smart drinking terminal control sequence based on the drinking improvement plan, and perform terminal device management.
2. According to claim 1, a smart drinking water management method based on the user's physical condition, It is characterized in that The multi-source historical drinking water parameters are pre-processed to analyze the drinking water status, and the drinking water status is used to track and collect the user's drinking water habits, specifically: Acquire the user's identity information, and retrieve multi-source historical drinking water data from smart drinking water terminals of different preset scenarios based on the identity information, wherein the multi-source historical drinking water data includes: water temperature, water volume, drinking time and water temperature; Perform circular coordinate fitting on each time period in the daily cycle, each time period corresponds to a two-dimensional coordinate, and after splicing, they are fitted into a circular area, and the drinking time based on the multi-source historical drinking water data is mapped to the circular area to generate a data scatter plot; Clustering is performed in the data scatter plot, initial cluster centers are randomly selected, distances between data sample points and each initial cluster center are calculated, clusters are divided according to minimum distances, and the average distances between all data sample points and the initial cluster centers are calculated in the clusters; Introducing dynamic weights to adaptively control the range of data samples participating in the updating of the clustering center, using the dynamic weights to weight the average distance, screening data sample points in the clustering clusters according to the weighted distance, obtaining the average distance corresponding to the screened data sample points, and updating the clustering center; After the maximum clustering iteration number is met, the clustering result is output, the user's drinking water status is obtained according to the clustering result, the user's exercise data is obtained and associated with the drinking water status, and the drinking water parameters of the user are tracked and collected using the drinking water status associated with the exercise data; If the data distribution deviation of the drinking water status after the tracked and collected drinking water parameters are associated with the sports data is less than a preset deviation threshold, the user's drinking water habits are generated according to the drinking water status after the sports data is associated.
3. According to claim 1, a smart drinking water management method based on the user's physical condition, It is characterized in that Obtain the user's physical examination data within a preset time, and generate the user's physical condition characteristics based on the physical examination data, specifically: Obtaining a physical examination report of a user within a preset time, reading multimodal physical examination data in the physical examination report, performing feature extraction processing and text recognition processing on the multimodal physical examination data, and generating pre-processed multimodal data; Extracting abnormal indicators and physical examination analysis data of the user according to the preprocessed multimodal physical examination data, extracting disease labels based on the physical examination analysis data, taking the disease labels as dependent variables, calculating abnormal labels associated with the dependent variables using the Pearson correlation coefficient, and selecting a preset number of abnormal labels for marking; Calculate the Pearson correlation coefficient between the marked abnormal label and other physical examination labels, aggregate other physical examination labels that meet the preset Pearson correlation coefficient requirements with the marked abnormal label to characterize the user's physical condition characteristics.
4. According to claim 1, a smart drinking water management method based on the user's physical condition, It is characterized in that Analyze the correlation between the user's physical condition characteristics and drinking habits, and select the user's physical condition characteristics whose correlation meets the preset requirements, specifically: Accessing the relevant domain knowledge graph according to the user's physical condition characteristics, obtaining the initial positioning of the user's physical condition characteristics and drinking habits in the domain knowledge graph, reading the association between nodes through the initial node positioning, and counting the number of meta-paths containing the user's physical condition characteristics and drinking habits in the domain knowledge graph; Obtaining explicit correlations between physical condition characteristics and drinking habits of different users through the meta-path data, and constructing an explicit relationship graph between the physical condition characteristics and drinking habits of users according to the meta-path; The self-attention block in the multi-head attention mechanism is used to divide the physical examination data and drinking status data corresponding to the user's physical condition characteristics and drinking habits into time dimensions, and the divided segments are processed through a linear layer to generate query vectors and key vectors; Acquire the attention weights between the characteristics of the user's physical condition and drinking habits through the query vector and the key vector, integrate multiple attention weight matrices to generate an implicit relationship graph according to the attention weight matrix, and generate implicit correlation according to the attention weight; The explicit correlation and the implicit correlation are averaged to obtain the correlation between the user's physical condition characteristics and drinking habits, a correlation threshold is preset, and the user's physical condition characteristics that are not less than the correlation threshold are screened.
5. According to claim 1, a smart drinking water management method based on the user's physical condition, It is characterized in that Construct a drinking water recommendation model, use the case data for learning representation, and output the user's recommended drinking water recommendations, specifically: The explicit relationship graph and implicit relationship graph of the user's physical condition characteristics and drinking habits are integrated to obtain the graph structure of the integrated relationship graph in the domain knowledge graph, and the drinking water data in the screened case data is extracted to supplement the graph structure; A drinking water recommendation model is constructed using Metapath random walk and graph attention network, a meta-path is constructed using the drinking water recommendation model, and the meta-path is represented using graph attention network; The weights of neighbor entities in each meta-path are obtained through the attention mechanism to represent the importance of the neighbor entities to the head entity. The meta-path neighbor entities are weighted to obtain the entity feature representation after neighbor aggregation. The score of the corresponding drinking water data is calculated based on the entity feature representation. The drinking water data are sorted according to the scores, and a preset amount of drinking water data is acquired based on the sorting results to generate recommended drinking water suggestions for the user.
6. According to claim 1, a smart drinking water management method based on the user's physical condition, It is characterized in that Obtain the deviation information between the user's drinking habits and the recommended drinking suggestions, and generate a drinking improvement plan based on the deviation information and time series, specifically: The recommended drinking water suggestion is split according to the drinking water data index, the standard data of each drinking water data index is obtained, and the standard data is associated with the actual exercise data, and the associated standard data is reconstructed by using an autoencoder network to generate a normal drinking water distribution model; Extracting the distribution of iconic sports data of different time periods according to the user's sports data, importing the iconic sports data distribution into the normal drinking water allocation model, performing time period allocation based on the standard data, and generating a drinking water allocation plan for the user; Obtaining deviation information between the drinking water status of each time period corresponding to the user's drinking water habit and the drinking water distribution plan, evaluating the user's acceptability according to the user's physical condition and exercise data, introducing a division coefficient based on the acceptability, and dividing the deviation information using the division coefficient; Based on the user's drinking habits, the segmented deviation information is used to compensate the drinking data, and the user's feedback information is obtained. The compensation interval is set based on the feedback information, and a drinking improvement plan is generated according to the compensation amount and compensation interval of the drinking data.
7. According to claim 1, a smart drinking water management method based on the user's physical condition, It is characterized in that Based on the drinking water improvement plan, a smart drinking water terminal control sequence is generated to manage the terminal equipment, specifically: Generate initial thresholds of drinking water parameters for users at different time periods based on the drinking water improvement plan, obtain data differences between actual exercise data of the user and iconic exercise data of the corresponding time period, weight the initial thresholds according to the data differences, and obtain drinking water parameter thresholds; The drinking water parameter threshold is matched with the user identity information to generate a smart drinking water terminal control sequence, and sent to the smart drinking water terminal of each scene. If the user's drinking water data does not reach the drinking water parameter threshold, a reminder message is generated; In addition, the user's water drinking volume and drinking interval in different time periods are recorded, and the user's water collection time is predicted based on the water drinking volume and drinking interval. Based on the water collection time, the drinking parameter threshold is initialized according to a preset proportional coefficient to pre-set the smart drinking terminal.
8. A smart drinking water management system based on the user's physical condition, It is characterized in that include: A memory, a processor, a drinking water parameter collection module, a drinking water habit analysis module, a drinking water suggestion module and a drinking water equipment management module, wherein the memory and the processor store and execute a smart drinking water management method program based on the user's physical condition; The drinking water parameter acquisition module is used to obtain the user's multi-source drinking water parameters and pre-process the multi-source historical drinking water parameters; The drinking habit analysis module analyzes the drinking status based on the user's multi-source drinking parameters, and tracks the drinking status to obtain the user's drinking habits; The drinking water suggestion module screens the user's physical condition characteristics, builds a drinking water suggestion recommendation model in combination with the knowledge graph, uses a large number of case recovery examples for learning representation, outputs the user's recommended drinking water suggestions, and generates the user's drinking water improvement plan; The drinking water equipment management module generates a smart drinking water terminal control sequence based on the drinking water improvement plan to manage the terminal equipment.
Citation Information
Cited By
Personalized drinking water management system and method for improving chronic heart failure
CN119069079A
