A method and device for recommending health information based on user sleep
By obtaining user characteristics and sleep information, filtering historical user health-related information and information to be recommended with high similarity, and providing personalized health suggestions, it solves the problem of being unable to provide sleep suggestions in the existing technology and improves the effect of improving sleep quality.
Patent Information
- Application Number
- CN202111611444.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Existing smart sleep monitoring devices can only monitor and analyze users' sleep conditions, but cannot provide health advice related to sleep conditions, resulting in users being unable to effectively improve sleep quality.
By obtaining the user's characteristic information and sleep information, the health-related information of historical users with high similarity to the user is determined, and combined with the health-related information to be recommended, the target recommendation information is screened out and provided to the user to improve his or her sleep condition.
It provides users with accurate health-related information, helps users improve their sleep quality, and improves the accuracy and personalization of recommendations.
Smart Images

Figure CN114329198B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of family health management, and in particular to a method and device for recommending health information based on user sleep. Background Art
[0002] As people's living standards improve, more people pay more and more attention to their health, and improving users' sleep is an important way to improve their health.
[0003] In the prior art, some smart sleep monitoring devices (smart sleep pillows, smart mattresses or smart bracelets) can monitor the user's sleep conditions and analyze the sleep status, for example, analyzing the time and proportion of light sleep, deep sleep and rapid eye movement period, and then scoring the user's sleep quality.
[0004] However, users can only understand their sleep conditions through sleep monitoring devices and cannot obtain health advice related to their sleep conditions. Summary of the invention
[0005] In an exemplary embodiment of the present invention, a method and device for recommending health information based on user sleep are provided to provide the user with health information associated with the sleep condition to improve the user's sleep quality.
[0006] According to a first aspect of an exemplary embodiment, a method for recommending health information based on user sleep is provided, the method comprising:
[0007] Acquire user information of the target user; wherein the user information includes user feature information and user sleep information;
[0008] Based on the user information and historical data set of the target user, determine the similarity between the target user and each historical user, and filter the historical data set according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of the at least one user;
[0009] Determine a second recommendation data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommendation data set includes at least one set of health-related information to be recommended;
[0010] determining health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information;
[0011] The target recommendation information is recommended to the target user.
[0012] In an embodiment of the present application, target recommendation information related to sleep is determined based on the acquired user information including user characteristic information and user sleep information, and the determined target recommendation information is the health-related information common to the first data set and the second data set. Since the first data set is obtained by filtering the historical data set through the similarity between the target user and each historical user, the first data set includes the historical health-related information of historical users similar to the target user; the second data set is obtained by filtering out part of the user information of the target user from each health-related information to be recommended, so that the second data set includes the health-related information to be recommended. In this way, when determining the health-related information related to the user's sleep, not only the health-related information of other similar historical users is considered, but also the health-related information to be recommended. Therefore, accurate health-related information is provided to the target user so that the user can improve his sleep.
[0013] In some exemplary implementations, determining the similarity between the target user and each historical user based on the user information of the target user and the historical data set includes:
[0014] Determine a first indication information set based on the user characteristic information and the user sleep information of the target user;
[0015] For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0016] In the above embodiment, if the target user is a new user who has not used the recommendation system, that is, there is no historical health-related information of the target user, then the user feature information and the user sleep information are used to determine the indication information set, and then the Jaccard distance is used as the similarity between the target user and each historical user. In this way, the similarity between the target user and each historical user can be accurately determined.
[0017] In some exemplary embodiments, the user information of the target user also includes historical health-related information of the target user, and then determining the similarity between the target user and each historical user based on the user information of the target user and the historical data set includes:
[0018] Determine a third indication information set based on the user characteristic information, user sleep information, and historical health-related information of the target user;
[0019] For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0020] In the above embodiment, if the target user is an old user who has used the recommendation system, that is, there is historical health-related information of the target user, then when determining the indication information set, the historical health-related information of the target user and the historical health-related information of other historical users are also considered, and the Jaccard distance is used as the similarity between the target user and each historical user. In this way, the similarity between the target user and each historical user can be accurately determined.
[0021] In some exemplary implementations, recommending the target recommendation information to the target user includes:
[0022] If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each corresponding historical user in the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or
[0023] If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, then filtering the preset number of target recommendation information from the target recommendation information according to the information of interest to the target user and recommending them to the target user; or
[0024] If the target user has received recommendation information before, the weight of each target recommendation information is determined based on the historical health-related information of the target user, and a preset number of target recommendation information is screened from the target recommendation information based on each weight and recommended to the target user; wherein the historical health-related information of the target user is determined based on the recommendation information previously received.
[0025] In the above embodiment, after obtaining the target recommendation information, the target user is determined to filter the target recommendation information and recommend it to the target user according to whether the target user has received the recommendation information before and whether the user characteristic information of the target user includes the information of interest to the target user. In this way, the different situations of the target users are taken into consideration, and the accuracy of the recommendation is improved.
[0026] In some exemplary implementations, the preset number of target recommendation information screened out includes recommendation information corresponding to the target user in different time periods.
[0027] In the above embodiment, since the effects of using health-related information to improve sleep are different in different time periods, the preset number of target recommendation information screened out includes the recommendation information corresponding to the target user in different time periods, thereby achieving more accurate recommendations.
[0028] In some exemplary embodiments, if the health-related information is diet information, the health-related information to be recommended is determined in the following manner:
[0029] Constructing a first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients; wherein the sleep information includes basic sleep information and a sleep score determined according to the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time, and rapid eye movement duration;
[0030] Based on the first corresponding relationship, the second corresponding relationship, the corresponding relationship between food ingredients and food categories, and the individual foods included in each food category, a set of health-related information to be recommended is determined.
[0031] In the above embodiment, when the health-related information is dietary information, the dietary information to be recommended is made more comprehensive and accurate from food ingredients, food categories to individual foods through the above method.
[0032] In some exemplary embodiments, if the health-related information is exercise information, the health-related information to be recommended is determined in the following manner:
[0033] constructing a third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type;
[0034] Based on the third corresponding relationship, the fourth corresponding relationship, and the corresponding relationship between exercise types and exercise items, a set of health-related information to be recommended is determined.
[0035] In the above embodiment, when the health-related information is exercise information, the recommended exercise information is made more comprehensive and accurate from exercise type to exercise event through the above method.
[0036] According to a second aspect of an exemplary embodiment, a device for recommending health information based on user sleep is provided, the terminal including a processor and a data transmission unit, wherein:
[0037] The data transmission unit is configured to perform:
[0038] Acquire user information of the target user; wherein the user information includes user feature information and user sleep information;
[0039] The processor is configured to perform:
[0040] Based on the user information and historical data set of the target user, determine the similarity between the target user and each historical user, and filter the historical data set according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of the at least one user;
[0041] Determine a second recommendation data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommendation data set includes at least one set of health-related information to be recommended;
[0042] determining health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information;
[0043] The target recommendation information is recommended to the target user.
[0044] In some exemplary embodiments, the processor is configured to execute:
[0045] Determine a first indication information set based on the user characteristic information and the user sleep information of the target user;
[0046] For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0047] In some exemplary embodiments, the user information of the target user further includes historical health-related information of the target user, and the processor is configured to execute:
[0048] Determine a third indication information set based on the user characteristic information, user sleep information, and historical health-related information of the target user;
[0049] For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0050] In some exemplary embodiments, the processor is configured to execute:
[0051] If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each corresponding historical user in the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or
[0052] If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, then filtering the preset number of target recommendation information from the target recommendation information according to the information of interest to the target user and recommending them to the target user; or
[0053] If the target user has received recommendation information before, the weight of each target recommendation information is determined based on the historical health-related information of the target user, and a preset number of target recommendation information is screened from the target recommendation information based on each weight and recommended to the target user; wherein the historical health-related information of the target user is determined based on the recommendation information previously received.
[0054] In some exemplary implementations, the preset number of target recommendation information screened out includes recommendation information corresponding to the target user in different time periods.
[0055] In some exemplary embodiments, if the health-related information is diet information, the processor is configured to execute: determining the health-related information to be recommended by:
[0056] Constructing a first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients; wherein the sleep information includes basic sleep information and a sleep score determined according to the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time, and rapid eye movement duration;
[0057] Based on the first corresponding relationship, the second corresponding relationship, the corresponding relationship between food ingredients and food categories, and the individual foods included in each food category, a set of health-related information to be recommended is determined.
[0058] In some exemplary embodiments, if the health-related information is exercise information, the processor is configured to determine the health-related information to be recommended in the following manner:
[0059] constructing a third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type;
[0060] Based on the third corresponding relationship, the fourth corresponding relationship, and the corresponding relationship between exercise types and exercise items, a set of health-related information to be recommended is determined.
[0061] According to a third aspect of an exemplary embodiment, there is provided a device for recommending health information based on user sleep, the device comprising:
[0062] An information acquisition module, used to acquire user information of a target user; wherein the user information includes user characteristic information and user sleep information;
[0063] A first determination module is used to determine the similarity between the target user and each historical user based on the user information of the target user and the historical data set, and to filter the historical data set according to each of the similarities to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of the at least one user;
[0064] A second determination module is used to determine a second recommended data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommended data set includes at least one set of health-related information to be recommended;
[0065] a recommendation information determination module, configured to determine health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information;
[0066] A recommendation module is used to recommend the target recommendation information to the target user.
[0067] In some exemplary embodiments, the first determining module is specifically configured to:
[0068] Determine a first indication information set based on the user characteristic information and the user sleep information of the target user;
[0069] For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0070] In some exemplary embodiments, the user information of the target user also includes historical health-related information of the target user, and the first determining module is specifically configured to:
[0071] Determine a third indication information set based on the user characteristic information, user sleep information, and historical health-related information of the target user;
[0072] For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0073] In some exemplary embodiments, the recommendation module is specifically used to:
[0074] If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each corresponding historical user in the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or
[0075] If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, then filtering the preset number of target recommendation information from the target recommendation information according to the information of interest to the target user and recommending them to the target user; or
[0076] If the target user has received recommendation information before, the weight of each target recommendation information is determined based on the historical health-related information of the target user, and a preset number of target recommendation information is screened from the target recommendation information based on each weight and recommended to the target user; wherein the historical health-related information of the target user is determined based on the recommendation information previously received.
[0077] In some exemplary implementations, the preset number of target recommendation information screened out includes recommendation information corresponding to the target user in different time periods.
[0078] In some exemplary embodiments, if the health-related information is diet information, the second determination module is specifically configured to determine the health-related information to be recommended in the following manner:
[0079] Constructing a first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients; wherein the sleep information includes basic sleep information and a sleep score determined according to the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time, and rapid eye movement duration;
[0080] Based on the first corresponding relationship, the second corresponding relationship, the corresponding relationship between food ingredients and food categories, and the individual foods included in each food category, a set of health-related information to be recommended is determined.
[0081] In some exemplary embodiments, if the health-related information is exercise information, the second determination module is specifically configured to determine the health-related information to be recommended in the following manner:
[0082] constructing a third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type;
[0083] Based on the third corresponding relationship, the fourth corresponding relationship, and the corresponding relationship between exercise types and exercise items, a set of health-related information to be recommended is determined.
[0084] According to a fourth aspect of an exemplary implementation, a computer storage medium is provided, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the method for recommending health information based on user sleep as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments 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 based on these drawings without paying creative labor.
[0086] Figure 1 An application scenario diagram of a method for recommending health information based on user sleep provided by an embodiment of the present invention is exemplified;
[0087] Figure 2A flowchart of a method for recommending health information based on user sleep provided by an embodiment of the present invention is exemplified;
[0088] Figure 3 An exemplary display page diagram of sleep information provided by an embodiment of the present invention is shown;
[0089] Figure 4 A display page diagram of how to improve sleep quality provided by an embodiment of the present invention is exemplarily shown;
[0090] Figure 5 An exemplary diagram of a display page of recommended dietary information provided by an embodiment of the present invention is shown;
[0091] Figure 6 An exemplary diagram of a display page of recommended sports information provided by an embodiment of the present invention is shown;
[0092] Figure 7 The schematic diagram of the structure of a device for recommending health information based on user sleep provided by an embodiment of the present invention is exemplarily shown;
[0093] Figure 8 The schematic diagram of the structure of a device for recommending health information based on user sleep provided by an embodiment of the present invention is exemplified. DETAILED DESCRIPTION
[0094] The following will be combined with the accompanying drawings to clearly and thoroughly describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0095] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0096] Sleep cycle: Non-rapid eye movement sleep and rapid eye movement sleep, the two alternate, each alternation is called a sleep cycle, the two cycles repeat, usually there are 4 to 5 sleep cycles every night, each cycle is 90 to 110 minutes. There are two ways to divide non-rapid eye movement, one is to divide it into falling asleep, light sleep, deep sleep and deep sleep; the other is to divide it into light sleep stage and deep sleep stage.
[0097] In the specific practice process, as people's living standards improve, more people begin to pay attention to health, and improving users' sleep conditions is an important indicator for improving health conditions. In the prior art, some smart sleep monitoring devices (smart sleep pillows, smart mattresses or smart bracelets) can monitor users' sleep conditions and analyze their sleep status, such as analyzing the time and proportion of light sleep, deep sleep, and rapid eye movement, and then scoring the user's sleep quality. However, users only understand their sleep conditions through sleep monitoring devices, and cannot obtain health advice related to their sleep conditions.
[0098] To this end, an embodiment of the present application provides a method for recommending health information based on user sleep. In this method, the user information of the target user obtained includes not only user characteristic information, but also user sleep information. In this way, the similarity between the target user and each historical user can be determined based on the user information and the historical data set, and then the historical data set is screened to obtain a first recommended data set; then, based on the user information of the target user, some health-related information to be recommended is screened out as the second recommended data set. In this way, the health-related information shared by the first recommended data set and the second recommended data set is recommended to the user as the target recommended information. In this way, in the recommendation process, the user characteristic information and the user sleep information of the target user are combined, and the historical data and the data to be recommended are comprehensively considered to determine the health information recommended to the target user.
[0099] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0100] refer to Figure 1 , shows an application scenario diagram of a method for recommending health information based on user sleep, wherein a health management application can integrate a recommendation system, and clicking on the health management application can enter a page for recommending health information.
[0101] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.
[0102] Combine the following Figure 1 The application scenario shown is shown in Figure 2 A flowchart of a method for recommending health information based on user sleep is shown to illustrate the technical solution provided in an embodiment of the present application.
[0103] S201. Obtain user information of a target user; wherein the user information includes user characteristic information and user sleep information.
[0104] S202. Based on the user information and historical data set of the target user, determine the similarity between the target user and each historical user, and filter the historical data set according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of at least one user.
[0105] S203. Determine a second recommendation data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommendation data set includes at least one set of health-related information to be recommended.
[0106] S204: Determine the health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information.
[0107] S205: Recommend the target recommendation information to the target user.
[0108] In an embodiment of the present application, target recommendation information related to sleep is determined based on the acquired user information including user characteristic information and user sleep information, and the determined target recommendation information is the health-related information common to the first data set and the second data set. Since the first data set is obtained by filtering the historical data set through the similarity between the target user and each historical user, the first data set includes the historical health-related information of historical users similar to the target user; the second data set is obtained by filtering out part of the user information of the target user from each health-related information to be recommended, so that the second data set includes the health-related information to be recommended. In this way, when determining the health-related information related to the user's sleep, not only the health-related information of other similar historical users is considered, but also the health-related information to be recommended. Therefore, accurate health-related information is provided to the target user so that the user can improve his sleep.
[0109] In S201, user information of the target user is obtained, wherein the user information includes two parts, one part is user characteristic information, and the other part is user sleep information. Exemplarily, the user characteristic information may include the age and gender of the target user, and may also include the user's interest information, and the user's sleep information may include at least one of the start time of deep sleep, the duration of deep sleep, the start time of light sleep, the duration of light sleep, the start time of rapid eye movement, and the duration of rapid eye movement.
[0110] Exemplarily, the device for recommending health information based on user sleep is, for example, a smart terminal, and the user characteristic information needs to be manually filled in by the user when the user logs in or accesses the recommendation system. Sleep information can be obtained by a smart sleep monitoring device (smart sleep pillow, smart mattress or smart bracelet), etc., and transmitted to the health recommendation device via Bluetooth or the Internet. In addition, if the sleep monitoring device has a display screen, the sleep information can be displayed on the display screen of the sleep monitoring device, and can also be displayed on the associated smart terminal at the same time; if the sleep monitoring device does not have a display screen, the sleep information can be displayed on the associated smart terminal.
[0111] Taking the smart sleep pillow as an example, the smart sleep monitoring device displays the sleep information on the smart terminal associated with the sleep monitoring device. Figure 3 A display page diagram of sleep information is shown, in which the heart rate generally decreases when the user is asleep, and the heart rate decreases even more when the user is sleeping deeply. The smart sleep pillow detects the user's heart rate and pillow temperature to determine the user's sleep time and sleep depth. Users can view their sleep status on the system page, including total sleep time, deep sleep, light sleep, rapid eye movement time, comparison with ordinary users, such as normal, low, too high, overall sleep quality score and comparison with yesterday's data. In addition, refer to Figure 4 For the sleep quality score, click "Go to Improve" to enter the sleep quality improvement page, which provides targeted scientific diet and exercise suggestions based on the user's sleep conditions, such as by clicking 41 and 42.
[0112] Taking a mobile phone as an example, the module used to recommend health-related information in a mobile phone is called a recommendation system. If the target user is a new user, the target user has not used the recommendation system, and the recommendation system does not include the target user's historical health-related information; if the target user is an old user, the target user has used the recommendation system, and the recommendation information includes the target user's historical health-related information. In addition, in order to protect user privacy, the target user's user information can be desensitized first.
[0113] After obtaining the user information of the target user, when determining the target recommendation information, it is necessary to determine the first recommendation data set and the second recommendation data set, and the health-related information shared by the two is the target recommendation information recommended to the target user.
[0114] The following is an explanation of the process of determining the first recommended data set:
[0115] In S202, the historical data set includes user information of at least one historical user and historical health-related information of at least one user within a target time period, wherein the target time period is, for example, one week before the current time, and within the one week, there are 100 historical users accessing the recommendation system. In this way, after each user accesses the recommendation system and accesses health-related information, it is considered that a piece of historical data is generated, and each piece of historical data is the user information of the historical user and its corresponding historical health-related information.
[0116] After obtaining the user information of the target user, the similarity between the target user and each historical user can be determined based on the user information of the target user and the historical data set, and then the historical data set can be screened based on each similarity to obtain the first recommended data set.
[0117] In a specific example, the target user is M, and the 100 historical users are L1 to L100, then the similarities between the target user and the 100 historical users are calculated, and then 100 similarity values X1 to X100 are obtained. The 10 historical users with the greatest similarity are screened out, and the first recommendation data set stores the user information of the 10 screened historical users and their corresponding historical health-related information.
[0118] The following is the calculation process of the similarity in the two cases.
[0119] The first case: The target user's user information only includes user feature information and user sleep information, which means that the target user is a new user, that is, a user who has never used the recommendation system. In this case, the similarity between the target user and each historical user is calculated as follows:
[0120] A first indication information set is determined based on the user characteristic information and user sleep information of the target user; for each historical user, a second indication information set is determined based on the user characteristic information and user sleep information of the historical user in the historical data set; a Jaccard distance between the target user and the historical user is determined based on the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0121] Taking a historical user L1 as an example, the first indication information set is represented by Na, and the second indication information set corresponding to the historical user is represented by Nb. Na stores the user feature information and user sleep information of the target user M, and Nb stores the user feature information and user sleep information of L1. The Jaccard distance Jaccard (a, b) between the target user and the historical user L1 is determined based on the first indication information set and the second indication information set, and the Jaccard distance is used as the similarity between the target user and the historical user L1.
[0122]
[0123] Among them, N a ∩N b Indicates the number of elements that are the same in Na and Nb, N a ∪N b Represents the number of different elements of Na and Nb, so that the similarity between the target user and the historical user L1 can be obtained. The calculation method of the similarity between the target user and other users is the same, which will not be repeated here.
[0124] In the second case, the user information of the target user also includes the historical health-related information of the target user, which indicates that the target user is an old user, that is, a user who has used the recommendation system. The subdivision also includes two cases: the target user is one of the aforementioned 100 historical users, and the target user is not one of the aforementioned 100 historical users. Taking the case where the target user is not one of the aforementioned 100 historical users as an example, the similarity between the target user and each historical user is calculated in the following way:
[0125] A third indication information set is determined based on the user characteristic information, user sleep information, and historical health-related information of the target user; for each historical user, a fourth indication information set is determined based on the user characteristic information, user sleep information, and historical health-related information of the historical user in the historical data set; a Jaccard distance between the target user and the historical user is determined based on the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0126] Taking a historical user L2 as an example, the third indication information set is represented by Nc, and the fourth indication information set corresponding to the historical user is represented by Nd. Nc stores the user feature information, user sleep information, and historical health-related information of the target user M, and Nd stores the user feature information, user sleep information, and historical health-related information of L1. The Jaccard distance Jaccard (c, d) between the target user and the historical user L2 is determined based on the third indication information set and the fourth indication information set, and the Jaccard distance is used as the similarity between the target user and the historical user L2.
[0127]
[0128] Among them, N c ∩N d N represents the number of elements that are the same in Nc and Nd. c ∪N d Represents the number of different elements of Na and Nb, so that the similarity between the target user and the historical user L2 can be obtained. The calculation method of the similarity between the target user and other users is the same, which will not be repeated here.
[0129] It should be noted that in the aforementioned process of determining the similarity between the target user and each historical user, taking diet as an example, the historical data set applied also includes the number of times each food is used, etc. In this way, the similarity between the target user and each historical user can be determined more accurately by combining the number of times the food is used and the number of times exercise is performed.
[0130] Next, the process of determining the second recommended data set is described:
[0131] In S203, based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information, a second recommendation data set is determined; wherein the second recommendation data set includes at least one set of health-related information to be recommended.
[0132] In actual application, diet and exercise are closely related to sleep conditions, and thus closely related to health conditions. Therefore, health-related information can usually be diet information or exercise information.
[0133] If the health-related information is diet information, the health-related information to be recommended is determined in the following manner:
[0134] A first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients are constructed; wherein the sleep information includes basic sleep information and a sleep score determined based on the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time and rapid eye movement duration; based on the first correspondence, the second correspondence, the correspondence between food ingredients and food categories, and the individual foods included in each food category, a group of health-related information to be recommended is determined.
[0135] In a specific example, the correspondence between food ingredients and food types and between each food is as follows, taking tryptophan and vitamins as an example:
[0136]
[0137]
[0138] Among them, food ingredients include, for example, tryptophan, vitamins, natural melatonin, serotonin, etc.; food categories include staple foods, vegetables, meat, fruits and beverages, etc.; individual foods include buckwheat, pork liver, cabbage, kiwi, etc. Specifically, the first corresponding relationship is that women aged 25-35 are suitable for eating foods with high serotonin content; the second corresponding relationship is that people whose deep sleep duration is less than 30 minutes and whose sleep score is between 65-75 points are suitable for eating foods with high natural melatonin content. In this way, combined with the correspondence between food ingredients and food categories and the various foods included in each food category, a set of health-related information to be recommended in this example is determined as follows:
[0139] {For women aged 25-35, whose deep sleep duration is less than 30 minutes and whose sleep score is between 65-75 points, it is recommended to eat meat containing melatonin such as lean meat and salmon, fruits containing serotonin such as grapes, pineapples, bananas and oranges, and staple foods containing serotonin such as millet and oats}.
[0140] It should be noted that the health-related information to be recommended is determined based on the currently known effects of food, and the above examples are only illustrative and do not constitute specific limitations.
[0141] If the health-related information is exercise information, the health-related information to be recommended is determined in the following manner:
[0142] A third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type are constructed; based on the third correspondence, the fourth correspondence, and the correspondence between exercise type and exercise items, a set of health-related information to be recommended is determined.
[0143] Among them, the types of exercise include relaxation, running, ball games, etc., and the sports items include yoga, Tai Chi, aerobics or ballroom dancing in the relaxation category; running includes jogging, walking and sprinting; ball games include badminton, table tennis, football, etc. The third correspondence is that a 45-year-old male is suitable for running, and the fourth correspondence is that a rapid eye movement duration of more than 40 minutes and a sleep score of 75-85 points are suitable for relaxation. In this way, combined with the correspondence between exercise types and sports items, a set of health-related information to be recommended in this example is determined as follows:
[0144] {For men aged 45 years old, with rapid eye movement duration greater than 40 minutes and a sleep score of 75-85 points, Tai Chi is recommended as a relaxing exercise, and jogging is recommended as a running exercise}.
[0145] It should be noted that the health-related information to be recommended is determined based on the currently known effects of exercise, and the above examples are only illustrative and do not constitute a specific limitation.
[0146] Regarding S204, in order to improve the accuracy of recommended health information, when determining the target recommended information, not only the historical health-related information of each historical user in the historical data set is considered, but also the health-related information to be recommended is considered, and the health-related information shared by the two is used as the target recommended information.
[0147] In S205, when the target recommendation information is recommended to the target user, the target recommendation information may be screened first, and then the screened target recommendation information may be recommended to the target user. The screening process may be divided into the following cases:
[0148] In the first case, if the target user has not received recommendation information before, and the target user's user characteristic information does not include the target user's information of interest, then based on the similarity between each historical user corresponding to the target recommendation information and the target user, a preset number of target recommendation information is filtered out from the target recommendation information and recommended to the target user.
[0149] Among them, the target user has not received recommendation information before, indicating that the target user is a new user who has not used the recommendation system. Assuming that the user characteristic information of the target user does not include the information of interest to the target user, at this time, the importance of each target recommendation information is the same. At this time, according to the similarity between each historical user corresponding to the target recommendation information and the target user, a preset number of target recommendation information can be screened and recommended to the target user. For example, there are 10 target recommendation information in total, each of which corresponds to a historical user. For example, if the preset number is 3, the target recommendation information corresponding to the three historical users with the highest similarity to the target user can be selected for recommendation.
[0150] In the second case, if the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, a preset number of target recommendation information is screened from the target recommendation information according to the information of interest to the target user and recommended to the target user.
[0151] Among them, the target user has not received recommendation information before, indicating that the target user is a new user who has not used the recommendation system. Assuming that the user information of the target user includes the target user's interest information, the interest information can be, for example, input by the user in the recommendation system, specifically, the user's dietary preferences or sports preferences. At this time, a preset number of target recommendation information that is consistent with the target user's interest information can be screened in the target recommendation information and recommended to the target user. For example, if the interest information is liking to eat apples, apples can be used as a screening principle in the target recommendation information to determine a preset number of target recommendation information.
[0152] In the third case, if the target user has received recommendation information before, the weight of each target recommendation information is determined based on the target user's historical health-related information, and a preset number of target recommendation information is screened from the target recommendation information based on each weight and recommended to the target user; wherein the target user's historical health-related information is determined based on the recommendation information previously received.
[0153] Among them, the target user has received recommendation information before, indicating that the target user is an old user who has used the recommendation system. At this time, for example, the target user's historical health-related information includes eating celery, nuts, rice, pineapple, tomatoes, and doing yoga, and participating in sports including yoga and jogging, then the weight of each target recommendation information is determined according to the target user's historical health-related information. For example, the weight of target recommendation information including yoga is greater than the weight of target recommendation information not including yoga. In this way, a preset number of target recommendation information can be screened out in order of weight from large to small for the target user.
[0154] In addition, in order to improve the effect of recommending health information, a preset number of target recommendation information is screened out, including recommendation information corresponding to the target user in different time periods, and different time periods include, for example, today's recommendation or daily recommendation. Among them, today's recommendation refers to the day when the user information of the target user is obtained for recommendation, and its purpose is to relieve discomfort to improve sleep; daily recommendation refers to the recommendation at other times after today, and its purpose is to provide users with daily dietary advice. In the implementation process, for example, it is considered whether the effect of different ingredients or foods is to relieve discomfort to improve sleep, or daily dietary advice. Among the multiple groups of health information to be recommended in this way, one part is used to improve sleep, and one part is used to provide daily dietary advice. The difference between the two parts is that the food with a certain ingredient gradually becomes less. In order to distinguish the two parts of data, data labels can be added to achieve it.
[0155] In a specific example, Figure 5 A display page diagram of recommended dietary information is shown. Figure 6 A display page diagram of a recommended sports page is shown. Figure 5 , the target user can select part or all of today's diet, or part or all of the daily diet. Figure 6 , users can select part or all of today's exercise, or part or all of daily exercise.
[0156] In summary, in the embodiment of the present application, based on the user characteristic information and user sleep information of the target user, short-term solutions including relieving discomfort and long-term suggestions for improving health, such as scientific diet and exercise suggestions, are provided. Specifically, based on the user characteristic information of the target user and the health-related information of historical users, the diet and exercise preferred by the target user are mined; in addition, when recommending personalized daily diet and exercise suggestions for the target user, based on the user characteristic information and sleep information of the user, the historical health-related information of the historical user and the recommended health-related information are combined to determine the diet and exercise suitable for the current state of the target user.
[0157] like Figure 7 As shown, based on the same inventive concept, an embodiment of the present invention provides a device for recommending health information based on user sleep, including an information acquisition module 71, a first determination module 72, a second determination module 73, a recommended information determination module 74 and a recommendation module 75.
[0158] The information acquisition module 71 is used to acquire the user information of the target user; wherein the user information includes user characteristic information and user sleep information;
[0159] A first determination module 72 is used to determine the similarity between the target user and each historical user based on the user information of the target user and the historical data set, and to filter the historical data set according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of at least one user;
[0160] A second determination module 73 is used to determine a second recommended data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommended data set includes at least one set of health-related information to be recommended;
[0161] A recommendation information determination module 74, configured to determine the health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information;
[0162] The recommendation module 75 is used to recommend target recommendation information to target users.
[0163] In some exemplary implementations, the first determining module 72 is specifically configured to:
[0164] Determine a first indication information set based on user characteristic information and user sleep information of the target user;
[0165] For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0166] In some exemplary embodiments, the user information of the target user also includes historical health-related information of the target user, and the first determination module 72 is specifically used to:
[0167] Determine a third indication information set based on user characteristic information, user sleep information, and historical health-related information of the target user;
[0168] For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0169] In some exemplary embodiments, the recommendation module 75 is specifically configured to:
[0170] If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each historical user corresponding to the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or
[0171] If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, a preset number of target recommendation information is screened from the target recommendation information according to the information of interest to the target user and recommended to the target user; or
[0172] If the target user has received recommendation information before, the weight of each target recommendation information is determined based on the target user's historical health-related information, and a preset number of target recommendation information is screened from the target recommendation information based on each weight and recommended to the target user; wherein the target user's historical health-related information is determined based on the recommendation information previously received.
[0173] In some exemplary implementations, the preset amount of target recommendation information screened out includes recommendation information corresponding to the target user in different time periods.
[0174] In some exemplary embodiments, if the health-related information is diet information, the second determination module 73 is specifically configured to determine the health-related information to be recommended in the following manner:
[0175] Constructing a first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients; wherein the sleep information includes basic sleep information and a sleep score determined according to the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time, and rapid eye movement duration;
[0176] Based on the first corresponding relationship, the second corresponding relationship, the corresponding relationship between food ingredients and food categories, and the individual foods included in each food category, a set of health-related information to be recommended is determined.
[0177] In some exemplary embodiments, if the health-related information is exercise information, the second determination module 73 is specifically configured to determine the health-related information to be recommended in the following manner:
[0178] constructing a third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type;
[0179] Based on the third corresponding relationship, the fourth corresponding relationship, and the corresponding relationship between the exercise type and the exercise item, a set of health-related information to be recommended is determined.
[0180] Since the device is the device in the method in the embodiment of the present invention, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0181] like Figure 8 As shown, based on the same inventive concept, an embodiment of the present invention provides a device for recommending health information based on user sleep, and the device includes: a processor 801 and a data transmission unit 802.
[0182] The data transmission unit 802 is configured to perform:
[0183] Obtaining user information of the target user; wherein the user information includes user feature information and user sleep information;
[0184] The processor 801 is configured to execute:
[0185] Based on the user information and historical data sets of the target user, determine the similarity between the target user and each historical user, and filter the historical data sets according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within the target time period and historical health-related information of at least one user;
[0186] Determine a second recommendation data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommendation data set includes at least one set of health-related information to be recommended;
[0187] Determine the health-related information common to the first recommended data set and the second recommended data set as target recommended information;
[0188] Recommend target recommendation information to target users.
[0189] In some exemplary embodiments, the processor 801 is configured to execute:
[0190] Determine a first indication information set based on user characteristic information and user sleep information of the target user;
[0191] For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0192] In some exemplary embodiments, the user information of the target user further includes historical health-related information of the target user, and the processor 801 is configured to execute:
[0193] Determine a third indication information set based on user characteristic information, user sleep information, and historical health-related information of the target user;
[0194] For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
[0195] In some exemplary embodiments, the processor 801 is configured to execute:
[0196] If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each historical user corresponding to the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or
[0197] If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, a preset number of target recommendation information is screened from the target recommendation information according to the information of interest to the target user and recommended to the target user; or
[0198] If the target user has received recommendation information before, the weight of each target recommendation information is determined based on the target user's historical health-related information, and a preset number of target recommendation information is screened from the target recommendation information based on each weight and recommended to the target user; wherein the target user's historical health-related information is determined based on the recommendation information previously received.
[0199] In some exemplary implementations, the preset amount of target recommendation information screened out includes recommendation information corresponding to the target user in different time periods.
[0200] In some exemplary embodiments, if the health-related information is diet information, the processor 801 is configured to execute: determining the health-related information to be recommended by:
[0201] Constructing a first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients; wherein the sleep information includes basic sleep information and a sleep score determined according to the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time, and rapid eye movement duration;
[0202] Based on the first corresponding relationship, the second corresponding relationship, the corresponding relationship between food ingredients and food categories, and the individual foods included in each food category, a set of health-related information to be recommended is determined.
[0203] In some exemplary embodiments, if the health-related information is exercise information, the processor 801 is configured to determine the health-related information to be recommended in the following manner:
[0204] constructing a third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type;
[0205] Based on the third corresponding relationship, the fourth corresponding relationship, and the corresponding relationship between the exercise type and the exercise item, a set of health-related information to be recommended is determined.
[0206] An embodiment of the present invention also provides a computer storage medium, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned method for recommending health information based on user sleep.
[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0208] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0209] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0210] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0211] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for recommending health information based on user sleep, characterized in that: include: Acquire user information of the target user; wherein the user information includes user feature information and user sleep information; Based on the user information and historical data set of the target user, determine the similarity between the target user and each historical user, and filter the historical data set according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of the at least one user; Determine a second recommendation data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommendation data set includes at least one set of health-related information to be recommended; determining health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information; If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each corresponding historical user in the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, then filtering the preset number of target recommendation information from the target recommendation information according to the information of interest to the target user and recommending them to the target user; or If the target user has received recommendation information before, the weight of each target recommendation information is determined according to the historical health-related information of the target user, and a preset number of target recommendation information is screened from the target recommendation information according to each weight and recommended to the target user; wherein the historical health-related information of the target user is determined according to the recommendation information previously received; Among them, the preset number of target recommendation information screened out includes the recommendation information corresponding to the target user in different time periods; the recommendation information corresponding to different time periods includes today's recommendation information or daily recommendation information; wherein, today's recommendation information includes information recommended on the day when the user information of the target user is obtained, and today's recommendation information is used to improve sleep; the daily recommendation information includes recommendation information at other times after the day, and the daily recommendation information is used to provide daily dietary advice.
2. The method according to claim 1, characterized in that The determining, based on the user information of the target user and the historical data set, the similarity between the target user and each historical user includes: Determine a first indication information set based on the user characteristic information and the user sleep information of the target user; For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
3. The method according to claim 1, characterized in that The user information of the target user also includes the historical health-related information of the target user. Based on the user information of the target user and the historical data set, determining the similarity between the target user and each historical user includes: Determine a third indication information set based on the user characteristic information, user sleep information, and historical health-related information of the target user; For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
4. The method according to claim 1, characterized in that: If the health-related information is diet information, the health-related information to be recommended is determined in the following manner: Constructing a first correspondence between user characteristic information and food ingredients, and a second correspondence between sleep information and food ingredients; wherein the sleep information includes basic sleep information and a sleep score determined according to the basic sleep information; the basic sleep information includes at least one of deep sleep start time, deep sleep duration, light sleep start time, light sleep duration, rapid eye movement start time, and rapid eye movement duration; Based on the first corresponding relationship, the second corresponding relationship, the corresponding relationship between food ingredients and food categories, and the individual foods included in each food category, a set of health-related information to be recommended is determined.
5. The method according to any one of claims 1 to 4, characterized in that: If the health-related information is exercise information, the health-related information to be recommended is determined in the following manner: constructing a third correspondence between user characteristic information and exercise type, and a fourth correspondence between sleep information and exercise type; Based on the third corresponding relationship, the fourth corresponding relationship, and the corresponding relationship between exercise types and exercise items, a set of health-related information to be recommended is determined.
6. A device for recommending health information based on user sleep, characterized in that: It includes a processor and a data transmission unit, wherein: The data transmission unit is configured to perform: Acquire user information of the target user; wherein the user information includes user feature information and user sleep information; The processor is configured to perform: Based on the user information and historical data set of the target user, determine the similarity between the target user and each historical user, and filter the historical data set according to each similarity to determine a first recommended data set; wherein the historical data set includes user information of at least one historical user within a target time period and historical health-related information of the at least one user; Determine a second recommendation data set based on the user information of the target user and the correspondence between the health-related information to be recommended and the user information; wherein the second recommendation data set includes at least one set of health-related information to be recommended; determining health-related information common to the first recommendation data set and the second recommendation data set as target recommendation information; If the target user has not received recommendation information before, and the user characteristic information of the target user does not include the information of interest to the target user, then based on the similarity between each corresponding historical user in the target recommendation information and the target user, a preset number of target recommendation information is screened from the target recommendation information and recommended to the target user; or If the target user has not received recommendation information before, and the user characteristic information of the target user includes the information of interest to the target user, then filtering the preset number of target recommendation information from the target recommendation information according to the information of interest to the target user and recommending them to the target user; or If the target user has received recommendation information before, the weight of each target recommendation information is determined according to the historical health-related information of the target user, and a preset number of target recommendation information is screened from the target recommendation information according to each weight and recommended to the target user; wherein the historical health-related information of the target user is determined according to the recommendation information previously received; Among them, the preset number of target recommendation information screened out includes the recommendation information corresponding to the target user in different time periods; the recommendation information corresponding to different time periods includes today's recommendation information or daily recommendation information; wherein, today's recommendation information includes information recommended on the day when the user information of the target user is obtained, and today's recommendation information is used to improve sleep; the daily recommendation information includes recommendation information at other times after the day, and the daily recommendation information is used to provide daily dietary advice.
7. The device according to claim 6, characterized in that The processor is configured to perform: Determine a first indication information set based on the user characteristic information and the user sleep information of the target user; For each historical user, a second indication information set is determined based on the user feature information and user sleep information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the first indication information set and the second indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
8. The device according to claim 7, characterized in that The processor is configured to perform: Determine a third indication information set based on the user characteristic information, user sleep information, and historical health-related information of the target user; For each historical user, a fourth indication information set is determined based on the user feature information, user sleep information and historical health-related information of the historical user in the historical data set; the Jaccard distance between the target user and the historical user is determined according to the third indication information set and the fourth indication information set, and the Jaccard distance is determined as the similarity between the target user and the historical user.
