CN116364240B - Remote nutrition information processing method and system based on Internet - Google Patents
Remote nutrition information processing method and system based on Internet Download PDFInfo
- Publication number
- CN116364240B CN116364240B CN202310093769.1A CN202310093769A CN116364240B CN 116364240 B CN116364240 B CN 116364240B CN 202310093769 A CN202310093769 A CN 202310093769A CN 116364240 B CN116364240 B CN 116364240B
- Authority
- CN
- China
- Prior art keywords
- user
- personal information
- recommendation
- processing server
- recommendation model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/60—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- Primary Health Care (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Epidemiology (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Nutrition Science (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
本发明涉及一种基于互联网的远程营养信息处理方法及系统,该系统包括通过互联网相连接的用户客户端、医生客户端和处理服务器,该处理服务器包括用户数据库、方案数据库、基础推荐模型和快速推荐模型。处理服务器根据用户客户端上传的个人信息,选择相应的推荐模型,生成推荐的营养方案,可以为互联网上的大规模用户提供快速的服务响应。
The invention relates to an Internet-based remote nutritional information processing method and system. The system includes a user client, a doctor client and a processing server connected through the Internet. The processing server includes a user database, a plan database, a basic recommendation model and a rapid Recommended model. The processing server selects the corresponding recommendation model and generates recommended nutrition plans based on the personal information uploaded by the user client, which can provide fast service response for large-scale users on the Internet.
Description
【技术领域】【Technical field】
本发明属于远程医疗领域,尤其涉及一种基于互联网的远程营养信息处理方法及系统。The invention belongs to the field of telemedicine, and in particular relates to an Internet-based remote nutritional information processing method and system.
【背景技术】【Background technique】
医院营养科医生会根据患者的个人情况,例如身高、体重、膳食摄入情况、当前患病情况、既往病史等等,对患者进行营养评估,并根据评估情况进行个性化的营养指导,提供相应的营养支持方案。The hospital nutritionist will conduct a nutritional assessment on the patient based on the patient's personal situation, such as height, weight, dietary intake, current illness, past medical history, etc., and provide personalized nutrition guidance based on the assessment, and provide appropriate nutritional support program.
随着互联网的兴起,目前可以通过互联网给患者进行远程诊疗。依托于互联网的远程医疗,营养科医生不仅可以给病人,也可以给普通用户提供个性化的营养指导。但是,由于互联网用户众多,对营养指导的需求量很大,而参与远程营养指导的医生数量较少,难以满足互联网的大规模需求。为此,目前出现了一些通过计算机分析和推荐营养指导方案的方法,即由计算机运行一个推荐模型分析用户提供的个人信息,根据所述个人信息推荐一个营养指导方案,然后再由医生对推荐的方案进行审核和调整,从而可以减少医生的工作量,使医生可以服务更多的用户With the rise of the Internet, patients can now be diagnosed and treated remotely through the Internet. Relying on Internet telemedicine, nutritionists can provide personalized nutrition guidance not only to patients, but also to ordinary users. However, due to the large number of Internet users, there is a huge demand for nutritional guidance, and the number of doctors participating in remote nutritional guidance is small, making it difficult to meet the large-scale demand for the Internet. To this end, there are currently some methods of analyzing and recommending nutritional guidance programs through computers. That is, the computer runs a recommendation model to analyze the personal information provided by the user, recommends a nutritional guidance program based on the personal information, and then the doctor analyzes the recommended nutrition guidance program. The plan can be reviewed and adjusted, thereby reducing the workload of doctors and allowing them to serve more users.
但是,现有的推荐模型如果需要进行准确推荐,其计算时间通常比较长,需要让用户等待较长时间,用户体验较差。However, if the existing recommendation model needs to make accurate recommendations, its calculation time is usually relatively long, requiring users to wait for a long time, and the user experience is poor.
【发明内容】[Content of the invention]
为了解决现有技术中的上述问题,本发明提供了一种基于互联网的远程营养信息处理方法及系统,能够根据用户个人信息快速推荐营养指导方案。In order to solve the above-mentioned problems in the prior art, the present invention provides an Internet-based remote nutrition information processing method and system, which can quickly recommend nutrition guidance programs based on the user's personal information.
本发明采用的技术方案具体如下:The technical solutions adopted by the present invention are as follows:
一种基于互联网的远程营养信息处理方法,包括以下步骤:An Internet-based remote nutrition information processing method includes the following steps:
步骤1:用户使用用户客户端,登录处理服务器,并上传个人信息;Step 1: The user uses the user client to log in to the processing server and upload personal information;
步骤2:所述处理服务器将所述个人信息转换相应的个人信息向量Vnow;Step 2: The processing server converts the personal information into the corresponding personal information vector V now ;
步骤3:所述处理服务器判断以前是否曾经为该用户推荐过营养指导方案;Step 3: The processing server determines whether a nutritional guidance program has been recommended to the user before;
步骤4:如果所述处理服务器以前未给该用户推荐过营养指导方案,则所述处理服务器将所述个人信息向量Vnow输入基础推荐模型,所述基础推荐模型根据输入的个人信息向量输出相应的推荐方案;然后跳转到步骤7;Step 4: If the processing server has not recommended a nutritional guidance program to the user before, the processing server inputs the personal information vector V now into the basic recommendation model, and the basic recommendation model outputs the corresponding response based on the input personal information vector. recommended solution; then jump to step 7;
步骤5:如果所述处理服务器曾经给该用户推荐过营养指导方案,则所述处理服务器从用户数据库中查询该用户的上一次推荐记录,从该推荐记录中获取相应的个人信息向量Vlast和推荐方案标识符ProjectIDlast;Step 5: If the processing server has recommended a nutritional guidance program to the user, the processing server queries the user's last recommendation record from the user database, and obtains the corresponding personal information vectors V last and V from the recommendation record. Recommended solution identifier ProjectID last ;
步骤6:所述处理服务器计算当前个人信息向量Vnow和上一次的个人信息向量Vlast的相似度;如果所述相似度小于预定阈值,则所述处理服务器将所述个人信息向量Vnow输入基础推荐模型以获取相应推荐方案,如果所述相似度大于或等于预定阈值,则所述处理服务器将所述个人信息向量Vnow和上一次的推荐方案标识符ProjectIDlast输入快速推荐模型以获取相应的推荐方案;Step 6: The processing server calculates the similarity between the current personal information vector V now and the last personal information vector V last ; if the similarity is less than a predetermined threshold, the processing server inputs the personal information vector V now The basic recommendation model is used to obtain the corresponding recommendation solution. If the similarity is greater than or equal to the predetermined threshold, the processing server inputs the personal information vector V now and the last recommendation solution identifier ProjectID last into the fast recommendation model to obtain the corresponding recommendation solution. recommended solutions;
步骤7:所述处理服务器将所述个人信息及相应的推荐方案发送给医生客户端,医生在医生客户端上对该推荐方案进行审核和调整,生成最终方案。Step 7: The processing server sends the personal information and the corresponding recommended plan to the doctor client, and the doctor reviews and adjusts the recommended plan on the doctor client to generate the final plan.
进一步地,所述用户数据库用于存储用户的注册信息,以及该用户的推荐记录;所述推荐记录包括推荐时间、用户的个人信息向量,以及处理服务器根据该个人信息向量得到的推荐方案标识符。Further, the user database is used to store the user's registration information and the user's recommendation record; the recommendation record includes the recommendation time, the user's personal information vector, and the recommendation solution identifier obtained by the processing server based on the personal information vector. .
进一步地,所述方案数据库存储多个事先设计的营养指导方案,每个方案事先都具有至少一个对应的个人信息向量,将方案数据库中的每个方案的标识符和其对应的至少一个个人信息向量作为训练样本,对所述基础推荐模型进行训练;将个人信息向量输入训练好的基础推荐模型,以输出相应推荐方案的标识符。Further, the program database stores multiple pre-designed nutrition guidance programs, each program has at least one corresponding personal information vector in advance, and the identifier of each program in the program database and its corresponding at least one personal information are The vector is used as a training sample to train the basic recommendation model; the personal information vector is input into the trained basic recommendation model to output the identifier of the corresponding recommendation solution.
进一步地,所述快速推荐模型是一个预先训练好的推荐模型,其输入用户的当前个人信息向量和该用户的上一次推荐方案的标识符,输出当前适合于该用户的推荐方案标识符。Further, the fast recommendation model is a pre-trained recommendation model, which inputs the user's current personal information vector and the identifier of the user's last recommendation solution, and outputs the identifier of the recommendation solution currently suitable for the user.
进一步地,基础推荐模型和快速推荐模型都采用深度神经网络模型,快速推荐模型的神经网络层数少于基础推荐模型的层数。Furthermore, both the basic recommendation model and the fast recommendation model use deep neural network models, and the number of neural network layers of the fast recommendation model is less than the number of layers of the basic recommendation model.
进一步地,通过基础推荐模型的计算结果获取快速推荐模型的训练样本,包括:获取两个相似度大于或等于预定阈值的个人信息向量V1和V2,然后通过基础推荐模型获取V1对应的推荐方案标识符ID1,以及V2对应的推荐方案标识符ID2,将(V1,ID2,标签ID1)和(V2,ID1,标签ID2)作为快速推荐模型的训练样本。Further, obtaining the training samples of the fast recommendation model through the calculation results of the basic recommendation model includes: obtaining two personal information vectors V 1 and V 2 whose similarity is greater than or equal to a predetermined threshold, and then obtaining the corresponding vector of V 1 through the basic recommendation model. Recommendation scheme identifier ID 1 , and recommendation scheme identifier ID 2 corresponding to V 2 , use (V 1 , ID 2 , tag ID 1 ) and (V 2 , ID 1 , tag ID 2 ) as training samples for the fast recommendation model .
进一步地,所述处理服务器将最终方案和相应的个人信息向量记录到方案数据库中,以用于再次训练基础推荐模型。Further, the processing server records the final solution and the corresponding personal information vector into the solution database for retraining the basic recommendation model.
进一步地,所述医生客户端将最终方案返回给处理服务器,处理服务器再将最终方案返回给用户客户端。Further, the doctor client returns the final solution to the processing server, and the processing server returns the final solution to the user client.
本发明还提供了一种基于互联网的远程营养信息处理系统,该系统用于实现上述方法,该系统包括通过互联网相连接的用户客户端、医生客户端和处理服务器,所述处理服务器包括用户数据库、方案数据库、基础推荐模型和快速推荐模型,其中所述用户数据库用于存储用户的注册信息,以及该用户的推荐记录;所述推荐记录包括推荐时间、用户的个人信息向量,以及处理服务器根据该个人信息向量得到的推荐方案标识符;所述方案数据库存储多个事先设计的营养指导方案,每个方案事先都具有至少一个对应的个人信息向量,每个方案具有相应的唯一标识符;所述基础推荐模型输入个人信息向量,输出相应推荐方案的标识符;所述快速推荐模型是一个预先训练好的推荐模型,其输入用户的当前个人信息向量和该用户的上一次推荐方案的标识符,输出当前适合于该用户的推荐方案标识符。The invention also provides an Internet-based remote nutrition information processing system, which is used to implement the above method. The system includes a user client, a doctor client and a processing server connected through the Internet. The processing server includes a user database. , solution database, basic recommendation model and fast recommendation model, wherein the user database is used to store the user's registration information and the user's recommendation record; the recommendation record includes the recommendation time, the user's personal information vector, and the processing server based on The recommended program identifier obtained from the personal information vector; the program database stores multiple pre-designed nutrition guidance programs, each program has at least one corresponding personal information vector in advance, and each program has a corresponding unique identifier; so The basic recommendation model inputs a personal information vector and outputs the identifier of the corresponding recommendation plan; the fast recommendation model is a pre-trained recommendation model that inputs the user's current personal information vector and the identifier of the user's last recommendation plan. , output the recommended solution identifier currently suitable for the user.
进一步地,所述用户客户端是个人计算机、智能手机或者平板电脑,所述医生客户端是个人计算机、智能手机或者平板电脑,所述处理服务器是单个服务器或者服务器集群。Further, the user client is a personal computer, a smart phone or a tablet computer, the doctor client is a personal computer, a smart phone or a tablet computer, and the processing server is a single server or a server cluster.
本发明的有益效果是:在互联网上为普通用户提供营养指导方案,在营养科医生数量较少的情况下,本发明也可以为互联网上的大规模用户提供较快的服务响应。The beneficial effects of the present invention are: providing nutritional guidance programs for ordinary users on the Internet. When the number of nutritionists is small, the present invention can also provide faster service response for large-scale users on the Internet.
【附图说明】[Picture description]
此处所说明的附图是用来提供对本发明的进一步理解,构成本申请的一部分,但并不构成对本发明的不当限定,在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of this application, but do not constitute an improper limitation of the present invention. In the accompanying drawings:
图1是本发明远程营养信息处理系统的基本结构图。Figure 1 is a basic structural diagram of the remote nutrition information processing system of the present invention.
【具体实施方式】【Detailed ways】
下面将结合附图以及具体实施例来详细说明本发明,其中的示意性实施例以及说明仅用来解释本发明,但并不作为对本发明的限定。The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The illustrative embodiments and descriptions are only used to explain the present invention, but are not intended to limit the present invention.
参见附图1,其示出了本申请的远程营养信息处理系统的基本结构,所述系统包括用户客户端、处理服务器和医生客户端。各个客户端和服务器之间通过互联网相互连接和通信。Referring to Figure 1, it shows the basic structure of the remote nutritional information processing system of the present application. The system includes a user client, a processing server and a doctor client. Various clients and servers are connected and communicate with each other through the Internet.
其中,用户客户端是互联网用户所使用的客户端,用户可以使用其用户客户端登录系统中的处理服务器,与处理服务器进行通信,包括填写和上传个人信息,以及接收处理服务器返回的营养指导方案。图1中虽然只示出了一个用户客户端,但是本领域技术人员可以理解,系统中可以包括多个用户使用的多个不同的用户客户端。具体的用户客户端可以是个人计算机、智能手机、平板电脑等等。Among them, the user client is a client used by Internet users. Users can use their user clients to log in to the processing server in the system, communicate with the processing server, including filling in and uploading personal information, and receiving nutritional guidance plans returned by the processing server. . Although only one user client is shown in Figure 1, those skilled in the art can understand that the system may include multiple different user clients used by multiple users. The specific user client can be a personal computer, a smartphone, a tablet, etc.
处理服务器是本申请的核心处理设备,其可以接收登录用户上传的个人信息,通过对个人信息的分析,得到推荐使用的营养指导方案,并将推荐的营养指导方案(以下简称推荐方案)通知医生客户端,接收医生客户端返回的最终的营养指导方案(以下简称最终方案),将最终方案返回给用户客户端。其中,处理服务器还包括用户数据库、方案数据库、基础推荐模型和快速推荐模型,所述用户数据库、方案数据库、基础推荐模型和快速推荐模型的具体作用在后面说明。这里需要说明的是,所述模型可以是软件编程实现的推荐模型,也可以是硬件实现的推荐模型,或者是软硬件结合实现的推荐模型,本发明对此不作限制。在具体实现中,处理服务器可以是单个服务器,也可以是一个服务器集群,本发明对此不作限制。The processing server is the core processing device of this application. It can receive personal information uploaded by logged-in users, obtain the recommended nutritional guidance program through analysis of the personal information, and notify the doctor of the recommended nutritional guidance program (hereinafter referred to as the recommended program). The client receives the final nutritional guidance plan (hereinafter referred to as the final plan) returned by the doctor client, and returns the final plan to the user client. The processing server also includes a user database, a plan database, a basic recommendation model, and a fast recommendation model. The specific functions of the user database, plan database, basic recommendation model, and fast recommendation model will be explained later. It should be noted here that the model may be a recommendation model implemented by software programming, a recommendation model implemented by hardware, or a recommendation model implemented by a combination of software and hardware. The present invention does not limit this. In specific implementation, the processing server may be a single server or a server cluster, which is not limited by the present invention.
医生客户端是营养科医生所使用的客户端,医生可以使用医生客户端登录上述处理服务器,接收处理服务器提交的个人信息和推荐方案,并将医生审核和调整后的最终方案返回给处理服务器。图1中虽然只示出了一个医生客户端,但是本领域技术人员可以理解,系统中可以包括多个医生使用的多个不同的医生客户端。具体的医生客户端可以是个人计算机、智能手机、平板电脑等等。The doctor client is a client used by nutritionists. Doctors can use the doctor client to log in to the above-mentioned processing server, receive personal information and recommended plans submitted by the processing server, and return the final plan reviewed and adjusted by the doctor to the processing server. Although only one doctor client is shown in Figure 1, those skilled in the art can understand that the system may include multiple different doctor clients used by multiple doctors. The specific doctor client can be a personal computer, a smartphone, a tablet, etc.
基于上述系统的基本结构,下面详细说明本申请的远程营养信息处理方法。Based on the basic structure of the above system, the remote nutrition information processing method of the present application will be described in detail below.
步骤1:用户使用用户客户端,登录处理服务器,并上传个人信息。Step 1: The user uses the user client, logs in to the processing server, and uploads personal information.
具体的,用户需要先在系统中注册,然后使用注册信息登录处理服务器,例如,用户可以使用注册的账户和密码登录处理服务器。注册和登录都是本领域的现有技术,此处不再赘述。Specifically, the user needs to register in the system first, and then use the registration information to log in to the processing server. For example, the user can use the registered account and password to log in to the processing server. Registration and login are existing technologies in this field and will not be described again here.
在用户登录处理服务器后,如果需要获取自己的营养指导方案,则首先需要使用用户客户端填写其个人信息。所述个人信息的具体项目可以由系统事先制定,例如性别、出生年月、身高、体重、血压、膳食喜好、不良嗜好、既往病史、家族病史等等。优选的,用户客户端采集个人信息可以采用调查问卷的形式,调查问卷由营养科医生或系统管理员事先制定,用户在用户客户端中填写该调查问卷,回答调查问卷中的每个题目(可以是选择题或者填空题),从而用户客户端可以根据用户填写的答案获得用户的个人信息。在用户完成个人信息的填写后,用户客户端将所述个人信息提交给所述处理服务器。After the user logs in to the processing server, if he or she needs to obtain his or her own nutritional guidance plan, he or she must first fill in his or her personal information using the user client. The specific items of the personal information can be determined in advance by the system, such as gender, date of birth, height, weight, blood pressure, dietary preferences, bad habits, past medical history, family medical history, etc. Preferably, the user client can collect personal information in the form of a questionnaire. The questionnaire is formulated in advance by a nutritionist or system administrator. The user fills out the questionnaire in the user client and answers each question in the questionnaire (can It is a multiple-choice question or a fill-in-the-blank question), so that the user client can obtain the user's personal information based on the answers filled in by the user. After the user completes filling in the personal information, the user client submits the personal information to the processing server.
步骤2:所述处理服务器将所述个人信息转换相应的个人信息向量Vnow。Step 2: The processing server converts the personal information into the corresponding personal information vector V now .
在推荐模型进行数据分析之前,需要对个人信息进行相应的处理,转换成对应的向量数据。对于有固定选项的数据,例如性别数据,可以直接转换成指定的数值作为向量数值,例如将“男性”转换成1,将“女性”转换成0。对于有相应数值的数据,可以直接使用其数值,例如根据出生年月计算用户当前年龄,作为向量数值。对于文本形式的个人数据,需要进行数据清洗、去除无效数据后,通过预定方法将文本或关键词转换成向量数值,本领域中已有多种现有的方法可以将文本转换成向量,例如Word2vec等,具体采用哪种方法本发明不作限制。如果上传的个人信息中缺少某项数据,则可以将其对应的向量数值设置为0。Before recommending the model for data analysis, personal information needs to be processed accordingly and converted into corresponding vector data. For data with fixed options, such as gender data, you can directly convert it to a specified value as a vector value, such as converting "male" to 1 and "female" to 0. For data with corresponding values, you can use the values directly. For example, calculate the user's current age based on the year and month of birth as a vector value. For personal data in the form of text, it is necessary to clean the data and remove invalid data, and then convert the text or keywords into vector values through a predetermined method. There are many existing methods in this field that can convert text into vectors, such as Word2vec etc., the present invention does not limit which method is specifically used. If a piece of data is missing from the uploaded personal information, its corresponding vector value can be set to 0.
总之,所述处理服务器在对个人信息进行处理后,可以将其转换为n维的个人信息向量Vnow=<P1,P2,……,Pn>。In short, after processing the personal information, the processing server can convert it into an n-dimensional personal information vector V now =<P 1 , P 2 ,..., P n >.
步骤3:所述处理服务器判断以前是否曾经为该用户推荐过营养指导方案。Step 3: The processing server determines whether a nutritional guidance program has been recommended to the user before.
具体的,如果该用户是首次使用本发明的系统请求营养指导,则处理服务器可以确定以前没有为该用户推荐过营养指导方案,当前是首次为该用户推荐营养指导方案。如果用户以前曾经使用本发明的系统获取过营养指导方案,则所述处理服务器的用户数据库中就会有相应的推荐记录,从而所述处理服务器可以确定曾经为该用户推荐过营养指导方案。Specifically, if the user requests nutritional guidance using the system of the present invention for the first time, the processing server may determine that no nutritional guidance program has been recommended for the user before, and that this is the first time that the nutritional guidance program is recommended for the user. If the user has used the system of the present invention to obtain a nutritional guidance program before, there will be a corresponding recommendation record in the user database of the processing server, so that the processing server can determine that a nutritional guidance program has been recommended for the user.
所述处理服务器的用户数据库用于存储该用户的注册信息,以及该用户的推荐记录。即每次用户通过所述处理服务器请求和获取营养指导方案时,用户数据库就会存储一条推荐记录,所述推荐记录包括当时用户上传的个人信息的个人信息向量,以及处理服务器当时推荐的营养指导方案的标识符(例如方案编号)。所述处理服务器通过查询用户数据库,就可以确定该用户是否是首次请求营养指导,以前是否为该用户推荐过营养指导方案。The user database of the processing server is used to store the user's registration information and the user's recommendation records. That is, every time a user requests and obtains a nutritional guidance plan through the processing server, the user database will store a recommendation record, and the recommendation record includes the personal information vector of the personal information uploaded by the user at that time, and the nutritional guidance recommended by the processing server at that time. The identifier of the scheme (e.g. scheme number). By querying the user database, the processing server can determine whether the user requests nutritional guidance for the first time and whether a nutritional guidance program has been recommended to the user before.
步骤4:如果所述处理服务器以前未给该用户推荐过营养指导方案,则所述处理服务器将所述个人信息向量Vnow输入基础推荐模型,所述基础推荐模型根据输入的个人信息向量输出相应的推荐方案;然后跳转到步骤7。Step 4: If the processing server has not recommended a nutritional guidance program to the user before, the processing server inputs the personal information vector V now into the basic recommendation model, and the basic recommendation model outputs the corresponding response based on the input personal information vector. recommended solution; then jump to step 7.
具体的,处理服务器在判断以前未给该用户推荐过营养指导方案,即该用户是首次请求营养指导时,调用基础推荐模型完成营养指导方案的推荐。所述基础推荐模型是一个预先训练好的推荐模型,其输入用户的个人信息向量,输出适合于该用户的推荐方案。具体的推荐模型可以采用本领域中任意一种现有的推荐模型,本发明对此不作限制。优选的,基础推荐模型可以采用深度神经网络模型。Specifically, when the processing server determines that the user has not recommended a nutrition guidance program before, that is, when the user requests nutrition guidance for the first time, it calls the basic recommendation model to complete the recommendation of the nutrition guidance program. The basic recommendation model is a pre-trained recommendation model, which inputs the user's personal information vector and outputs a recommendation solution suitable for the user. The specific recommendation model can use any existing recommendation model in the field, and the present invention does not limit this. Preferably, the basic recommendation model can adopt a deep neural network model.
在具体实现中,营养科医生可以考虑不同的个人情况(即不同的个人信息向量),事先为每种个人情况设计相应的营养指导方案,从而得到多个营养指导方案,将所有事先设计的方案存储于处理服务器的方案数据库中,也就是说,方案数据库中的每个方案事先都具有至少一个对应的个人信息向量。每个方案可以具有其相应的唯一标识符,例如方案的唯一编号。因此,将方案数据库中的每个方案的标识符和其对应的至少一个个人信息向量作为训练样本,对所述基础推荐模型进行训练,得到训练好的基础推荐模型。这样,将个人信息向量输入所述训练好的基础推荐模型,该模型就可以输出推荐方案的标识符,处理服务器根据该标识符,在方案数据库中查询获得具体的营养指导方案。In a specific implementation, the nutritionist can consider different personal situations (i.e., different personal information vectors) and design corresponding nutritional guidance programs for each personal situation in advance, thereby obtaining multiple nutritional guidance programs and combining all previously designed programs. Stored in the solution database of the processing server, that is to say, each solution in the solution database has at least one corresponding personal information vector in advance. Each scenario can have its corresponding unique identifier, such as a unique number for the scenario. Therefore, the identifier of each plan in the plan database and its corresponding at least one personal information vector are used as training samples, and the basic recommendation model is trained to obtain a trained basic recommendation model. In this way, the personal information vector is input into the trained basic recommendation model, and the model can output the identifier of the recommended program, and the processing server queries the program database to obtain the specific nutritional guidance program based on the identifier.
步骤5:如果所述处理服务器曾经给该用户推荐过营养指导方案,则所述处理服务器从用户数据库中查询该用户的上一次推荐记录,从该推荐记录中获取相应的个人信息向量Vlast和推荐方案标识符ProjectIDlast。Step 5: If the processing server has recommended a nutritional guidance program to the user, the processing server queries the user's last recommendation record from the user database, and obtains the corresponding personal information vectors V last and V from the recommendation record. Recommended project identifier ProjectID last .
如前所述,用户数据库中存储了用户每一次的推荐记录,包括该推荐记录的推荐时间、根据用户当时上传的个人信息计算得到的个人信息向量,以及处理服务器根据该个人信息向量得到的推荐方案标识符;还可以包括医生对推荐方案进行审核和调整后得到的最终方案。因此,处理服务器可以从用户数据库中查询并获取用户最后一次的推荐记录,并可以从该推荐记录中获取用户上一次的个人信息向量,以及上一次的推荐方案标识符。As mentioned above, the user database stores each recommendation record of the user, including the recommendation time of the recommendation record, the personal information vector calculated based on the personal information uploaded by the user at that time, and the recommendation obtained by the processing server based on the personal information vector. Protocol identifier; may also include the final protocol resulting from the physician's review and adjustment of the recommended protocol. Therefore, the processing server can query and obtain the user's last recommendation record from the user database, and can obtain the user's last personal information vector and the last recommendation plan identifier from the recommendation record.
步骤6:所述处理服务器计算当前个人信息向量Vnow和上一次的个人信息向量Vlast的相似度;如果所述相似度小于预定阈值,则所述处理服务器将所述个人信息向量Vnow输入基础推荐模型以获取相应推荐方案,如果所述相似度大于或等于预定阈值,则所述处理服务器将所述个人信息向量Vnow和上一次的推荐方案标识符ProjectIDlast输入快速推荐模型以获取相应的推荐方案。Step 6: The processing server calculates the similarity between the current personal information vector V now and the last personal information vector V last ; if the similarity is less than a predetermined threshold, the processing server inputs the personal information vector V now The basic recommendation model is used to obtain the corresponding recommendation solution. If the similarity is greater than or equal to the predetermined threshold, the processing server inputs the personal information vector V now and the last recommendation solution identifier ProjectID last into the fast recommendation model to obtain the corresponding recommendation solution. recommended solution.
所述处理服务器根据Vnow和Vlast的相似度,选择使用基本推荐模型还是快速推荐模型。也就是说,如果个人信息变化较大,原有的推荐方案的可参考性不大,需要重新使用基本推荐模型进行推荐,如果个人信息与上次相比变化不大,则原有的推荐方案的可参考性较大,甚至推荐方案可能不变,此时就可以使用快速推荐模型进行推荐。在实际使用中,很多时候个人信息与上次相比变化都不会太大,可能仅仅是年龄、体重等项目发生变化,因此可以应用快速推荐模型,快速推荐模型基于上一次的推荐方案进行快速推荐,提高系统的整体运行效率。The processing server selects whether to use the basic recommendation model or the fast recommendation model based on the similarity between V now and V last . That is to say, if the personal information changes significantly, the original recommendation plan is of little reference, and the basic recommendation model needs to be reused for recommendation. If the personal information does not change much compared to the last time, the original recommendation plan The reference is greater, and the recommended solution may even remain unchanged. In this case, the fast recommendation model can be used for recommendation. In actual use, in many cases personal information does not change much compared to the last time. It may only be age, weight and other items that have changed. Therefore, a fast recommendation model can be applied. The fast recommendation model makes a quick recommendation based on the last recommendation plan. Recommended to improve the overall operating efficiency of the system.
所述相似度可以采用现有的任意一种相似度计算方法,例如可以采用余弦相似度作为两个向量之间的相似度,本发明对具体的相似度算法不作限制。The similarity can be calculated using any existing similarity calculation method. For example, cosine similarity can be used as the similarity between two vectors. The present invention does not limit the specific similarity algorithm.
所述快速推荐模型是一个预先训练好的推荐模型,其输入用户的当前个人信息向量和上一次推荐方案的标识符,输出当前适合于该用户的推荐方案标识符。The fast recommendation model is a pre-trained recommendation model, which inputs the user's current personal information vector and the identifier of the last recommendation plan, and outputs the current recommendation plan identifier suitable for the user.
与基础推荐模型类似,所述快速推荐模型也可以采用本领域中任意一种现有的推荐模型,本发明对此不作限制。但是快速推荐模型的计算效率应当比基础推荐模型有比较大的提高。举例来说,在本发明的一个优选实施例中,基础推荐模型和快速推荐模型都采用深度神经网络模型,但是快速推荐模型的层数少于基础推荐模型的层数,例如,基础推荐模型可以有n个隐藏层,而快速推荐模型仅有n/2个隐藏层,这样快速推荐模型的计算规模比基础推荐模型小,计算效率高。Similar to the basic recommendation model, the fast recommendation model can also adopt any existing recommendation model in the field, and the present invention is not limited to this. However, the computational efficiency of the fast recommendation model should be greatly improved compared to the basic recommendation model. For example, in a preferred embodiment of the present invention, both the basic recommendation model and the fast recommendation model adopt a deep neural network model, but the number of layers of the fast recommendation model is less than the number of layers of the basic recommendation model. For example, the basic recommendation model can There are n hidden layers, while the fast recommendation model only has n/2 hidden layers. In this way, the calculation scale of the fast recommendation model is smaller than the basic recommendation model and the calculation efficiency is high.
快速推荐模型的训练样本可以通过基础推荐模型的计算结果获取。例如,获取两个相似度大于等于预定阈值的个人信息向量V1和V2,然后通过基础推荐模型获取V1对应的推荐方案标识符ID1,以及V2对应的推荐方案标识符ID2。则(V1,ID2,标签ID1)和(V2,ID1,标签ID2)都可以作为快速推荐模型的训练样本。The training samples of the fast recommendation model can be obtained from the calculation results of the basic recommendation model. For example, obtain two personal information vectors V 1 and V 2 whose similarity is greater than or equal to a predetermined threshold, and then obtain the recommendation solution identifier ID 1 corresponding to V 1 and the recommendation solution identifier ID 2 corresponding to V 2 through the basic recommendation model. Then (V 1 , ID 2 , tag ID 1 ) and (V 2 , ID 1 , tag ID 2 ) can both be used as training samples for the fast recommendation model.
虽然快速推荐模型比基础推荐模型要相对简化,但是由于快速推荐模型利用了基础推荐模型的计算结果,因此,通过训练的快速推荐模型的准确性、精确性和召回率可以仅比基础推荐模型略有下降,但计算速度有较大提高,整体而言有利于系统的推广使用。Although the fast recommendation model is relatively simpler than the basic recommendation model, because the fast recommendation model uses the calculation results of the basic recommendation model, the accuracy, precision and recall of the trained fast recommendation model can only be slightly higher than that of the basic recommendation model. There has been a decrease, but the calculation speed has been greatly improved, which is generally conducive to the promotion and use of the system.
步骤7:所述处理服务器将所述个人信息及相应的推荐方案发送给医生客户端,医生在医生客户端上对该推荐方案进行审核和调整,生成最终方案。Step 7: The processing server sends the personal information and the corresponding recommended plan to the doctor client, and the doctor reviews and adjusts the recommended plan on the doctor client to generate the final plan.
对现有的机器推荐模型而言,其输出结果并不能保证完全正确,生成的推荐方案有较小概率可能出现差错,因此最终方案需要经过真实医生的审核。具体的,所述处理服务器在上述步骤4或步骤6确定了相应的推荐方案,即推荐方案标识符,通过查询方案数据库,处理服务器可以获取具体的推荐方案内容。然后处理服务器将具体的推荐方案内容,与用户的个人信息一起,发送给医生客户端,以供医生审核和调整。For existing machine recommendation models, the output results are not guaranteed to be completely correct. The generated recommendation plan has a small probability of errors, so the final plan needs to be reviewed by real doctors. Specifically, the processing server determines the corresponding recommendation solution, that is, the recommendation solution identifier, in the above-mentioned step 4 or step 6, and by querying the solution database, the processing server can obtain the specific recommendation solution content. The processing server then sends the specific recommendation plan content, together with the user's personal information, to the doctor client for review and adjustment by the doctor.
医生使用医生客户端审阅用户的当前个人信息,以及具体的推荐方案内容,如果需要的话,可以对其中的具体营养指导内容进行调整,形成最终方案。医生客户端将最终方案返回给处理服务器,处理服务器再将最终方案返回给用户客户端。处理服务器也可以将最终方案保存于用户数据库,以供后续查询。如果最终方案与推荐方案的具体内容不同,处理服务器也可以将最终方案和相应的个人信息向量记录到方案数据库中,以供后续再次训练推荐模型。The doctor uses the doctor client to review the user's current personal information and the specific recommended plan content. If necessary, the specific nutritional guidance content can be adjusted to form the final plan. The doctor client returns the final solution to the processing server, and the processing server returns the final solution to the user client. The processing server can also save the final solution in the user database for subsequent query. If the specific contents of the final solution and the recommended solution are different, the processing server can also record the final solution and the corresponding personal information vector into the solution database for subsequent training of the recommendation model.
通过本发明的上述方法步骤和系统,本发明可以在互联网上为普通用户提供营养指导方案,在营养科医生数量较少的情况下,本发明也可以为互联网上的大规模用户提供较快的服务响应。Through the above method steps and system of the present invention, the present invention can provide nutrition guidance programs for ordinary users on the Internet. When the number of nutritionists is small, the present invention can also provide faster nutrition guidance programs for large-scale users on the Internet. Service response.
以上所述仅是本发明的较佳实施方式,故凡依本发明专利申请范围所述的构造、特征及原理所做的等效变化或修饰,均包括于本发明专利申请范围内。The above are only preferred embodiments of the present invention. Therefore, any equivalent changes or modifications based on the structures, features and principles described in the patent application scope of the present invention are included in the patent application scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310093769.1A CN116364240B (en) | 2023-02-02 | 2023-02-02 | Remote nutrition information processing method and system based on Internet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310093769.1A CN116364240B (en) | 2023-02-02 | 2023-02-02 | Remote nutrition information processing method and system based on Internet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116364240A CN116364240A (en) | 2023-06-30 |
CN116364240B true CN116364240B (en) | 2024-01-26 |
Family
ID=86938526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310093769.1A Active CN116364240B (en) | 2023-02-02 | 2023-02-02 | Remote nutrition information processing method and system based on Internet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116364240B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106971069A (en) * | 2017-03-20 | 2017-07-21 | 云南火地科技有限公司 | A kind of intelligent recipe recommendation system for nutrient health |
CN111191020A (en) * | 2019-12-27 | 2020-05-22 | 江苏省人民医院(南京医科大学第一附属医院) | Prescription recommendation method and system based on machine learning and knowledge graph |
CN112242187A (en) * | 2020-10-26 | 2021-01-19 | 平安科技(深圳)有限公司 | Medical scheme recommendation system and method based on knowledge graph representation learning |
CN113378049A (en) * | 2021-06-10 | 2021-09-10 | 平安科技(深圳)有限公司 | Training method and device of information recommendation model, electronic equipment and storage medium |
CN114780837A (en) * | 2022-04-08 | 2022-07-22 | 重庆大学 | Intelligent personalized life style recommendation system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8996530B2 (en) * | 2012-04-27 | 2015-03-31 | Yahoo! Inc. | User modeling for personalized generalized content recommendations |
-
2023
- 2023-02-02 CN CN202310093769.1A patent/CN116364240B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106971069A (en) * | 2017-03-20 | 2017-07-21 | 云南火地科技有限公司 | A kind of intelligent recipe recommendation system for nutrient health |
CN111191020A (en) * | 2019-12-27 | 2020-05-22 | 江苏省人民医院(南京医科大学第一附属医院) | Prescription recommendation method and system based on machine learning and knowledge graph |
CN112242187A (en) * | 2020-10-26 | 2021-01-19 | 平安科技(深圳)有限公司 | Medical scheme recommendation system and method based on knowledge graph representation learning |
CN113378049A (en) * | 2021-06-10 | 2021-09-10 | 平安科技(深圳)有限公司 | Training method and device of information recommendation model, electronic equipment and storage medium |
CN114780837A (en) * | 2022-04-08 | 2022-07-22 | 重庆大学 | Intelligent personalized life style recommendation system |
Non-Patent Citations (1)
Title |
---|
基于营养饮食推荐系统研究;刘兴姿;《中国优秀硕士学位论文全文数据库 医药卫生科技辑》(第02期);E054-77 * |
Also Published As
Publication number | Publication date |
---|---|
CN116364240A (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111091010B (en) | Similarity determination, network training, search method and device and storage medium | |
US20140195255A1 (en) | System And Method For Assessment Of Patient Health Using Patient Generated Data | |
WO2023029506A1 (en) | Illness state analysis method and apparatus, electronic device, and storage medium | |
WO2022267678A1 (en) | Video consultation method and apparatus, device and storage medium | |
US12176096B2 (en) | Image analysis and insight generation | |
US12087442B2 (en) | Methods and systems for confirming an advisory interaction with an artificial intelligence platform | |
US20180151254A1 (en) | High-speed similar case search method and device through reduction of large scale multi-dimensional time series health data to multiple dimensions | |
WO2023178978A1 (en) | Prescription review method and apparatus based on artificial intelligence, and device and medium | |
CN114005509B (en) | Treatment scheme recommendation system, method, device and storage medium | |
CN118645214A (en) | A nutrition plan recommendation method and system based on data fusion and knowledge graph | |
US20250253022A1 (en) | Systems and methods for regulating provision of messages with content from disparate sources based on risk and feedback data | |
CN120183662A (en) | A method, system, electronic device and storage medium for generating health management suggestions | |
JP7609387B1 (en) | Information processing device, method, program and system | |
CN116364240B (en) | Remote nutrition information processing method and system based on Internet | |
CN114743647A (en) | Medical data processing method, device, equipment and storage medium | |
US20210183515A1 (en) | Methods and systems for confirming an advisory interaction with an artificial intelligence platform | |
CN112035567A (en) | Data processing method and device and computer readable storage medium | |
CN113988214B (en) | Similar user recommending method and device based on voice recognition result | |
CN110176311A (en) | A kind of automatic medical proposal recommending method and system based on confrontation neural network | |
CN112037934A (en) | Intelligent health examination system based on mobile device and learning method | |
CN114520831B (en) | Prescription pushing method, device, terminal and storage medium | |
US20250246290A1 (en) | Networked responsive personal guidance system for known conditions | |
CN109242109B (en) | Deep model management method and server | |
CN115510323A (en) | Medical information recommendation method, device, electronic device and readable medium | |
CN120221131A (en) | Online consultation method and device based on 5G message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |