A smart community comprehensive health care monitoring method and system

By dynamically adjusting smoothing parameters by calculating distribution density and correlation confidence, the problem of inaccurate prediction values ​​caused by fixed smoothing coefficients in smart community systems is solved, efficient monitoring of the health care environment is achieved, and the stability and safety of the environment are ensured.

CN118350974BActive Publication Date: 2024-09-20SHANDONG ZHENGTU INFORMATION POLYTRON TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410763868.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-20
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

When the exponential smoothing method is used in the smart community system, when the fixed smoothing coefficient causes large fluctuations in historical monitoring data, the prediction value accuracy is low, abnormal monitoring status cannot be detected in time, and the quality of the health care environment is affected.

Method used

By calculating the distribution density confidence and correlation confidence of data points, the smoothing parameters are dynamically adjusted to obtain the best smoothing parameters, smoothing historical monitoring data, determining the monitoring status of the data points to be predicted, and handling abnormal situations in a timely manner.

Benefits of technology

It improves the accuracy of prediction values, can detect and deal with abnormal situations in time, ensures the stability and safety of the health care environment, and improves the efficiency and quality of the smart community system's monitoring of the health care environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118350974B
    Figure CN118350974B
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and in particular to a method and system for comprehensive health care monitoring in a smart community. The method includes: determining the difference between the actual value and the predicted value of each data point in the historical monitoring data as the error value of each data point in the historical monitoring data; when the error value exceeds a preset threshold, determining the distribution density confidence of each data point, and the distribution density confidence of each data point is negatively correlated with the actual value; taking the product of the distribution density confidence of each data point and the predicted value as the weighted error value of each data point, determining the correlation confidence of the historical monitoring data, and the correlation confidence is negatively correlated with the weighted error value; determining the optimal smoothing parameter of the historical monitoring data, obtaining the data point to be predicted, using the optimal smoothing parameter to smooth the historical monitoring data, and obtaining the monitoring status of the data point to be predicted, and the smart community system processes the monitoring status to achieve the maintenance of the health care environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a smart community comprehensive health care monitoring method and system. Background Art

[0002] A good community garden environment is one of the important considerations for residents to choose a health and wellness environment. Timely and effective collection of garden data and real-time monitoring can better maintain the health and wellness environment. The prediction module in the smart community system can replace the traditional manual community garden management model. By periodically collecting garden environment data and conducting in-depth analysis to obtain garden environment prediction data for monitoring to optimize the health and wellness environment, a good comprehensive health and wellness environment can be built.

[0003] Exponential smoothing can be used in the prediction module of the smart community system. By processing the collected historical monitoring data of the garden environment with custom smoothing parameters, the predicted value of the data point to be predicted can be determined, and the monitoring status of the data point can be determined based on the predicted value. Among them, the smoothing parameter is a parameter commonly used in time series prediction by the exponential smoothing method, which is used to control the degree of dependence of the predicted value on the historical value. If the smoothing parameter is smaller, the predicted value depends less on the historical value, and the prediction result is more stable; if the smoothing parameter is larger, the predicted value depends more on the historical value, and the prediction result is more sensitive. Therefore, the reasonable selection of smoothing parameters is the key link in obtaining the predicted value of the garden environment.

[0004] However, when the prediction module in the smart community system uses the exponential smoothing method to determine the predicted value, the smoothing coefficient used is a fixed value. If the historical monitoring data fluctuates too much, the predicted value of the data point to be predicted based on the fixed smoothing coefficient will be less accurate. The smart community system cannot obtain accurate monitoring status based on the predicted value of the data point to be predicted with lower accuracy, resulting in the operator being unable to deal with abnormal monitoring status in a timely manner, thus damaging the quality of the comprehensive health care environment. Based on this, how to accurately determine the monitoring status of the data point to be predicted based on the exponential smoothing method is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] In order to solve the technical problem of how to accurately determine the monitoring status of the data point to be predicted, thereby effectively improving the monitoring quality of the comprehensive health care environment of the smart community, the present invention provides a smart community comprehensive health care monitoring method and system.

[0006] In the first aspect, the present invention provides a smart community comprehensive health care monitoring method, which adopts the following technical solutions:

[0007] A smart community comprehensive health care monitoring method, comprising the steps of:

[0008] The difference between the actual value and the predicted value of each data point in the historical monitoring data is determined as the error value of each data point in the historical monitoring data, and the predicted value is obtained by the initial smoothing parameter; when the error value exceeds the preset threshold, the distribution density confidence of each data point is determined, and the distribution density confidence of each data point is negatively correlated with the actual value of each data point; the product of the distribution density confidence of each data point and the predicted value is used as the weighted error value of each data point, and the correlation confidence of the historical monitoring data is determined, and the correlation confidence is negatively correlated with the weighted error value; determine the optimal smoothing parameter of the historical monitoring data:

[0009] ; In the formula, represents the optimal smoothing parameter of historical monitoring data, represents the Pearson correlation coefficient of historical monitoring data, Indicates the confidence level of the correlation of historical monitoring data, represents the initial smoothing parameter in the historical monitoring data, Represents a hyperbolic tangent function; obtains a data point to be predicted, uses the optimal smoothing parameter to smooth the historical monitoring data, and obtains the monitoring status of the data point to be predicted. The smart community system processes the monitoring status to achieve maintenance of the health care environment.

[0010] The present invention introduces distribution density confidence as the calculation basis of weighted error value, which can more accurately reflect the actual status of data points and reduce the impact of actual value errors of data points caused by errors in the collection process on error value analysis; the smart community system can adaptively adjust the smoothing parameters of historical monitoring data according to the changes in the actual values ​​and error values ​​of the data through real-time monitoring and analysis of the errors in the predicted values ​​in historical monitoring data, so as to adapt to different data distributions and change patterns, thereby obtaining accurate predicted values; the smart community system can timely and accurately detect abnormal situations based on the predicted values ​​with higher accuracy, and take corresponding treatment measures to ensure the stability and safety of the health care environment.

[0011] According to a smart community comprehensive health care monitoring method provided by the present invention, the distribution density confidence of each data point satisfies the relationship: ; In the formula, represents the distribution density confidence of the i-th data point, Indicates the number of other data points in the historical monitoring data. represents the actual value of the i-th data point, represents the actual value of the jth data point among other data points, Represents the natural exponential function with base e.

[0012] The present invention provides an accurate calculation method of distribution density confidence, which can accurately reflect the distribution and reliability of data points in historical monitoring data.

[0013] According to a smart community comprehensive health care monitoring method provided by the present invention, the determining of the correlation confidence of the historical monitoring data includes: constructing a fitting function based on each of the weighted error values, determining the fitting function value corresponding to each weighted error value, and calculating the correlation confidence of the historical monitoring data:

[0014] ;

[0015] In the formula, Indicates the confidence level of the correlation of historical monitoring data, represents the weighted error value of the i-th data point, Represents the fitting function value corresponding to the weighted error value of the i-th data point, represents the slope of the fitting function, Indicates the total number of data points in the historical monitoring data. Represents the natural exponential function with base e.

[0016] The present invention provides an accurate calculation method of correlation confidence, which can accurately reflect the reliability of the correlation between the weighted error value of each data point in the historical monitoring data and the time point as it changes over time.

[0017] According to a smart community comprehensive health care monitoring method provided by the present invention, the historical monitoring data is smoothed using the optimal smoothing parameters to obtain the monitoring status of the data point to be predicted, including: using the optimal smoothing parameters to smooth the historical monitoring data to obtain the predicted value of the data point to be predicted, determining the warning level of the data point to be predicted, and the warning level of the data point to be predicted is positively correlated with the predicted value; determining the monitoring status of the data point to be predicted based on the comparison result of the warning level of the data point to be predicted and the warning threshold.

[0018] The present invention can obtain a more accurate prediction value through an optimal smoothing parameter with higher accuracy, so that the smart community system can make timely processing and ensure the stability and safety of the health care environment.

[0019] According to a smart community comprehensive health care monitoring method provided by the present invention, the determining of the warning degree of the data point to be predicted includes: forming a new data sequence with the actual value of each data point in the historical monitoring data and the predicted value of the data point to be predicted, and determining the mean of the new data sequence; calculating the warning degree of the data point to be predicted: ; In the formula, Indicates the warning level of the data point to be predicted. Represents the predicted value of the data point to be predicted, Indicates the preset warning threshold. represents the mean of the new data series, Represents the number of data points in the new data sequence, represents the value of the jth data point in the new data sequence, Represents the normalization function.

[0020] According to a comprehensive health care monitoring method for a smart community provided by the present invention, the monitoring status of the data point to be predicted is determined based on a comparison result of the warning degree of the data point to be predicted and the warning threshold, including: when the warning degree of the data point to be predicted does not reach the warning threshold, the monitoring status of the data point to be predicted is a normal state; when the warning degree of the data point to be predicted reaches the warning threshold, the monitoring status of the data point to be predicted is an abnormal state.

[0021] According to a smart community comprehensive health care monitoring method provided by the present invention, the smart community system processes the monitoring status, including: if the monitoring status is normal, storing the new data sequence as historical monitoring data in the smart community system; if the monitoring status is abnormal, issuing an early warning through the smart community system, and marking the data points corresponding to the abnormal status and storing them in the abnormal database in the smart community system.

[0022] After the present invention obtains the accurate monitoring status of the data point to be predicted, the abnormal state can be processed timely and accurately, and marking the data point of the abnormal state is helpful for subsequent analysis and prevention of the abnormal state.

[0023] In a second aspect, the present invention provides a smart community comprehensive health care monitoring system, which adopts the following technical solutions:

[0024] A smart community comprehensive health care monitoring system includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned smart community comprehensive health care monitoring method is implemented.

[0025] By adopting the above-mentioned technical solution, the above-mentioned smart community comprehensive health care monitoring method is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a terminal device is made according to the memory and the processor for easy use.

[0026] The present invention has the following technical effects:

[0027] Based on the above scheme, when the health care environment is monitored in real time through the smart community system, the error value of each data point in the historical monitoring data is continuously collected. When the error value exceeds the error threshold, the error value of each data point in the historical monitoring data is promptly analyzed, and the error value is corrected through the distribution density confidence with higher reliability, thereby reducing the impact of abnormal data on the error analysis results, and the correlation confidence of the historical monitoring data obtained is more accurate; at the same time, through the correlation confidence of the historical monitoring data with higher accuracy, the initial smoothing parameter is further weightedly corrected, and the obtained optimal smoothing parameter realizes the dynamic adjustment of the smoothing parameter to adapt to different data change forms, and can accurately determine the monitoring status of the data point to be predicted, thereby effectively improving the efficiency of the smart community system in monitoring the health care environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.

[0029] Figure 1 A flowchart of a comprehensive health care monitoring method for a smart community provided by an embodiment of the present invention;

[0030] Figure 2 An example diagram of temperature trend comparison between a predicted value and an actual value obtained by an initial smoothing parameter provided by an embodiment of the present invention;

[0031] Figure 3 An example diagram of temperature trend comparison between a predicted value and an actual value obtained by using an optimal smoothing parameter provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0032] 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0033] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.

[0034] The embodiment of the present invention discloses a comprehensive health care monitoring method for a smart community, which collects and analyzes historical monitoring data in a garden environment through a smart community system to achieve maintenance of a comprehensive health care environment. Figure 1 As shown, Figure 1 A flowchart of a smart community comprehensive health care monitoring method provided by an embodiment of the present invention is provided. The smart community comprehensive health care monitoring method includes the following steps S1 to S5:

[0035] S1: The difference between the actual value and the predicted value of each data point in the historical monitoring data is determined as the error value of each data point in the historical monitoring data.

[0036] Among them, the predicted value can be obtained through the initial smoothing parameter.

[0037] Among them, each data point corresponds to a time point one by one; the number of data points in the historical monitoring data can be set according to actual needs, and the embodiment of the present invention does not impose too many restrictions on this.

[0038] For example, the type of historical monitoring data can be the temperature, humidity, air quality, etc. in the garden, and the collection period can be once every two seconds. The different types of historical monitoring data collected in the garden are transmitted to the corresponding label libraries in the smart community system. The type of historical monitoring data can be set according to actual needs; the collection period can be set according to actual needs, and the embodiment of the present invention does not impose too many restrictions on this.

[0039] For example, in the embodiment of the present invention, the error value of each data point in the historical monitoring data is determined by referring to the formula:

[0040] ;

[0041] In the formula, represents the error value of the i-th data point, represents the actual value of the i-th data point, Represents the predicted value of the i-th data point.

[0042] It can be understood that the larger the error value is, the greater the deviation between the actual value and the predicted value of the data point is, that is, the lower the accuracy of the predicted value obtained by the prediction model through the initial smoothing parameter is.

[0043] It should be noted that the smart community system in the embodiment of the present invention constructs a prediction model based on the exponential smoothing method in the prediction module, and analyzes the historical monitoring data through the prediction model to obtain the predicted value of each data point. However, the initial smoothing parameter used in the exponential smoothing method is a fixed value. When the new data received by the model undergoes a large change, the smoothing parameter cannot be adaptively adjusted based on the new data.

[0044] For example, after Z-score standardization preprocessing of temperature data, the prediction values ​​obtained by initial smoothing parameters and optimal smoothing parameters are verified. Figure 2 As shown, Figure 2 An example diagram of the temperature trend comparison between the predicted value and the actual value obtained by an initial smoothing parameter provided in an embodiment of the present invention, wherein the horizontal axis is the time of data point temperature collection, and the unit is 30 minutes. For example, at the horizontal axis data point 20, it represents the time of 20×30=600 minutes; at the horizontal axis data point 40, it represents the time of 40×30=1200 minutes; the vertical axis is the predicted value or actual value of each data point temperature after normalization. It can be seen that the accuracy of the data point prediction value obtained based on the initial smoothing parameter is low, and the deviation between the predicted value and the actual value of multiple data points is large, which leads to low accuracy of the monitoring status of the obtained data points.

[0045] In order to effectively improve the accuracy of the predicted value of the data point to be predicted, thereby effectively improving the efficiency of garden environment monitoring, the embodiment of the present invention obtains the actual value and predicted value of each data point in the historical monitoring data of the garden environment, determines the error value of each data point, and analyzes the degree of deviation between the data point in the historical monitoring data and other data points. Figure 3 As shown, Figure 3 This is an example diagram of the temperature trend comparison between the predicted value and the actual value obtained by the optimal smoothing parameter provided by an embodiment of the present invention, wherein the horizontal axis is the time of data point temperature collection, the unit is 30 minutes, and the vertical axis is the predicted value or actual value of each data point temperature after normalization. Figure 2 and Figure 3 It can be seen that compared with the initial smoothing parameter before adjustment, the overall deviation between the predicted value and the actual value of the data point obtained based on the adjusted optimal smoothing parameter is significantly reduced, and the accuracy of the predicted value is effectively improved. Based on this, the monitoring status corresponding to the data point to be predicted can be accurately obtained. In order to implement the technical solution provided by the present invention, the following steps are performed:

[0046] S2: When the error value exceeds a preset threshold, determine the distribution density confidence of each data point.

[0047] The confidence level of the distribution density of each data point is negatively correlated with the actual value of each data point; the preset threshold value can be set according to actual needs.

[0048] In order to effectively improve the accuracy of the predicted value of the data point to be predicted, when the error value exceeds the preset threshold, the error value of each data point in the historical monitoring data can be analyzed to determine the optimal smoothing parameter of the prediction model.

[0049] It should be noted that since the error between the predicted value and the actual value of the data point is large, it may be that the smart community system has an error in the process of garden environment data collection, resulting in incorrect data collected, and the prediction model cannot obtain accurate prediction values ​​based on abnormal data. The distribution density of data points in historical monitoring data can reflect its credibility in the entire historical monitoring data. Therefore, the credibility of each data point can be obtained by obtaining the distribution density confidence of each data point. For data points with higher credibility, a higher confidence is assigned when determining the predicted value of the data point to be predicted, so as to reduce the impact of abnormal data on the predicted value. That is, perform the following steps:

[0050] By way of example, in an embodiment of the present invention, the distribution density confidence of each data point in the historical monitoring data can be determined based on the degree of deviation between the actual value of the data point and the actual values ​​of other data points in the historical monitoring data to determine the distribution density confidence of the data point in the historical monitoring data.

[0051] The specific method for determining the distribution density confidence level can be found in the following formula:

[0052] ;

[0053] In the formula, represents the distribution density confidence of the i-th data point, Indicates the number of other data points in the historical monitoring data. represents the actual value of the i-th data point, represents the actual value of the jth data point among other data points, Represents the natural exponential function with base e.

[0054] Understandably, The smaller the value is, the higher the distribution density of the data point in the historical monitoring data is, and the higher the confidence in the historical monitoring data is; correspondingly, if the value is smaller, it means that the data point is more dispersed in the historical monitoring data, the actual value collected by the data point may be abnormal, and the confidence in the historical monitoring data is lower. When determining the predicted value of the data point to be predicted later, it is necessary to reduce the impact of the data point on the predicted value.

[0055] After the distribution density confidence of each data point in the garden environment historical monitoring data can be obtained based on the above method, the error value can be corrected by the data point distribution density confidence. That is, the following steps are performed:

[0056] S3: The product of the distribution density confidence of each data point and the predicted value is used as the weighted error value of each data point to determine the correlation confidence of the historical monitoring data.

[0057] Among them, the correlation confidence is negatively correlated with the weighted error value.

[0058] It should be noted that the confidence level of the distribution density of each data point can be used to perform weighted correction on the error value of the data point. By combining the two, the influence of abnormal data on the predicted value in the prediction model can be effectively reduced.

[0059] For example, in an embodiment of the present invention, the weighted error value of a data point can be determined by weighting the error value of the data point based on the confidence level of the distribution density of the data point in the historical monitoring data. For details, see the formula:

[0060] ;

[0061] In the formula, represents the weighted error value of the i-th data point, represents the confidence level of the distribution density of the i-th data point in the historical monitoring data, Represents the error value of the i-th data point before correction.

[0062] It is understandable that the confidence level of data point distribution density The higher the value, the higher the reliability of the data point in the entire garden environment historical monitoring data. Therefore, the weight of the data point should be increased when determining the predicted value of the data point. Correspondingly, the confidence level of the data point distribution density is The lower the value, the lower the reliability of the data point. The weight of the data point in determining the predicted value of the data point needs to be reduced, thereby reducing the impact on the prediction result.

[0063] Based on the above method, the weighted error value of each data point in the historical monitoring data can be determined, and the weighted error value of each data point has a corresponding time point. If only focusing on the weighted error value of a single data point to improve the prediction model and determine the predicted value of the data point to be predicted, it may lead to low accuracy of the prediction model. Based on this, the embodiment of the present invention provides the following steps to further analyze the weighted error value of the historical monitoring data:

[0064] It should be noted that since garden environment data are usually in a state of regular change, the weighted error value of each data point obtained based on this will also change with time, and there will be a linear correlation between the corresponding time point. Therefore, the smoothing parameters of the prediction model can be adjusted by analyzing the overall change trend of the weighted error value and time point in the historical monitoring data.

[0065] Specifically, if the overall trend of the weighted error value continues to be larger over time, it means that the gap between the model's predicted value and the actual value is continuing to widen. This is because the weight set for the latest data in the historical monitoring data is low, resulting in over-reliance on old data. In this case, it is necessary to increase the initial smoothing coefficient to increase the weight of the new data in the prediction model so that the prediction model can adapt to data changes more quickly.

[0066] If the overall trend of the weighted error value changes over time and shows an oscillating trend, it means that the model is too sensitive to small changes in the latest data, making the prediction results easily affected by the fluctuations of new data, resulting in frequent fluctuations in the prediction value in a short period of time, that is, oscillation. In this case, it is necessary to reduce the initial smoothing coefficient to increase the weight of the old data in the prediction model, reduce overreaction to small fluctuations, and make the prediction results more stable.

[0067] In order to accurately determine the degree of adjustment of the initial smoothing coefficient to obtain the optimal smoothing parameter, it is also necessary to determine the correlation of the weighted error value in the historical monitoring data over time. However, the correlation of the weighted error value over time is more sensitive to volatile data, which may result in a lower accuracy of the obtained correlation. Therefore, it is necessary to first verify the confidence level of the correlation of the weighted error value. In order to verify the confidence level of the correlation of the weighted error value in the historical monitoring data over time, an embodiment of the present invention determines the confidence level of the correlation of the weighted error value in the historical monitoring data over time by analyzing the degree of deviation between the weighted error value and the corresponding fitting function value, that is, performing the following steps:

[0068] For example, in an embodiment of the present invention, the weighted error value of a data point and a fitting function of the time point corresponding to the data point can be obtained by the least squares method; based on the fluctuation between the weighted error value of the data point in the historical monitoring data and the fitting function corresponding to the weighted error value of the data point, the correlation confidence of the weighted error value in the historical monitoring data is determined, and the specific formula can be referred to as:

[0069] ;

[0070] In the formula, Indicates the confidence level of the correlation of historical monitoring data, represents the weighted error value of the i-th data point, Represents the fitting function value corresponding to the weighted error value of the i-th data point, represents the slope of the fitting function, Indicates the total number of data points in the historical monitoring data. Represents the natural exponential function with base e.

[0071] Understandably, It represents the gap between the weighted error value and the fitting function value corresponding to the weighted error value. The smaller the value is, the closer the data point corresponding to the weighted error value is to the fitting function value.

[0072] It represents the variance of the gap between the weighted error value corresponding to all data points in the historical monitoring data and the fitting function value corresponding to the weighted error value. The smaller the value, the smaller the fluctuation of the weighted error value corresponding to all data points in the historical monitoring data, that is, the linear correlation between the weighted error value and the time point in the historical monitoring data is stronger, and the confidence of the correlation is also higher.

[0073] Based on the above method, the correlation confidence of the weighted error values ​​in the historical monitoring data can be obtained. If the correlation confidence of the weighted error values ​​in the historical monitoring data is high, the Pearson correlation coefficient of the correlation of the weighted error values ​​in the historical monitoring data can be determined, and the initial smoothing parameters can be adjusted in combination with the correlation confidence to obtain the optimal smoothing parameters to improve the prediction model.

[0074] It should be noted that the weighted error value in the historical monitoring data can be processed by Python to obtain the Pearson correlation coefficient of the monitoring data, which can be set according to actual needs, and the embodiment of the present invention does not impose too many restrictions on this.

[0075] It should be noted that, based on the Pearson correlation coefficient of the historical monitoring data obtained in the above manner, if the value is close to 1 or equal to 1, it means that the weighted error value in the historical monitoring data gradually increases with the change of time point, that is, the correlation between the two is strong and the error value of the data point is large, and the initial smoothing parameter needs to be increased to obtain the optimal smoothing parameter of the historical monitoring data; if the value is close to 0 or equal to 0, it means that the weighted error value in the historical monitoring data is uncorrelated with the change of time point, and the initial smoothing parameter needs to be reduced to obtain the optimal smoothing parameter of the historical monitoring data; if the value is close to -1, it means that the weighted error value in the historical monitoring data gradually decreases with the change of time point, that is, the correlation between the two is strong and the error value of the data point is also small, and the initial smoothing parameter can be continued to be reduced to obtain the optimal smoothing parameter of the historical monitoring data until the value of the linear Pearson correlation coefficient is equal to -1, and the actual value of the data point is very close to the predicted value.

[0076] After obtaining the correlation confidence and Pearson correlation coefficient of the weighted error value in the historical monitoring data based on the above steps, continue to execute the following S4:

[0077] S4: Determine the optimal smoothing parameters for historical monitoring data.

[0078] For example, in an embodiment of the present invention, the optimal smoothing parameter of the historical monitoring data can be determined based on the correlation confidence, the linear Pearson correlation coefficient of the historical monitoring data and the initial smoothing parameter. The optimal smoothing parameter of the historical monitoring data can be determined by referring to the following formula:

[0079] ;

[0080] In the formula, represents the optimal smoothing parameter of historical monitoring data, represents the Pearson correlation coefficient of historical monitoring data, Indicates the confidence level of the correlation of historical monitoring data, represents the initial smoothing parameter in the historical monitoring data, represents the hyperbolic tangent function.

[0081] After determining the optimal smoothing parameters of the historical monitoring data based on the above method, the historical monitoring data can be smoothed based on the optimal smoothing parameters in the prediction model to determine the monitoring status of the data point to be predicted:

[0082] S5: Obtain the data point to be predicted, use the optimal smoothing parameter to smooth the historical monitoring data, and obtain the monitoring status of the data point to be predicted. The smart community system processes the monitoring status to achieve the maintenance of the health care environment.

[0083] In the example, in an embodiment of the present invention, when determining the monitoring status of a data point to be predicted, the historical monitoring data can be smoothed using an optimal smoothing parameter to obtain a predicted value of the data point to be predicted, and the warning level of the data point to be predicted is determined; based on the comparison result of the warning level of the data point to be predicted and the warning threshold, the monitoring status of the data point to be predicted is determined.

[0084] Among them, the warning degree of the data point to be predicted is positively correlated with the predicted value; the monitoring state includes a normal state or an abnormal state; the warning threshold can be preset to 0.85, and can be set specifically according to actual needs. The embodiment of the present invention does not impose too many restrictions on this.

[0085] Specifically, in an embodiment of the present invention, to determine the warning degree of the data point to be predicted, the actual value of each data point in the historical monitoring data and the predicted value of the data point to be predicted can be combined into a new data sequence, and the number and mean of the data points in the new data sequence can be determined; based on the warning threshold, the number of data points in the new data sequence, the mean of the new data sequence, the predicted value of the data point to be predicted and the actual value of the data point in the historical monitoring data, the warning degree of the data point to be predicted is determined, and the specific details can be referred to the following formula:

[0086] ;

[0087] In the formula, Indicates the warning level of the data point to be predicted. Represents the predicted value of the data point to be predicted, Indicates the preset warning threshold. represents the mean of the new data series, Represents the number of data points in the new data sequence, represents the value of the jth data point in the new data sequence, Represents the normalization function.

[0088] After determining the warning level of the data point to be predicted based on the above method, the monitoring status of the data point to be predicted can be determined based on the warning level of the data point to be predicted, and then the monitoring status can be reported to the smart community system. The smart community system makes corresponding processing based on the monitoring status.

[0089] For example, when determining the monitoring state of the data point to be predicted based on the comparison result between the warning degree of the data point to be predicted and the warning threshold, there are the following two possible situations:

[0090] In one possible case, the warning level of the data point to be predicted does not reach the warning threshold. In this case, the monitoring state of the data point to be predicted is normal;

[0091] In another possible case, the warning level of the data point to be predicted reaches the warning threshold. In this case, the monitoring state of the data point to be predicted is an abnormal state.

[0092] For example, in an embodiment of the present invention, the smart community system makes corresponding processing based on the monitoring status obtained in the above steps, specifically including: if the monitoring status is normal, storing the new data sequence as historical monitoring data in the smart community system; if the monitoring status is abnormal, issuing an early warning through the smart community system, and marking the data points corresponding to the abnormal status and storing them in the abnormal database in the smart community system.

[0093] It is understandable that for a data point marked as abnormal, when the prediction model obtains historical monitoring data next time to determine the predicted value of the data point, the data point is not included in the scope of historical monitoring data, that is, the data point has no effect on the predicted value of subsequent data points.

[0094] It can be seen that in an embodiment of the present invention, when monitoring the comprehensive health care environment based on the smart community system, the difference between the actual value and the predicted value of each data point in the historical monitoring data can be determined as the error value of each data point in the historical monitoring data, and the predicted value is obtained through the initial smoothing parameter; when the error value exceeds the preset threshold, the distribution density confidence of each data point is determined, and the distribution density confidence of each data point is negatively correlated with the actual value of each data point; the product of the distribution density confidence of each data point and the predicted value is used as the weighted error value of each data point to determine the correlation confidence of the historical monitoring data, and the correlation confidence is negatively correlated with the weighted error value; determine the optimal smoothing parameter of the historical monitoring data; obtain the data point to be predicted, use the optimal smoothing parameter to smooth the historical monitoring data, and obtain the monitoring status of the data point to be predicted, and the smart community system processes the monitoring status to achieve maintenance of the health care environment.

[0095] In this way, by continuously collecting the error value of each data point in the historical monitoring data, when the error value exceeds the error threshold, the error value of each data point in the historical monitoring data is promptly analyzed, and the error value is corrected through the distribution density confidence with higher reliability, thereby reducing the impact of abnormal data on the error analysis results, and the correlation confidence of the historical monitoring data obtained is more accurate; at the same time, through the correlation confidence of the historical monitoring data with higher accuracy, the initial smoothing parameter is further weightedly corrected, and the obtained optimal smoothing parameter realizes the dynamic adjustment of the smoothing parameter, so as to adapt to different forms of data changes, and can accurately determine the monitoring status of the data point to be predicted, thereby effectively improving the efficiency and quality of the smart community system's monitoring of the health care environment.

[0096] An embodiment of the present invention further discloses a smart community comprehensive health care monitoring system, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a smart community comprehensive health care monitoring method according to the present invention is implemented.

[0097] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.

[0098] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM, a dynamic random access memory DRAM, a static random access memory SRAM, an enhanced dynamic random access memory EDRAM, a high bandwidth memory HBM, a hybrid memory cube HMC, etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device.

[0099] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.

[0100] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A comprehensive health care monitoring method for a smart community, characterized in that: include: Determine the difference between the actual value and the predicted value of each data point in the historical monitoring data as the error value of each data point in the historical monitoring data, wherein the predicted value is obtained by an initial smoothing parameter; The types of historical monitoring data are temperature, humidity, and air quality in the garden; When the error value exceeds a preset threshold, determining a distribution density confidence of each data point, wherein the distribution density confidence of each data point is negatively correlated with an actual value of each data point; The product of the distribution density confidence of each data point and the predicted value is used as the weighted error value of each data point to determine the correlation confidence of the historical monitoring data, wherein the correlation confidence is negatively correlated with the weighted error value; Determine the optimal smoothing parameter for the historical monitoring data: ; In the formula, represents the optimal smoothing parameter of historical monitoring data, represents the Pearson correlation coefficient of historical monitoring data, Indicates the confidence level of the correlation of historical monitoring data, represents the initial smoothing parameter in the historical monitoring data, represents a hyperbolic tangent function; obtaining a data point to be predicted, smoothing the historical monitoring data using the optimal smoothing parameter, obtaining a monitoring state of the data point to be predicted, and the smart community system processes the monitoring state to achieve maintenance of the health care environment; The distribution density confidence of each data point satisfies the relationship: ; In the formula, represents the distribution density confidence of the i-th data point, Indicates the number of other data points in the historical monitoring data. represents the actual value of the i-th data point, represents the actual value of the jth data point among other data points, represents the natural exponential function with e as base; Determining the correlation confidence of the historical monitoring data includes: constructing a fitting function based on each of the weighted error values, determining the fitting function value corresponding to each weighted error value, and calculating the correlation confidence of the historical monitoring data: ; In the formula, Indicates the confidence level of the correlation of historical monitoring data, represents the weighted error value of the i-th data point, Represents the fitting function value corresponding to the weighted error value of the i-th data point, represents the slope of the fitting function, Indicates the total number of data points in the historical monitoring data. represents the natural exponential function with e as base; The optimal smoothing parameter is used to smooth the historical monitoring data to obtain the monitoring status of the data point to be predicted, including: using the optimal smoothing parameter to smooth the historical monitoring data to obtain the predicted value of the data point to be predicted, and determining the warning degree of the data point to be predicted, including: forming a new data sequence with the actual value of each data point in the historical monitoring data and the predicted value of the data point to be predicted, and determining the mean value of the new data sequence, and the warning degree of the data point to be predicted is positively correlated with the predicted value; Calculate the warning level of the data point to be predicted: ; In the formula, Indicates the warning level of the data point to be predicted. Represents the predicted value of the data point to be predicted, Indicates the preset warning threshold. represents the mean of the new data series, Represents the number of data points in the new data sequence, represents the value of the jth data point in the new data sequence, represents the normalization function; According to the comparison result of the warning degree of the data point to be predicted and the warning threshold, the monitoring state of the data point to be predicted is determined.

2. A smart community comprehensive health care monitoring method according to claim 1, characterized in that: The step of determining the monitoring state of the data point to be predicted based on the comparison result of the warning degree of the data point to be predicted and the warning threshold comprises: When the warning level of the data point to be predicted does not reach the warning threshold, the monitoring state of the data point to be predicted is a normal state; When the warning level of the data point to be predicted reaches the warning threshold, the monitoring state of the data point to be predicted is an abnormal state.

3. A smart community comprehensive health care monitoring method according to claim 1, characterized in that: The smart community system processes the guardianship status, including: If the monitoring status is normal, the new data sequence is stored in the smart community system as historical monitoring data; If the monitoring status is an abnormal state, an early warning is issued through the smart community system, and the data points corresponding to the abnormal state are marked and stored in the abnormal database in the smart community system.

4. A smart community comprehensive health care monitoring system, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a smart community comprehensive health care monitoring method according to any one of claims 1-3 is implemented.