A sentiment analysis system based on drug purchasing path

By designing an emotion analysis system on the e-commerce platform, combining drug information and user interaction data, calculating user emotions and recommending drugs, the problem of insufficient combination of drug emotions when users purchase drugs is solved, the user experience and doctor-patient interaction are improved, and the Purchase decision tree and user stickiness.

CN114328824BActive Publication Date: 2024-11-291DRUG TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111510970.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-11-29
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

On e-commerce platforms, it is difficult for users to effectively express and receive emotional information about drugs when purchasing drugs, resulting in a decrease in user experience and insufficient combination of drug purchase paths and drug emotions, which affects user experience and drug purchase decisions.

Method used

Design a sentiment analysis system based on the path of drug purchase, and calculate user sentiment data based on drug database, vector construction unit, training unit, generation unit, data correction unit and recommendation unit, combining drug information and user interaction data, and calculate user sentiment data based on drugs Recommend drugs with users' emotions, and give priority to providing consultation services to improve user experience.

Benefits of technology

Realize the objective quantification of drug emotional data and the calculation of user emotional portraits, enhance the user's decision tree for purchasing drugs, improve user experience and doctor-patient interaction, solve the problem of low coupling of doctor-patients online, and increase the user's favorability and stickiness. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328824B_ABST
    Figure CN114328824B_ABST
Patent Text Reader

Abstract

The present invention discloses a sentiment analysis system based on a drug purchase path, which belongs to the field of medicine, and includes: a drug database, a vector construction unit, a training unit, a first generation unit, a data correction unit, and a recommendation unit. The beneficial effects of the present invention are: by objectively quantifying the expression of emotions of drugs according to drug information to obtain the emotion data corresponding to the drug itself, and then combining the drug purchase path of drug purchase users and the user characterization feedback value fed back by doctors after consultation to quantify the user emotion data, and then infer the user emotion portrait, and then dig deep into the user's purchase intention, increase the user's drug purchase decision tree, and enrich the drug purchase dynamic line; give priority to recommending doctors for consultation, increase the interaction between doctors and users, and obtain feedback from the communication between doctors and users, fully understand users, let users buy drugs with peace of mind, rest assured to use drugs, solve the problem of low coupling between online doctors and patients, increase user favorability, and enhance user stickiness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the medical field, and in particular to a sentiment analysis system based on a drug purchasing path. Background Art

[0002] In recent years, e-commerce has become increasingly active with the development of the Internet and information technology, and more and more consumers have begun to shop online. E-commerce has not only opened up new business profit channels, but also overturned the traditional sales model, giving both parties of the transaction more convenience and autonomy in terms of space and time. Among them, medicine, as a daily necessity, has also gradually entered the e-commerce field in recent years.

[0003] Drug purchasing websites contain a large number of drugs of many categories, which requires users to spend a lot of time and energy to screen out the drugs they need. Usually, personalized drug recommendations are made to users based on their browsing history and order data on the website. However, when users are in a bad mood and browse relatively low-quality drugs, the user experience will be reduced and customer flow will be reduced. Since the emotions of the drugs themselves are generally difficult to express clearly and the user emotions are disturbed by various factors, it is impossible to combine the user emotions with the emotions of the drugs themselves. Therefore, in response to the above problems, it is urgent to design a sentiment analysis system based on the drug purchasing path to meet the needs of actual use. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a sentiment analysis system based on drug purchasing path.

[0005] The technical problem solved by the present invention can be achieved by adopting the following technical solutions:

[0006] The present invention provides a sentiment analysis system based on drug purchase paths, comprising:

[0007] a drug database, the drug database being used to store drug information of different types of drugs;

[0008] a vector construction unit, connected to the drug database, for obtaining a multi-dimensional drug information vector of each drug according to the drug information in the drug database;

[0009] a training unit, connected to the vector construction unit, and configured to train all drugs in the drug database according to the drug information vector to obtain first emotion data corresponding to each drug;

[0010] a first generating unit, connected to the training unit, configured to obtain historical interaction data of the current drug purchasing user, and calculate and output second emotion data corresponding to the current drug purchasing user based on the historical interaction data and the first emotion data;

[0011] a data correction unit, connected to the first generation unit, for correcting the second emotion data according to the corresponding third emotion data obtained from the consultation record when the current drug purchasing user has a consultation record, obtaining fourth emotion data and outputting it as user emotion data, and outputting the second emotion data as user emotion data when the current drug purchasing user has no consultation record;

[0012] A recommendation unit is connected to the training unit and the data correction unit respectively, and is used to provide suggestions to the current drug purchasing user according to the first emotion data and the user emotion data.

[0013] Preferably, the training unit comprises:

[0014] An extraction module, used for extracting multiple types of drugs from the drug database and outputting them as drugs to be trained;

[0015] a marking module, connected to the extraction module, and used for marking the drugs to be trained to obtain the first emotion data corresponding to each of the drugs to be trained;

[0016] a training module, connected to the marking module and the vector construction unit, respectively, for obtaining a corresponding drug information vector according to the drug to be trained, and combining the drug information vector corresponding to the drug to be trained and the first emotion data of the drug to be trained to form training data for training a neural network model;

[0017] The traversal module is connected to the training module and is used to input all the drugs in the drug database into the trained neural network model to obtain the first emotion data corresponding to all the drugs.

[0018] Preferably, the historical interaction data includes drug prices corresponding to a plurality of drugs browsed by the current drug purchasing user on a drug purchasing website, drug categories corresponding to each drug, order transaction amounts, number of drug varieties in order transactions, and beacon behavior information generated when the drugs are associated, and the beacon behavior information is used to indicate a specific type of behavior of the current drug purchasing user in the historical interaction data on the drug purchasing website;

[0019] The first generating unit comprises:

[0020] a quantification module, configured to obtain, based on the historical interaction data and the first emotion data, a first emotion index corresponding to the change in the drug price, a second emotion index corresponding to the change in the order transaction amount, a third emotion index corresponding to the change in the number of drug varieties, a fourth emotion index corresponding to the change in the drug category, and a fifth emotion index corresponding to the beacon behavior information;

[0021] A calculation module is connected to the quantification module and is used to calculate the second emotion data according to the first emotion index, the second emotion index, the third emotion index, the fourth emotion index and the fifth emotion index.

[0022] Preferably, the quantization module comprises:

[0023] a first quantification submodule, configured to obtain a price sentiment quantification value according to a change trend of the drug price of the drug browsed twice adjacently in the historical interaction data, and obtain the first sentiment index according to all the price sentiment quantification values;

[0024] a second quantification submodule, configured to obtain a quantitative value of order sentiment according to the change trend of the transaction amount of the order between two adjacent times in the historical interaction data, and obtain the second sentiment index according to all the quantitative values ​​of the order sentiment;

[0025] A third quantification submodule, configured to quantify the variety sentiment quantification value according to the change trend of the quantity of the drug variety in two adjacent order transactions in the historical interaction data, and obtain the third sentiment index according to all the variety sentiment quantification values;

[0026] a fourth quantification submodule, configured to obtain a category emotion quantification value according to the change of the loss of the drug category corresponding to the drug browsed twice consecutively in the historical interaction data, and obtain the fourth emotion index according to all the category emotion quantification values;

[0027] A fifth quantification submodule is used to obtain the fifth emotion index based on the beacon behavior information with the deepest depth level among all the beacon behavior information generated when the drug is associated with the historical interaction data, and the first emotion data corresponding to the drug.

[0028] Preferably, the data correction unit comprises:

[0029] A first judgment module, used to judge whether the current drug purchasing user has a medical consultation record, and output a judgment result;

[0030] a data acquisition module, connected to the first judgment module, for acquiring the consultation record of the current drug purchasing user according to the judgment result, when the current drug purchasing user has a consultation record, and obtaining the user characteristic feedback value corresponding to the current drug purchasing user according to the consultation record and outputting it as the third emotion data;

[0031] A correction module is connected to the data acquisition module, and is used to determine the weight value corresponding to the user feature feedback value, and correct the second emotion data according to the user feature feedback value and the corresponding weight value to obtain the fourth emotion data.

[0032] Preferably, the consultation record includes multiple types of information including voice information, picture information, text information, tone information, and expression information of the current drug purchasing user during the consultation process;

[0033] The data acquisition module comprises:

[0034] An input submodule is used to provide the doctor with a score for the medical consultation record according to the multiple types of information in the medical consultation record, and output the obtained score as the user feature feedback value.

[0035] Preferably, the consultation record includes the telephone voice record of the current drug purchasing user during the consultation process;

[0036] The data acquisition module comprises:

[0037] a conversion submodule, used for translating the telephone voice record into text conversation data;

[0038] an analysis submodule, connected to the conversion submodule, for analyzing the text conversation data using natural language processing technology to obtain user emotion data corresponding to the text conversation data;

[0039] An output submodule, connected to the analysis submodule, is used to obtain a corresponding score according to the user emotion data processing and output it as the user feature feedback value.

[0040] Preferably, the correction module calculates the fourth emotion data according to the following formula:

[0041] S=(1-W)S uvv +WP;

[0042] in,

[0043] P represents the user feature feedback value;

[0044] W represents the weight value corresponding to the user feature feedback value;

[0045] S uvv representing the second emotion data;

[0046] S represents the fourth emotion data.

[0047] Preferably, the recommendation unit obtains a corresponding user emotion portrait according to the user emotion data, and recommends the medicine corresponding to the first emotion data to the current medicine purchasing user according to the user emotion portrait.

[0048] Preferably, the data correction unit comprises:

[0049] A reservation module is connected to the first judgment module and the data acquisition module respectively, and is used to recommend a doctor for consultation to the current drug purchasing user based on the historical interaction data when there is no consultation record for the current drug purchasing user according to the judgment result.

[0050] The beneficial effects of the present invention are:

[0051] The present invention objectively quantifies the expressed emotions of drugs according to the drug information of the drugs, obtains the emotion data corresponding to the drugs themselves, and then combines the drug purchasing path of the drug purchasing user and the user characterization feedback value fed back by the doctor after the consultation to quantify the user emotion data, and then infers the emotion portrait of the current drug purchasing user; according to the user emotion portrait and the emotion data of the drug itself, deeply explores the user's purchase intention, increases the user's drug purchase decision tree, and enriches the drug purchase dynamics; gives priority to recommending doctors for consultation, increases the interaction between doctors and users, and obtains feedback from the communication between doctors and users, comprehensively understands users, allows users to buy and use drugs with peace of mind, solves the problem of low coupling between online doctors and patients, increases user favorability, and enhances user stickiness. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a structural block diagram of a sentiment analysis system based on drug purchase path in the present invention;

[0053] Figure 2 It is a structural block diagram of a specific embodiment of a training unit in the present invention;

[0054] Figure 3 is a structural block diagram of a specific embodiment of the first generation unit in the present invention;

[0055] Figure 4 It is a structural block diagram of a specific embodiment of the quantization module in the present invention;

[0056] Figure 5 It is a structural block diagram of a specific embodiment of a data correction unit in the present invention;

[0057] Figure 6 It is a structural block diagram of a specific embodiment of the data acquisition module in the present invention;

[0058] Figure 7 is a structural block diagram of another specific embodiment of the data acquisition module in the present invention;

[0059] Figure 8 It is a flowchart of another specific embodiment of the data acquisition module in the present invention;

[0060] Fig. 9 A table diagram of a specific embodiment of the recommendation unit in the present invention;

[0061] Fig.10 It is a flowchart of a specific embodiment of the recommendation unit in the present invention. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0064] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0065] The present invention provides a sentiment analysis system based on drug purchase path, which belongs to the field of medicine. Figure 1 As shown, including:

[0066] A drug database 1, the drug database 1 is used to store drug information of different types of drugs;

[0067] a vector construction unit 2, connected to the drug database 1, for obtaining a multi-dimensional drug information vector of each drug according to the drug information in the drug database 1;

[0068] A training unit 3, connected to the vector construction unit 2, is used to train all drugs in the drug database 1 according to the drug information vector to obtain the first emotion data corresponding to each drug;

[0069] A first generating unit 4, connected to the training unit 3, is used to obtain the historical interaction data of the current drug purchasing user, and calculate the second emotion data output corresponding to the current drug purchasing user according to the historical interaction data and the first emotion data;

[0070] a data correction unit 5, connected to the first generation unit 4, for correcting the second emotion data according to the corresponding third emotion data obtained from the consultation record when the current drug purchasing user has a consultation record, obtaining fourth emotion data and outputting it as user emotion data, and outputting the second emotion data as user emotion data when the current drug purchasing user has no consultation record;

[0071] A recommendation unit 6 is connected to the training unit 3 and the data correction unit 5 respectively, and is used to provide suggestions to the current drug purchasing user according to the first emotion data and the user emotion data.

[0072] Specifically, in this embodiment, the emotion analysis system includes six parts: a drug database 1, a vector construction unit 2, a training unit 3, a first generation unit 4, a data correction unit 5, and a recommendation unit 6. The drug database 1 stores drug information corresponding to existing drugs on the market. The drug information includes the feeling when taking the drug, the physical signs after taking the drug (including side effects), the completeness of the drug description, the indications of the drug, the user's price acceptance, the user's peace of mind in taking the drug, and other objective factors that may affect the patient's mood, including the smell of the drug, the taste of the drug, and the user's reaction to taking the drug. , chronic disease drugs, drug instructions, drug prices and pharmaceutical companies; drug aroma includes 8-dimensional data such as cold, hot, warm, cool, slightly warm, slightly cool, very cold and very hot; drug taste includes 22-dimensional data such as spicy, sweet, sour, bitter, salty, light, astringent, fragrant, smelly, tasteless, slightly spicy, slightly sweet, slightly sour, slightly bitter, slightly salty, slightly astringent, very spicy, very sweet, very sour, very bitter, very salty and very astringent; drug reaction includes 12-dimensional data such as vomiting, drowsiness, abdominal pain, cough, edema, headache, euphoria, flushing, fatigue, palpitations, immune disorder and blood pressure disorder;

[0073] When there is no medication reaction, the quantitative value of the corresponding medication reaction is 0;

[0074] When there is a slight medication reaction, the quantitative value of the corresponding medication reaction is 1;

[0075] When there is an obvious medication reaction, the quantitative value of the corresponding medication reaction is 2;

[0076] For example, after taking the medicine, if there is no vomiting reaction, the corresponding quantitative value of the vomiting feeling is 0, if there is a slight vomiting feeling, the corresponding quantitative value of the vomiting feeling is 1, and if there is a clear vomiting feeling, the corresponding quantitative value of the vomiting feeling is 2;

[0077] When there is no immune disorder reaction, the quantitative value corresponding to the immune disorder item is 0, and when there is an immune disorder reaction, the quantitative value corresponding to the immune disorder item is 1;

[0078] When there is no blood pressure disorder reaction, the quantitative value corresponding to the blood pressure disorder item is 0, when the blood pressure decreases, the quantitative value corresponding to the nausea item is 1, and when the blood pressure increases, the quantitative value corresponding to the nausea item is 2;

[0079] Chronic disease drugs include 10-dimensional data such as drugs for hypertension, diabetes, hepatitis B, hyperlipidemia, epilepsy, depression, coronary heart disease, asthma, impotence and premature ejaculation, and rheumatism; drug descriptions include 7-dimensional data such as production batch number, production date, expiration date, instructions, preferential price, inventory, and drug pictures; drug prices include 16 preset price ranges;

[0080] Pharmaceutical companies include two-dimensional data such as company scale and favorable comments. When the company is a small-scale company, the corresponding quantitative value is 0, the corresponding quantitative value of a medium-sized company is 1, and the corresponding quantitative value of a large-scale company is 2. The corresponding quantitative value of a company with average favorable comments is 0, the corresponding quantitative value of a company with good favorable comments is 1, and the corresponding quantitative value of a company with very good favorable comments is 2. If the pharmaceutical company corresponding to the drug is a small-scale company but has a very good favorable comment, the corresponding quantitative value of the pharmaceutical company is (0, 2).

[0081] The vector construction unit 2 quantifies the multi-dimensional drug information vector corresponding to each drug according to the above 77-dimensional drug information, and then trains to obtain the first emotion data of all drugs, and then quantifies the second emotion index based on the interaction data of the drug purchasing user on the drug purchasing path. When the current drug purchasing user has a medical consultation record, the corresponding third emotion data is obtained according to the medical consultation record, and then corrected to obtain the fourth emotion data, that is, the user emotion data; when the current drug purchasing user does not have a medical consultation record, the second emotion data is used as the user emotion data, and then the emotion portrait of the current drug purchasing user is inferred, and according to the user emotion portrait and the first emotion data corresponding to the drug itself, the appropriate drug is selected to recommend to the user, the user's purchase intention is deeply explored, and the user's decision tree for purchasing drugs is increased; at the same time, feedback from the communication between doctors and users is obtained to fully understand the user, so that the user can buy and use the drug with peace of mind, solve the problem of low coupling between online doctors and patients, increase user favorability, and enhance user stickiness.

[0082] As a preferred embodiment, the sentiment analysis system, such as Figure 2 As shown, the training unit 3 includes:

[0083] The extraction module 31 is used to extract multiple types of drugs from the drug database 1 and output them as drugs to be trained;

[0084] The marking module 32 is connected to the extraction module 31 and is used to mark the drugs to be trained to obtain the first emotion data corresponding to each drug to be trained;

[0085] The training module 33 is connected to the marking module 32 and the vector construction unit 2 respectively, and is used to obtain the corresponding drug information vector according to the drug to be trained, and combine the drug information vector corresponding to the drug to be trained and the first emotion data of the drug to be trained to form training data to train a neural network model;

[0086] The traversal module 34 is connected to the training module 33 and is used to input all the drugs in the drug database 1 into the trained neural network model to obtain the first emotion data corresponding to all the drugs.

[0087] Specifically, in this embodiment, all drugs in the drug database 1 are classified in advance to form multi-level drug categories. For example, all drugs are classified according to drug uses, that is, cold drugs, digestive system drugs, respiratory system drugs, rheumatology and orthopedics, cardio-cerebral drugs, tumor drugs, skin drugs, drugs for the five sense organs, nutrition and health care, nourishing and tonic, personal care, maternal and child products, and adult products to form drug categories; they can also be classified according to the drug categories that have been formed in the prior art;

[0088] The extraction module 31 extracts a type of medicine from each drug category, and the labeling module 32 labels the extracted drugs to be trained to obtain the first emotion data corresponding to each drug to be trained. Usually, doctors manually label the drugs according to the drug information of each type of drug; the training module 33 obtains the drug information vector corresponding to the above-mentioned constructed drugs according to the drugs to be trained, and combines the drug information vector corresponding to the drugs to be trained and the first emotion data of the drugs to be trained to form training data to train a neural network model, and then all the drugs in the drug database 1 are input into the trained neural network model to obtain the first emotion data corresponding to all the drugs, wherein the neural network model can use a SUM classifier of a support vector machine (SUM).

[0089] As a preferred embodiment, the sentiment analysis system, wherein the historical interaction data includes drug prices corresponding to multiple drugs browsed by the current drug purchasing user on a drug purchasing website, the drug category corresponding to each drug, the order transaction amount, the number of drug varieties in the order transaction, and beacon behavior information generated when the drugs are associated, the beacon behavior information is used to represent a specific type of behavior in the historical interaction data of the current drug purchasing user on the drug purchasing website;

[0090] like Figure 3 As shown, the first generating unit 4 includes:

[0091] a quantification module 41, for obtaining, based on the historical interaction data and the first emotion data, a first emotion index corresponding to the change in drug price, a second emotion index corresponding to the change in order transaction amount, a third emotion index corresponding to the change in the number of drug varieties, a fourth emotion index corresponding to the change in the drug category, and a fifth emotion index corresponding to the beacon behavior information;

[0092] A calculation module 42 is connected to the quantification module 41 and is used to calculate the second emotion data according to the first emotion index, the second emotion index, the third emotion index, the fourth emotion index and the fifth emotion index.

[0093] Specifically, in this embodiment, by embedding points on the drug purchase website, data such as whether to add to the shopping cart, whether to collect and forward, and whether to place an order are collected from the user's historical interaction data, a user-centered drug purchase core link is formed, and the second emotional data of the current drug purchase user is inferred. For example, in the same category of skin medicines, the patient browsed the drug A, which was priced at 48 yuan, but found that the drug B with the same function on sale was only priced at 19 yuan. The first emotional index corresponding to the change in drug prices is higher, and the user is happier. For example, the original price of a chronic disease drug is 1,500 yuan, but now it only costs 1,050 yuan at a 30% discount. Although the user suffers from a chronic disease and needs to continue to consume higher drug costs, the corresponding emotion will not be too high, but seeing this price, he will still be a little tempted, and the corresponding first emotional index will become higher. However, if the drug price is only reduced from 48 yuan to 45 yuan, there will not be much emotional fluctuation.

[0094] For example, after taking medicine, a user may feel sleepy. At this time, the user's mood is not high, but if the user buys adult products, although the user has a cold, the user's mood will show obvious signs of preference overall;

[0095] For example, a user browsed Pi Yan Ping, Dakning, and then browsed Siji Ganmao Ling. Although the browsing width has increased, the factors affecting emotions are basically in one dimension, so the user's emotions will not have too obvious ups and downs.

[0096] The above five dimensions are a sampling of patients' browsing paths when purchasing medicines, which directly reflect the possible psychological state of patients when purchasing medicines and have certain commonalities. That is, when a factor that is large enough or small enough appears in the process of patients purchasing medicines, it can cause obvious changes in patients' moods when purchasing medicines.

[0097] As a preferred embodiment, the sentiment analysis system, such as Figure 4 As shown, the quantization module 41 includes:

[0098] A first quantification submodule 411 is used to quantify the price sentiment quantification value according to the change trend of the drug prices of two consecutively browsed drugs in the historical interaction data, and obtain the first sentiment index according to all the price sentiment quantification values. The calculation formula is as follows:

[0099]

[0100]

[0101] in,

[0102] n represents the number of views by the current drug purchasing user;

[0103] i indicates that the current drug purchasing user browses drugs for the i-th time on the drug purchasing website;

[0104] P i Indicates the drug price corresponding to the drug browsed for the i-th time;

[0105] P i+1 Indicates the drug price corresponding to the drug browsed for the i+1th time;

[0106] S i It represents the quantitative value of price sentiment corresponding to the price change of the drug when the current drug purchasing user browses for the i+1th time and the ith time;

[0107] S dpv represents the first sentiment indicator;

[0108] A second quantification submodule 412 is used to quantify the order sentiment quantification value according to the change trend of the transaction amount of two consecutive orders in the historical interaction data, and obtain the second sentiment index according to all the order sentiment quantification values. The calculation formula is as follows:

[0109]

[0110]

[0111] in,

[0112] m represents the number of orders completed by the current drug purchasing user;

[0113] k represents the kth order completed by the current drug purchasing user on the drug purchasing website;

[0114] A k+1 Indicates the order amount corresponding to the k+1th order transaction;

[0115] A k Indicates the order amount corresponding to the kth order transaction;

[0116] S kIt indicates the quantitative value of order sentiment corresponding to the change in order amount when the current drug purchasing user completes the k+1th order and the kth order;

[0117] S opv represents the second emotion indicator;

[0118] A third quantification submodule 413 is used to quantify the variety sentiment quantification value according to the change trend of the number of drug varieties in two consecutive orders in the historical interaction data, and obtain the third sentiment index according to all the variety sentiment quantification values. The calculation formula is as follows:

[0119]

[0120]

[0121] in,

[0122] m represents the number of orders completed by the current drug purchasing user;

[0123] k represents the kth order completed by the current drug purchasing user on the drug purchasing website;

[0124] B k+1 Indicates the number of drug varieties corresponding to the k+1th order transaction;

[0125] B k Indicates the number of drug varieties corresponding to the k-th order transaction;

[0126] S′ k Indicates the sentiment data corresponding to the change in the number of drug varieties when the current drug purchasing user's k+1th order is completed and the kth order is completed;

[0127] S ppv represents the third emotion indicator;

[0128] A fourth quantification submodule 414 is used to obtain a category sentiment quantification value according to the change of the loss of the drug category corresponding to the drugs browsed twice in the historical interaction data, and obtain a fourth sentiment index according to all the category sentiment quantification values. The calculation formula is as follows:

[0129]

[0130]

[0131] in,

[0132] y represents the number of orders completed by the current drug purchasing user;

[0133] x represents the drug that the current drug purchasing user browsed for the xth time on the drug purchasing website;

[0134] C x+1 Indicates the drug category corresponding to the drug browsed for the x+1th time;

[0135] C x Indicates the drug category to which the drug browsed for the xth time belongs;

[0136] S x Indicates the category sentiment quantization value corresponding to the change in the drug category of the current drug purchasing user during the k+1th browsing and the kth browsing;

[0137] S cpv Indicates the fourth emotion indicator;

[0138] Drug category Category sentiment quantification value Cardiovascular and brain medication 2 Tumor medication 2 Men's medicine 0 Gynecological medication 0 Neurological medication 2 Hepatobiliary medication 2 Respiratory system 0 Digestive system 0 Drugs for five sense organs 0 Skin medication 0 Rheumatology 2 Nutrition and Health 1 Nourishing and replenishing 1 Beauty Personal Care 1 Adult Products 1 Maternity and baby products 1

[0139] Specifically, the above table is a table of drug category-category emotion quantization values, and the fourth quantization submodule obtains the corresponding category emotion quantization value according to the drug category corresponding to the browsed drug, and then calculates the fourth emotion index;

[0140] A fifth quantification submodule 415 is used to obtain a fifth emotion index according to the beacon behavior information with the deepest depth level among all the beacon behavior information generated when the drug is associated in the historical interaction data, and the first emotion data corresponding to the drug. The calculation formula is as follows:

[0141]

[0142] in,

[0143] j represents the jth drug associated with the current drug purchasing user on the drug purchasing website;

[0144] W Deepest Indicates the weight value corresponding to the beacon behavior information with the deepest depth level among all the beacon behavior information, and the depth level is used to indicate the position of a specific beacon behavior information in the behavior sequence when all the beacon behavior information are arranged in a preset order to form a behavior sequence;

[0145] S M (j) represents the first emotion data corresponding to the j-th drug;

[0146] S vpv Indicates the fifth emotion indicator;

[0147] Specifically, in this embodiment, the levels of beacon behavior information are, from shallow to deep, drug search, drug details page, drug instructions, drug collection, drug sharing, initiating consultation, adding to shopping cart / buy now, order check page and order completion, and the corresponding W1, W2, W3, W4, W5, W6, W7, W8, and W9 are the preset weight values ​​of the beacon behavior information.

[0148] The calculation module 42 calculates the second emotion data according to the first emotion index, the second emotion index, the third emotion index, the fourth emotion index and the fifth emotion index. The calculation formula is as follows:

[0149]

[0150] in,

[0151] S dpv represents the first sentiment indicator;

[0152] S opv represents the second emotion indicator;

[0153] S ppv represents the third emotion indicator;

[0154] S cpv Indicates the fourth emotion indicator;

[0155] S uvv Indicates the second emotion data.

[0156] As a preferred embodiment, the sentiment analysis system, such as Figure 5 As shown, the data correction unit 5 includes:

[0157] A first judgment module 51, used to judge whether the current drug purchasing user has a medical consultation record, and output a judgment result;

[0158] a data acquisition module 52 connected to the first judgment module 51, for obtaining the consultation record of the current drug purchasing user according to the judgment result, and obtaining the user characteristic feedback value corresponding to the current drug purchasing user according to the consultation record and outputting it as the third emotion data;

[0159] A correction module 53, connected to the data acquisition module 52, is used to determine the weight value corresponding to the user feature feedback value, and correct the second emotion data according to the user feature feedback value and the corresponding weight value to obtain fourth emotion data.

[0160] As a preferred embodiment, the emotion analysis system, wherein the consultation record includes multiple types of information including voice information, picture information, text information, tone information, and expression information of the current drug purchasing user during the consultation process;

[0161] like Figure 6 As shown, the data acquisition module 52 includes:

[0162] An input submodule 521 is used to provide doctors with scores for the medical consultation records according to multiple types of information in the medical consultation records, and output the obtained scores as user feature feedback values.

[0163] Specifically, in this embodiment, the doctor gives a subjective score to the user who is consulting and purchasing medicine based on one or more of the voice information, picture information, text information, tone information, and expression information in the consultation record, and directly outputs the obtained score as the user feature feedback value.

[0164] As a preferred embodiment, the emotion analysis system, wherein the consultation record includes the telephone voice record of the current drug purchasing user during the consultation process;

[0165] like Figure 7 and Figure 8 As shown, the data acquisition module 52 includes:

[0166] a conversion submodule 522, for translating telephone voice records into text conversation data;

[0167] An analysis submodule 523, connected to the conversion submodule 522, for analyzing the text conversation data using natural language processing technology to obtain user emotion data corresponding to the text conversation data;

[0168] An output submodule 524, connected to the analysis submodule 523, is used to obtain a corresponding score based on the user emotion data and output it as a user feature feedback value.

[0169] Specifically, in this embodiment, if the user who purchases medicines consults a doctor by phone, the telephone voice record is obtained, and the telephone voice record is translated into text conversation data. The PaddleNLP natural language processing technology in the prior art is used to add and subtract weights by word segmentation, phrases, parts of speech, sentences, etc., and perform user natural sentiment analysis on the text conversation data to obtain user sentiment data corresponding to the text conversation data, where the user sentiment data includes positive sentiment, negative sentiment or neutral sentiment, and determine the weight value corresponding to the user sentiment data. According to the weight value mapping process, the corresponding score is obtained and output as the user feature feedback value.

[0170] Among them, PaddleNLP natural language processing technology can refer to Baidu's PaddleNLP open source tool. Through the preset dialogue emotion recognition model, it can quickly classify the content expressed by the customer. For common situations and problems in Chinese expression such as colloquialism, many modal particles, and disordered vocabulary, it optimizes the pre-processing methods such as removing colloquialisms and synonym conversion to distinguish whether the current content is emotionally positive, negative or neutral. The preset dialogue emotion recognition model can ensure the clean and effective recognition of data, so that the system can better understand the emotions expressed by the user, and can effectively and quickly detect the content expressed by the user to improve efficiency.

[0171] It should be noted that in the two specific embodiments of the above data acquisition unit, the user feature feedback values ​​obtained by the input submodule 521 and the output submodule 524 are mutually exclusive, that is, only one of the user feature feedback values ​​is selected as a required item to participate in the weighted calculation in the correction formula.

[0172] As a preferred embodiment, in the emotion analysis system, the correction module 53 calculates the fourth emotion data according to the following formula:

[0173] S=(1-W)S uvv +WP;

[0174] in,

[0175] P represents the user feature feedback value;

[0176] W represents the weight value corresponding to the user feature feedback value;

[0177] S uvv represents second emotion data;

[0178] S represents fourth emotion data.

[0179] Specifically, in this embodiment, if the current drug purchasing user has no medical consultation record, W=0.

[0180] As a preferred embodiment, the sentiment analysis system, wherein the data correction unit 5 comprises:

[0181] An appointment module 54 is connected to the first judgment module 51 and the data acquisition module 52 respectively, and is used to recommend a doctor to the current drug purchasing user for consultation based on the judgment result when there is no consultation record for the current drug purchasing user according to the historical interaction data.

[0182] As a preferred embodiment, the sentiment analysis system, such as Fig. 9 and Fig.10 As shown, the recommendation unit 6 obtains the corresponding user emotion portrait according to the user emotion data, and recommends the medicine corresponding to the first emotion data to the current medicine purchasing user according to the user emotion portrait.

[0183] Specifically, in this embodiment, the corresponding user emotion portrait is determined according to the output user emotion data, wherein the user emotion portrait includes very happy, happy, average, unhappy and depressed;

[0184] When s≥9, the corresponding user emotion portrait is very happy;

[0185] When 6≤s<9, the corresponding user emotion profile is happy;

[0186] When 4≤s<6, the corresponding user emotion profile is average;

[0187] When 2≤s<4, the corresponding user emotion profile is unhappy;

[0188] When s<2, the corresponding user emotional profile is depressed;

[0189] When s≥6, that is, the user's emotional profile is very happy or happy, popular drugs with relatively high scores of the corresponding first emotional data are recommended to the current drug-buying user;

[0190] When 4≤s<6, that is, the user's emotional profile is average, the high-quality drugs with the highest relative scores of the corresponding first emotional data are selected from the drug prices and drug categories and recommended to the current drug purchasing user;

[0191] When s<4, that is, the user's emotional portrait is unhappy or very depressed, according to the judgment result output by the above-mentioned first judgment module 51, when there is no consultation record for the current drug purchasing user, the doctor is recommended for consultation first, so as to increase the interaction between the doctor and the user while obtaining feedback from the communication between the doctor and the user, so as to fully understand the user. When there is a consultation record for the current drug purchasing user, the high-quality drug with the highest relative score of the corresponding first emotional data is selected from the drug price and the drug category according to the consultation record and recommended to the current drug purchasing user.

[0192] The beneficial effects of the present invention are:

[0193] The present invention objectively quantifies the expressed emotions of drugs according to the drug information of the drugs, obtains the emotion data corresponding to the drugs themselves, and then combines the drug purchasing path of the drug purchasing user and the user characterization feedback value fed back by the doctor after the consultation to quantify the user emotion data, and then infers the emotion portrait of the current drug purchasing user; according to the user emotion portrait and the emotion data of the drug itself, deeply explores the user's purchase intention, increases the user's drug purchase decision tree, and enriches the drug purchase dynamics; gives priority to recommending doctors for consultation, increases the interaction between doctors and users, and obtains feedback from the communication between doctors and users, comprehensively understands users, allows users to buy and use drugs with peace of mind, solves the problem of low coupling between online doctors and patients, increases user favorability, and enhances user stickiness.

[0194] The above description is only a preferred embodiment of the present invention, and does not limit the implementation mode and protection scope of the present invention. For those skilled in the art, it should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. A sentiment analysis system based on drug purchase path, It is characterized in that include: a drug database, wherein the drug database is used to store drug information of different types of drugs; a vector construction unit, connected to the drug database, for obtaining a multi-dimensional drug information vector of each drug according to the drug information in the drug database; a training unit, connected to the vector construction unit, and configured to train all drugs in the drug database according to the drug information vector to obtain first emotion data corresponding to each drug; a first generating unit, connected to the training unit, configured to obtain historical interaction data of the current drug purchasing user, and calculate and output second emotion data corresponding to the current drug purchasing user based on the historical interaction data and the first emotion data; a data correction unit, connected to the first generation unit, for correcting the second emotion data according to the corresponding third emotion data obtained from the consultation record when the current drug purchasing user has a consultation record, obtaining fourth emotion data and outputting it as user emotion data, and outputting the second emotion data as user emotion data when the current drug purchasing user has no consultation record; A recommendation unit is connected to the training unit and the data correction unit respectively, and is used to provide suggestions to the current drug purchasing user according to the first emotion data and the user emotion data.

2. The sentiment analysis system according to claim 1, It is characterized in that The training unit comprises: An extraction module, used to extract multiple types of drugs from the drug database and output them as drugs to be trained; a marking module, connected to the extraction module, and used for marking the drugs to be trained to obtain the first emotion data corresponding to each of the drugs to be trained; a training module, connected to the marking module and the vector construction unit, respectively, for obtaining a corresponding drug information vector according to the drug to be trained, and combining the drug information vector corresponding to the drug to be trained and the first emotion data of the drug to be trained to form training data for training a neural network model; The traversal module is connected to the training module and is used to input all the drugs in the drug database into the trained neural network model to obtain the first emotion data corresponding to all the drugs.

3. The sentiment analysis system according to claim 1, It is characterized in that The historical interaction data includes drug prices corresponding to the multiple drugs browsed by the current drug purchasing user on a drug purchasing website, the drug category to which each drug belongs, the order transaction amount, the number of drug varieties in the order transaction, and beacon behavior information generated when the drugs are associated, and the beacon behavior information is used to represent a type of specific behavior of the current drug purchasing user in the historical interaction data on the drug purchasing website; The first generating unit comprises: a quantification module, configured to obtain, based on the historical interaction data and the first emotion data, a first emotion index corresponding to the change in the drug price, a second emotion index corresponding to the change in the order transaction amount, a third emotion index corresponding to the change in the number of drug varieties, a fourth emotion index corresponding to the change in the drug category, and a fifth emotion index corresponding to the beacon behavior information; A calculation module is connected to the quantification module and is used to calculate the second emotion data according to the first emotion index, the second emotion index, the third emotion index, the fourth emotion index and the fifth emotion index.

4. The sentiment analysis system according to claim 3, It is characterized in that The quantization module comprises: a first quantification submodule, configured to obtain a price sentiment quantification value according to a change trend of the drug price of the drug browsed twice adjacently in the historical interaction data, and obtain the first sentiment index according to all the price sentiment quantification values; a second quantification submodule, configured to obtain a quantitative value of order sentiment according to the change trend of the transaction amount of the order between two adjacent times in the historical interaction data, and obtain the second sentiment index according to all the quantitative values ​​of the order sentiment; A third quantification submodule, configured to quantify the variety sentiment quantification value according to the change trend of the quantity of the drug variety in two adjacent orders in the historical interaction data, and obtain the third sentiment index according to all the variety sentiment quantification values; a fourth quantification submodule, configured to obtain a category emotion quantification value according to the change of the loss of the drug category corresponding to the drug browsed twice consecutively in the historical interaction data, and obtain the fourth emotion index according to all the category emotion quantification values; A fifth quantification submodule is used to obtain the fifth emotion index based on the beacon behavior information with the deepest depth level among all the beacon behavior information generated when the drug is associated with the historical interaction data, and the first emotion data corresponding to the drug.

5. The sentiment analysis system according to claim 1, It is characterized in that The data correction unit comprises: A first judgment module, used to judge whether the current drug purchasing user has a medical consultation record, and output a judgment result; a data acquisition module, connected to the first judgment module, for acquiring the consultation record of the current drug purchasing user according to the judgment result, when the current drug purchasing user has a consultation record, and obtaining the user characteristic feedback value corresponding to the current drug purchasing user according to the consultation record and outputting it as the third emotion data; A correction module is connected to the data acquisition module, and is used to determine the weight value corresponding to the user feature feedback value, and correct the second emotion data according to the user feature feedback value and the corresponding weight value to obtain the fourth emotion data.

6. The sentiment analysis system according to claim 5, It is characterized in that The consultation record includes multiple types of information including voice information, picture information, text information, tone information, and expression information of the current drug purchasing user during the consultation process; The data acquisition module comprises: An input submodule is used to provide the doctor with a score for the medical consultation record according to the multiple types of information in the medical consultation record, and output the obtained score as the user feature feedback value.

7. The sentiment analysis system according to claim 5, It is characterized in that The consultation record includes the telephone voice record of the current drug purchasing user during the consultation process; The data acquisition module comprises: a conversion submodule, used for translating the telephone voice record into text conversation data; an analysis submodule, connected to the conversion submodule, for analyzing the text conversation data using natural language processing technology to obtain user emotion data corresponding to the text conversation data; An output submodule, connected to the analysis submodule, is used to obtain a corresponding score according to the user emotion data processing and output it as the user feature feedback value.

8. The sentiment analysis system according to claim 5, It is characterized in that The correction module calculates the fourth emotion data according to the following formula: S=(1-W)S uvv +WP; in, P represents the user feature feedback value; W represents the weight value corresponding to the user feature feedback value; S uvv representing the second emotion data; S represents the fourth emotion data.

9. The sentiment analysis system according to claim 1, It is characterized in that The recommendation unit obtains a corresponding user emotion portrait according to the user emotion data, and recommends the medicine corresponding to the first emotion data to the current medicine purchasing user according to the user emotion portrait.

10. The sentiment analysis system according to claim 5, It is characterized in that The data correction unit comprises: A reservation module is connected to the first judgment module and the data acquisition module respectively, and is used to recommend a doctor for consultation to the current drug purchasing user based on the historical interaction data when there is no consultation record for the current drug purchasing user according to the judgment result.

Citation Information

Patent Citations

  • Intelligent drug guidance method, system and device

    CN110853723A

  • Online medicine purchasing system

    CN113706243A