Service distribution method, device, equipment and storage medium based on data analysis
Through text conversion and feature word extraction of user policy information, a decision tree model is constructed, which solves the problem of low accuracy in medical service recommendation and achieves precise screening and push of services available to users.
Patent Information
- Application Number
- CN202111014113.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-08-31
AI Technical Summary
The accuracy of medical service recommendation is low, mainly because the user's policy information processing is not accurate enough, resulting in the inability to accurately filter out the services available to the user.
By obtaining the user's policy information, perform text conversion, word segmentation and feature word extraction, build a decision tree model, filter out the services that the user can use, and push the service list.
Improved the accuracy of service recommendations to ensure users receive appropriate medical services.
Smart Images

Figure CN113706322B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a service distribution method, device, electronic device and computer-readable storage medium based on data analysis. Background Art
[0002] As people's awareness of health management continues to strengthen, the demand for medical services continues to increase. In addition, the vision of medical insurance is to provide services to users by providing medical services instead of claims. However, due to the wide variety of medical insurance currently available, the medical services provided by each insurance are also different. As a result, when services are provided to users, the users may not have the right to enjoy the corresponding services, or even if the users once had the right to enjoy the services, the services have now expired, resulting in low accuracy in recommending medical services to users based on policy data. Summary of the invention
[0003] The present invention provides a service distribution method, device and computer-readable storage medium based on data analysis, the main purpose of which is to solve the problem of low accuracy when recommending medical services.
[0004] To achieve the above object, the present invention provides a service distribution method based on data analysis, comprising:
[0005] Obtaining the user's insurance policy information, and performing text conversion on the insurance policy information to obtain the insurance policy text;
[0006] Segmenting the policy text, and extracting feature words from the segmented text to obtain user feature words;
[0007] Using the user feature words as decision conditions to construct a decision tree model;
[0008] Obtaining the use rights of the preset services, and using the decision tree model to filter out the available services for the user from the preset services according to the use rights;
[0009] A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
[0010] Optionally, the text conversion of the policy information to obtain the policy text includes:
[0011] Extract the data type field of each data in the insurance policy information;
[0012] Dividing the data in the policy information according to the data type field to obtain text data, image data and audio data;
[0013] Performing image recognition on the image data in the insurance policy information to obtain image text corresponding to the image data;
[0014] Performing speech recognition on the audio data in the insurance policy information to obtain an audio text corresponding to the audio data;
[0015] The text data, the image text and the audio text are collected into a policy text.
[0016] Optionally, dividing the data in the policy information according to the data type field to obtain text data, image data and audio data includes:
[0017] Selecting one piece of data from the insurance policy information one by one as target data;
[0018] Performing vector conversion on the data type field of the target data to obtain a data type vector;
[0019] respectively calculating distance values between the data type vector and a plurality of preset data types, the data types comprising a text type, an image type and an audio type;
[0020] The data type with the smallest distance value is determined as the type of the target data, and the data in the insurance policy information is divided according to the type to obtain text data, image data and audio data.
[0021] Optionally, the segmenting of the insurance policy text and extracting characteristic words from the segmented text to obtain user characteristic words include:
[0022] Dividing the policy text into a plurality of text clauses according to preset clause symbols;
[0023] Searching each of the multiple text sentences in a preset dictionary according to different data lengths, and using the retrieved words as the text segmentation of the policy text;
[0024] Counting the occurrence frequency of each of the text segmentation words and the position information of each of the text segmentation words in the policy text;
[0025] The key degree of each of the text segment words is calculated according to the occurrence frequency and the position information, and the text segment words whose key degrees are greater than a preset threshold are collected as user feature words.
[0026] Optionally, calculating the criticality of each of the text segmentations according to the occurrence frequency and the position information includes:
[0027] The following eigenvalue algorithm is used to calculate the criticality of each of the text segmentations according to the occurrence frequency and the position information:
[0028] K i =α*A i +β*β i
[0029] Among them, K i is the key degree of the i-th word in the text segmentation, A is the occurrence frequency of the i-th word in the text segmentation, B i is the position information of the ith word in the text segmentation, and α and β are preset weight coefficients.
[0030] Optionally, the constructing a decision tree model by taking the user feature words as decision conditions includes:
[0031] Selecting one of the user feature words as the target feature word one by one from the user feature words;
[0032] Compiling the target feature words into feature parameters using a preset compiler, and assigning values to a preset decision function using the feature parameters;
[0033] Use the assigned decision function as the decision condition to generate a decision tree;
[0034] The decision trees corresponding to all the feature words in the user feature words are aggregated to obtain a decision tree model.
[0035] Optionally, the using the decision tree to filter out the available services for the user from the preset services according to the usage rights includes:
[0036] Select one of the usage permissions from the preset service usage permissions one by one as an input value;
[0037] Selecting one of the decision trees from the decision tree model as a target decision tree, inputting the input value into the target decision tree, and obtaining an output result of the target decision tree, wherein the output result includes that the input value is the same as a parameter of the target decision tree, or the input value is different from a parameter of the target decision tree;
[0038] The preset services corresponding to the usage rights whose output results of all decision trees are the same as the input values and parameters of the target decision tree are available services.
[0039] In order to solve the above problems, the present invention further provides a service distribution device based on data analysis, the device comprising:
[0040] A text conversion module, used to obtain the user's insurance policy information, and perform text conversion on the insurance policy information to obtain the insurance policy text;
[0041] A feature word extraction module is used to segment the policy text and extract feature words from the segmented text to obtain user feature words;
[0042] A decision tree construction module, used to construct a decision tree model using the user feature words as decision conditions;
[0043] A service screening module, used to obtain the use rights of a preset service, and to screen the available services of the user from the preset services according to the use rights by using the decision tree model;
[0044] The service push module is used to generate a service list according to the insurance policy information and the available services, and push the service list to the user.
[0045] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0046] at least one processor; and,
[0047] a memory communicatively connected to the at least one processor; wherein,
[0048] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned service distribution method based on data analysis.
[0049] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned service distribution method based on data analysis.
[0050] The embodiment of the present invention can analyze the user's insurance policy information to extract the keywords contained in the user's insurance policy information, and then build a decision tree model through the extracted keywords, and use the built decision tree model to accurately conditionally screen multiple preset services, and then push the screened services to the user, thereby achieving accurate screening of services and improving the accuracy of service distribution to users. Therefore, the service distribution method, device, electronic device and computer-readable storage medium based on data analysis proposed by the present invention can solve the problem of low accuracy when making product recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flow chart of a service distribution method based on data analysis provided by an embodiment of the present invention;
[0052] Figure 2A schematic diagram of a process for extracting user characteristic words provided by an embodiment of the present invention;
[0053] Figure 3 A schematic diagram of a process for constructing a decision tree model provided by an embodiment of the present invention;
[0054] Figure 4 A functional module diagram of a service distribution device based on data analysis provided by an embodiment of the present invention;
[0055] Figure 5 A schematic diagram of the structure of an electronic device for implementing the service distribution method based on data analysis provided by an embodiment of the present invention.
[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0058] The embodiment of the present application provides a service distribution method based on data analysis. The execution subject of the service distribution method based on data analysis includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the service distribution method based on data analysis can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0059] Reference Figure 1 FIG. 1 is a flow chart of a service distribution method based on data analysis provided by an embodiment of the present invention. In this embodiment, the service distribution method based on data analysis includes:
[0060] S1. Obtain the user's insurance policy information, and perform text conversion on the insurance policy information to obtain the insurance policy text.
[0061] In the embodiment of the present invention, the insurance policy information includes data related to the insurance order purchased by the user, for example, the user's age, gender, insurance policy type, insurance policy amount and other data.
[0062] In detail, computer statements with data capture functions (such as Java statements, python statements, etc.) can be used to capture pre-stored policy information that is authorized by the user to be obtained from a pre-built storage area, and the storage area includes but is not limited to a database, blockchain, and network cache.
[0063] In one of the practical application scenarios of the present invention, the obtained policy information may include data in various forms such as text, images, audio, etc. In order to improve the subsequent processing efficiency and accuracy of the policy information, the obtained policy information can be converted into text to obtain the policy text.
[0064] In the embodiment of the present invention, the text conversion of the insurance policy information to obtain the insurance policy text includes:
[0065] Extract the data type field of each data in the insurance policy information;
[0066] Dividing the data in the policy information according to the data type field to obtain text data, image data and audio data;
[0067] Performing image recognition on the image data in the insurance policy information to obtain image text corresponding to the image data;
[0068] Performing speech recognition on the audio data in the insurance policy information to obtain an audio text corresponding to the audio data;
[0069] The text data, the image text and the audio text are collected into a policy text.
[0070] In detail, the data type field is a field in each data used to mark the data type of the data; a pre-built regular expression with data type field extraction function can be used to extract the data type field of each data from the policy information, and the regular expression can be used to implement the function of extracting data with a fixed format in the data.
[0071] In the embodiment of the present invention, the data in the insurance policy information is divided according to the data type field to obtain text data, image data and audio data, including:
[0072] Selecting one piece of data from the insurance policy information one by one as target data;
[0073] Performing vector conversion on the data type field of the target data to obtain a data type vector;
[0074] respectively calculating distance values between the data type vector and a plurality of preset data types, the data types comprising a text type, an image type and an audio type;
[0075] The data type with the smallest distance value is determined as the type of the target data, and the data in the insurance policy information is divided according to the type to obtain text data, image data and audio data.
[0076] In detail, the data type field of the target data can be vectorized using an artificial intelligence model with a vector conversion function, and the artificial intelligence model includes an NLP (Natural Language Processing) model, an HMM (Hidden Markov Model), a BERT model, and the like.
[0077] Specifically, the distance values between the data type vector and multiple preset data types can be calculated respectively by using algorithms with distance value calculation functions such as cosine distance algorithm and Euclidean distance algorithm, and the data type with the smallest distance value is determined to be the type of the target data.
[0078] For example, if the distance value between the data type vector of the target data and the text type is 20, the distance value between the data type vector of the target data and the image type is 90, and the distance value between the data type vector of the target data and the audio type is 25, it can be confirmed that the data type of the target data is a graphic type.
[0079] In an embodiment of the present invention, OCR (Optical Character Recognition) technology can be used to perform image recognition on image data in the insurance policy information to obtain image text corresponding to the image data; ASR (Automatic Speech Recognition) technology can be used to perform speech recognition on audio data in the insurance policy information to obtain audio text corresponding to the audio data, and the text data, the image text and the audio text are collected to obtain the insurance policy text.
[0080] S2. Segment the insurance policy text, and extract feature words from the segmented text to obtain user feature words.
[0081] In one of the practical application scenarios of the present invention, since the insurance policy text contains a large amount of text information, if the insurance policy text is directly analyzed, it will take up a large amount of computing resources, resulting in low analysis efficiency, and a large amount of data is mixed, which will cause inaccurate analysis results. Therefore, the insurance policy text can be segmented and feature words can be extracted from the results of the segmentation to reduce the amount of data in the subsequent analysis of the insurance policy text and improve the efficiency and accuracy of the analysis.
[0082] In the embodiment of the present invention, Figure 2As shown, the insurance policy text is segmented, and feature words are extracted from the segmented text words to obtain user feature words, including:
[0083] S21, dividing the policy text into a plurality of text clauses according to preset clause symbols;
[0084] S22, searching each of the multiple text sentences in a preset dictionary according to different data lengths, and using the retrieved words as the text segmentation of the insurance policy text;
[0085] S23, counting the occurrence frequency of each of the text segmentation words and the position information of each of the text segmentation words in the policy text;
[0086] S24, calculating the criticality of each of the text segment words according to the occurrence frequency and the position information, and collecting the text segment words whose criticality is greater than a preset threshold as user feature words.
[0087] In detail, since the insurance policy text contains a large amount of text data, in order to improve the efficiency of word segmentation of the insurance policy text, a large amount of text data can be segmented using preset sentence symbols to divide the insurance policy text into multiple text sentences, thereby reducing the amount of data each time word segmentation is performed and improving word segmentation efficiency. The sentence symbols include but are not limited to ",",".","..."
[0088] Specifically, the dictionary is a pre-acquired dictionary containing multiple word segments, and each text sentence can be searched in the dictionary according to different data lengths, and the retrieved word segments are used as the text word segments of the insurance policy text.
[0089] In an embodiment of the present invention, the occurrence frequency refers to the number of times each text segmentation appears in all text segmentations in the policy text; the position information refers to the sequence of positions of each text segmentation in the policy text. For example, the text segmentations in the policy text can be numbered according to the sequence of positions in the policy text, and the number corresponding to each text segmentation is the position information of the text segmentation.
[0090] In the embodiment of the present invention, the calculating the criticality of each of the text segmentation words according to the occurrence frequency and the position information includes:
[0091] The following eigenvalue algorithm is used to calculate the criticality of each of the text segmentations according to the occurrence frequency and the position information:
[0092] K i =α*A i +β*β i
[0093] Among them, K i is the key degree of the i-th word in the text segmentation, A is the occurrence frequency of the i-th word in the text segmentation, B i is the position information of the ith word in the text segmentation, and α and β are preset weight coefficients.
[0094] In the embodiment of the present invention, the text segmentation words whose key degree is greater than a preset threshold value may be selected, and the selected text segmentation words are collected as user characteristic words of the user.
[0095] S3. Constructing a decision tree model by taking the user feature words as decision conditions.
[0096] In one of the practical application scenarios of the present invention, since there are a large number of services, but the user does not have the right to use every service, the user feature words can be used as decision conditions to construct a decision tree, so that the constructed decision tree can be used to filter out the services that can be obtained by the user from a large number of services.
[0097] In the embodiment of the present invention, Figure 3 As shown, the method of using the user feature words as decision conditions to construct a decision tree model includes:
[0098] S31, selecting one of the user feature words as a target feature word one by one;
[0099] S32, using a preset compiler to compile the target feature word into feature parameters, and using the feature parameters to assign values to a preset decision function;
[0100] S33, using the assigned decision function as a decision condition to generate a decision tree;
[0101] S34, aggregating the decision trees corresponding to all the feature words in the user feature words to obtain a decision tree model.
[0102] Exemplarily, the decision function may be:
[0103]
[0104] Among them, f(x) is the output value of the decision function, x is the parameter of the decision function, and g(y) is the input value of the decision function.
[0105] In detail, one of the feature words can be selected from the user feature words one by one as the target feature word, and the target feature word can be compiled into feature parameters using a preset compiler, and the parameter x of the decision function can be assigned using the feature parameters, wherein the compiler includes but is not limited to a Visual Studio compiler and a Dev C++ compiler.
[0106] Specifically, the assigned decision function can be used as a decision condition to generate the following decision tree:
[0107] When the input value g(y) of the decision tree is the same as the parameter x of the decision tree, the output value of the decision tree is f(x)=α;
[0108] When the input g(y) of the decision tree is different from the parameter x of the decision tree, the decision tree outputs a value f(x)=β.
[0109] S4. Obtaining the use authority of a preset service, and using the decision tree model to filter out available services for the user from the preset services according to the use authority.
[0110] In the embodiment of the present invention, the usage rights include constraints required by the user when obtaining each preset service, such as time limit, age limit, etc.
[0111] In detail, the step of obtaining the right to use the preset service is consistent with the step of obtaining the user's insurance policy information in S1, and will not be repeated here.
[0112] In the embodiment of the present invention, the decision tree can be used to screen multiple preset services to determine whether the use rights of each preset service in the multiple preset services meet the characteristics of the user, thereby screening out the services that the user meets the conditions and can use.
[0113] In the embodiment of the present invention, the using of the decision tree to filter out the available services for the user from the preset services according to the usage rights includes:
[0114] Select one of the usage permissions from the preset service usage permissions one by one as an input value;
[0115] Selecting one of the decision trees from the decision tree model as a target decision tree, inputting the input value into the target decision tree, and obtaining an output result of the target decision tree, wherein the output result includes that the input value is the same as a parameter of the target decision tree, or the input value is different from a parameter of the target decision tree;
[0116] The preset services corresponding to the usage rights whose output results of all decision trees are the same as the input values and parameters of the target decision tree are available services.
[0117] For example, the decision tree model includes decision tree a1 and decision tree a2, and the multiple preset services include service A and service B. Decision tree a1 is selected as the target decision tree, and the usage rights of service A are selected as the input value; the input value is input into the decision tree a1, and an output result is obtained that the input value output by the decision tree a1 is the same as the parameter of the decision tree a1; the input value is input into the decision tree a2, and an output result is obtained that the input value output by the decision tree a2 is the same as the parameter of the decision tree a2; then the practical rights of service B are selected as the input value, and the input value is input into the decision tree b1, and an output result is obtained that the input value output by the decision tree b1 is different from the parameter of the decision tree b1; the input value is input into the decision tree b2, and an output result is obtained that the input value output by the decision tree b2 is the same as the parameter of the decision tree b2. Then, only the input results of service A in all decision trees are the output results that the input value is the same as the parameter of the target decision tree, and service A is confirmed to be an available service for the user.
[0118] S5. Generate a service list according to the policy information and the available services, and push the service list to the user.
[0119] In the embodiment of the present invention, since the user may have multiple available services, in order to enable the user to more clearly understand which services he can use, a service list can be generated based on the policy information and the available services, and then the service list can be recommended to the user.
[0120] For example, the policy information and the available services are filled into a pre-generated blank data table to generate the service list, and the service list is displayed to the user.
[0121] The embodiment of the present invention can analyze the user's insurance policy information to extract the keywords contained in the user's insurance policy information, and then build a decision tree model through the extracted keywords, and use the built decision tree model to accurately conditionally screen multiple preset services, and then push the screened services to the user, thereby achieving accurate screening of services and improving the accuracy of service distribution to users. Therefore, the service distribution method based on data analysis proposed by the present invention can solve the problem of low accuracy when making product recommendations.
[0122] like Figure 4 1 is a functional module diagram of a service distribution device based on data analysis provided by an embodiment of the present invention.
[0123] The service distribution device 100 based on data analysis of the present invention can be installed in an electronic device. According to the functions to be implemented, the service distribution device 100 based on data analysis can include a text conversion module 101, a feature word extraction module 102, a decision tree construction module 103, a service screening module 104 and a service push module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0124] In this embodiment, the functions of each module / unit are as follows:
[0125] The text conversion module 101 is used to obtain the user's insurance policy information, and perform text conversion on the insurance policy information to obtain the insurance policy text;
[0126] The feature word extraction module 102 is used to segment the policy text and extract feature words from the segmented text to obtain user feature words;
[0127] The decision tree construction module 103 is used to construct a decision tree model using the user feature words as decision conditions;
[0128] The service screening module 104 is used to obtain the use rights of the preset services, and screen the available services of the user from the preset services according to the use rights by using the decision tree model;
[0129] The service push module 105 is used to generate a service list according to the policy information and the available services, and push the service list to the user.
[0130] In detail, each module described in the service distribution device 100 based on data analysis in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The technical means are the same as the service distribution method based on data analysis described in, and can produce the same technical effects, so they will not be repeated here.
[0131] like Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a service distribution method based on data analysis provided by an embodiment of the present invention.
[0132] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a service distribution program based on data analysis.
[0133] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a service distribution program based on data analysis, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0134] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device, such as the code of a service distribution program based on data analysis, but may also be used to temporarily store data that has been output or is to be output.
[0135] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0136] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0137] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0138] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0139] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0140] The service distribution program based on data analysis stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0141] Obtaining the user's insurance policy information, and performing text conversion on the insurance policy information to obtain the insurance policy text;
[0142] Segmenting the policy text, and extracting feature words from the segmented text to obtain user feature words;
[0143] Using the user feature words as decision conditions to construct a decision tree model;
[0144] Obtaining the use rights of the preset services, and using the decision tree model to filter out the available services for the user from the preset services according to the use rights;
[0145] A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
[0146] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0147] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0148] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0149] Obtaining the user's insurance policy information, and performing text conversion on the insurance policy information to obtain the insurance policy text;
[0150] Segmenting the policy text, and extracting feature words from the segmented text to obtain user feature words;
[0151] Using the user feature words as decision conditions to construct a decision tree model;
[0152] Obtaining the use rights of the preset services, and using the decision tree model to filter out the available services for the user from the preset services according to the use rights;
[0153] A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
[0154] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0155] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0157] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0158] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0159] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0160] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0161] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A service distribution method based on data analysis, characterized in that: The method comprises: Obtaining the user's insurance policy information, and performing text conversion on the insurance policy information to obtain the insurance policy text; Segmenting the policy text, and extracting feature words from the segmented text to obtain user feature words; The user characteristic words are used as decision conditions to construct a decision tree model, including: selecting one of the characteristic words from the user characteristic words one by one as a target characteristic word, using a preset compiler to compile the target characteristic word into characteristic parameters, using the characteristic parameters to assign values to a preset decision function, using the assigned decision function as a decision condition to generate a decision tree, and collecting the decision trees corresponding to all the characteristic words in the user characteristic words to obtain a decision tree model; Obtaining the use rights of a preset service, and using the decision tree model to filter out the available services of the user from the preset services according to the use rights, including: selecting one of the use rights from the use rights of the preset services as an input value one by one, selecting one of the decision trees from the decision tree model as a target decision tree one by one, inputting the input value into the target decision tree to obtain an output result of the target decision tree, wherein the output result includes that the input value is the same as a parameter of the target decision tree or the input value is different from a parameter of the target decision tree, and the preset services corresponding to the use rights whose output results of all decision trees are the same as the parameters of the target decision tree are the available services; Generate a service list according to the policy information and the available services, and push the service list to the user; The step of segmenting the policy text and extracting characteristic words from the segmented text to obtain user characteristic words includes: Dividing the policy text into a plurality of text clauses according to preset clause symbols; Searching each of the multiple text sentences in a preset dictionary according to different data lengths, and using the retrieved words as the text segmentation of the policy text; Counting the occurrence frequency of each of the text segmentation words and the position information of each of the text segmentation words in the policy text; The key degree of each of the text segment words is calculated according to the occurrence frequency and the position information, and the text segment words whose key degrees are greater than a preset threshold are collected as user feature words.
2. The service distribution method based on data analysis according to claim 1, characterized in that: The text conversion of the policy information to obtain the policy text includes: Extract the data type field of each data in the insurance policy information; Dividing the data in the policy information according to the data type field to obtain text data, image data and audio data; Performing image recognition on the image data in the insurance policy information to obtain image text corresponding to the image data; Performing speech recognition on the audio data in the insurance policy information to obtain an audio text corresponding to the audio data; The text data, the image text and the audio text are collected into a policy text.
3. The service distribution method based on data analysis according to claim 2, characterized in that: The data in the insurance policy information is divided according to the data type field to obtain text data, image data and audio data, including: Selecting one piece of data from the insurance policy information one by one as target data; Performing vector conversion on the data type field of the target data to obtain a data type vector; respectively calculating distance values between the data type vector and a plurality of preset data types, the data types comprising a text type, an image type and an audio type; The data type with the smallest distance value is determined as the type of the target data, and the data in the insurance policy information is divided according to the type to obtain text data, image data and audio data.
4. The service distribution method based on data analysis according to claim 1, characterized in that: The calculating the criticality of each of the text segmentations according to the occurrence frequency and the position information includes: The following eigenvalue algorithm is used to calculate the criticality of each of the text segmentations according to the occurrence frequency and the position information: in, The first word in the text segmentation The key degree of each word, The first word in the text segmentation The frequency of occurrence of a participle, The first word in the text segmentation The position information of the word segment, and is the preset weight coefficient.
5. A service distribution device based on data analysis, used to implement the service distribution method based on data analysis as claimed in any one of claims 1 to 4, characterized in that: The device comprises: A text conversion module is used to obtain the user's insurance policy information, and perform text conversion on the insurance policy information to obtain the insurance policy text; A feature word extraction module is used to segment the policy text and extract feature words from the segmented text to obtain user feature words; A decision tree construction module, used to construct a decision tree model using the user feature words as decision conditions; A service screening module, used to obtain the use rights of a preset service, and to screen the available services of the user from the preset services according to the use rights by using the decision tree model; The service push module is used to generate a service list according to the insurance policy information and the available services, and push the service list to the user.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service distribution method based on data analysis as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the service distribution method based on data analysis as claimed in any one of claims 1 to 4 is implemented.
