WO2023029507A1 - Data analysis-based service distribution method and apparatus, device, and storage medium - Google Patents

Data analysis-based service distribution method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2023029507A1
WO2023029507A1 PCT/CN2022/087811 CN2022087811W WO2023029507A1 WO 2023029507 A1 WO2023029507 A1 WO 2023029507A1 CN 2022087811 W CN2022087811 W CN 2022087811W WO 2023029507 A1 WO2023029507 A1 WO 2023029507A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
data
policy
user
service
Prior art date
Application number
PCT/CN2022/087811
Other languages
French (fr)
Chinese (zh)
Inventor
刘福婷
Original Assignee
康键信息技术(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 康键信息技术(深圳)有限公司 filed Critical 康键信息技术(深圳)有限公司
Publication of WO2023029507A1 publication Critical patent/WO2023029507A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3346Query execution using probabilistic model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/216Parsing using statistical methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Definitions

  • the present application relates to the technical field of artificial intelligence, and in particular to a data analysis-based service distribution method, device, electronic equipment, and computer-readable storage medium.
  • a service distribution method based on data analysis provided by this application includes:
  • a service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  • the present application also provides a service distribution device based on data analysis, the device includes:
  • the text conversion module is used to obtain the policy information of the user, and perform text conversion on the policy information to obtain the policy text;
  • the characteristic word extraction module is used for carrying out word segmentation to described policy text, and carries out characteristic word extraction to the text word segmentation that word segmentation obtains, obtains user characteristic word;
  • Decision tree construction module used for constructing a decision tree model using the user feature words as a decision condition
  • a service screening module configured to obtain the use authority of preset services, and use the decision tree model to screen out the services available to the user from the preset services according to the use authority;
  • a service push module configured to generate a service list according to the policy information and the available services, and push the service list to the user.
  • the present application also provides an electronic device, the electronic device comprising:
  • the memory stores a computer program executable by the at least one processor, the computer program is executed by the at least one processor to enable the at least one processor to perform data analysis based services as described below Distribution method:
  • a service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  • the present application also provides a computer-readable storage medium, at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is executed by a processor in an electronic device to implement data-based analysis as described below
  • a service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  • FIG. 1 is a schematic flowchart of a service distribution method based on data analysis provided by an embodiment of the present application
  • FIG. 2 is a schematic flow diagram of extracting user feature words provided by an embodiment of the present application.
  • Fig. 3 is a schematic flow chart of constructing a decision tree model provided by an embodiment of the present application.
  • FIG. 4 is a functional block diagram of a service distribution device based on data analysis provided by an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of an electronic device implementing the data analysis-based service distribution method provided by an embodiment of the present application.
  • An 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 electronic devices such as a server end and a terminal that can be configured to execute the method provided by the embodiment of the present application.
  • the service distribution method based on data analysis can be executed by software or hardware installed on the terminal device or server device, and the software can be a block chain platform.
  • the server includes, but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
  • the server can be an independent server, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • cloud services cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • FIG. 1 it is a schematic flowchart of a service distribution method based on data analysis provided by an embodiment of the present application.
  • the service distribution method based on data analysis includes:
  • the policy information includes data related to the insurance order purchased by the user, for example, data such as the user's age, gender, policy type, and policy amount.
  • computer statements (such as Java statements, python statements, etc.) with data capture functions can be used to capture pre-stored policy information that can be obtained with user authorization from a pre-built storage area.
  • the storage area includes but Not limited to databases, blockchains, web caches.
  • the obtained policy information may include data in various forms such as text, image, audio, etc.
  • the obtained policy information can be Perform text conversion to obtain policy text.
  • the text conversion of the policy information is performed to obtain the policy text, including:
  • the text data, the image text and the audio text are assembled into a policy text.
  • the data type field is a field used to mark the data type of each data; a pre-built regular expression with a data type field extraction function can be used to extract each A data type field of data, the regular expression can be used to realize the function of extracting data with a fixed format in the data.
  • the data in the policy information is divided according to the data type field to obtain text data, image data and audio data, including:
  • the data type field of the target data can be vector-converted by using an artificial intelligence model with a vector conversion function.
  • Cove model Cove model
  • Bert model etc.
  • the distance values between the data type vector and a plurality of preset data types can be respectively calculated by an algorithm with a distance value calculation function such as a cosine distance algorithm and a Euclidean distance algorithm, and the data type with the smallest distance value is determined to be The type of the target data.
  • a distance value calculation function such as a cosine distance algorithm and a Euclidean distance algorithm
  • 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
  • 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 graph type.
  • OCR Optical Character Recognition, optical character recognition
  • ASR Automatic Speech Recognition, automatic speech recognition
  • Carrying out voice recognition on the audio data in the policy information to obtain the audio text corresponding to the audio data, and collecting the text data, the image text and the audio text to obtain the policy text.
  • the policy text contains a large amount of text information
  • it will occupy a large amount of computing resources, resulting in low analysis efficiency, and a large amount of data is mixed, which will cause The analysis results are imprecise. Therefore, word segmentation can be performed on the policy text, and feature words can be extracted from the result of the word segmentation, so as to reduce the amount of data in the subsequent analysis of the policy text and improve the efficiency and accuracy of the analysis.
  • the described policy text is segmented, and the text segmentation obtained by word segmentation is subjected to feature word extraction to obtain user feature words, including:
  • the policy text contains a large amount of text data
  • a large amount of text data can be segmented using preset sentence symbols, so as to divide the policy text into multiple A text sentence, thereby reducing the amount of data for each word segmentation and improving word segmentation efficiency.
  • the sentence symbols include but are not limited to ",”, ".”, ".".
  • the dictionary is a pre-acquired dictionary containing multiple word segmentations, each text clause can be retrieved in the dictionary according to different data lengths, and the retrieved word segmentation can be used as the text segmentation of the policy text .
  • the frequency of occurrence is the number of times each text participle appears in all text participles of the policy text;
  • the position information refers to the sequence of positions of each text participle in the policy text,
  • the text participle in the policy text can be numbered according to the order of their positions in the policy text, and the number corresponding to each text participle is the position information of the text participle.
  • the calculation of the key degree of each of the text word segmentation according to the frequency of occurrence and the position information includes:
  • the following eigenvalue algorithm is used to calculate the key degree of each of the text word segmentation according to the frequency of occurrence and the position information:
  • K i ⁇ *A i + ⁇ *B i
  • K i is the key degree of the ith participle in the described text participle
  • A is the frequency of occurrence of the ith participle in the described text participle
  • Bi is the positional information of the ith participle in the described text participle
  • ⁇ and ⁇ are preset weight coefficients.
  • the word segmentation of the text whose key degree is greater than the preset threshold may be selected, and the selected text segmentation vocabulary set is the user characteristic word of the user.
  • the user characteristic words can be used as decision conditions to construct a decision tree for subsequent use
  • the constructed decision tree screens out services that can be obtained by the user from a large number of services.
  • the construction of a decision tree model using the user characteristic words as a decision condition includes:
  • the decision function may be:
  • f(x) is an output value of the decision function
  • x is a parameter of the decision function
  • g(y) is an input value of the decision function
  • one of the characteristic words can be selected as the target characteristic word one by one from the user characteristic words, and the target characteristic word is compiled into a characteristic parameter by using a preset compiler, and the decision function of the decision function by the characteristic parameter is used Parameter x is assigned, wherein the compiler includes but not limited to Visual Studio compiler, Dev C++ compiler.
  • the following decision tree can be generated by using the assigned decision function as the decision condition:
  • the usage rights include constraints required by the user when obtaining each preset service, for example, time limit, age limit, and the like.
  • the step of obtaining the use authority of the preset service is the same as the step of obtaining the user's policy information in S1, so it will not be repeated here.
  • the decision tree can be used to screen a variety of preset services to determine whether the use authority of each preset service in the multiple preset services conforms to the characteristics of the user, and then screen out The user meets the conditions and can use the service.
  • the use of the decision tree to screen out the user's usable services from the preset services according to the usage authority includes:
  • the output result of collecting all the decision trees is that the preset service corresponding to the usage authority whose input value is the same as the parameter of the target decision tree is an available service.
  • the decision tree model includes decision tree a 1 and decision tree a 2
  • the multiple preset services include service A and service B, select decision tree a 1 as the target decision tree, and select the use authority of service A
  • input the input value into the decision tree a 1 to obtain the output result that the input value output by the decision tree a 1 is the same as the parameter of the decision tree a 1
  • input the input value into the Decision tree a 2 obtain the output result that the input value output by the decision tree a 2 is the same as the parameter of the decision tree a 2
  • select the practical authority of service B as the input value
  • input the input value into the Decision tree b 1 obtaining the output result that the input value output by the decision tree b 1 is different from the parameters of the decision tree b 1
  • inputting the input value into the decision tree b 2 obtaining the decision tree
  • the input value output by b2 is the same as the output result of the parameter of the decision tree b2 , then only the input results of
  • a service list can be generated based on the policy information and the available services, and then The service list is recommended to the user.
  • 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.
  • the embodiment of the present application can analyze the user's policy information to extract keywords contained in the user's policy information, and then construct a decision tree model through the extracted keywords, and use the constructed decision tree model to perform multiple preset services Accurate condition screening, and then push the selected services to users, realize the precise screening of services, and improve the accuracy of service delivery to users. Therefore, the service distribution method based on data analysis proposed in this application can solve the problem of low accuracy in product recommendation.
  • FIG. 4 it is a functional block diagram of a service distribution device based on data analysis provided by an embodiment of the present application.
  • the data analysis-based service distribution apparatus 100 described in this application can be installed in an electronic device.
  • the data analysis-based service distribution device 100 may 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 described in this application can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of the electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
  • each module/unit is as follows:
  • the text conversion module 101 is used to obtain the policy information of the user, and perform text conversion on the policy information to obtain the policy text;
  • the feature word extraction module 102 is configured to perform word segmentation on the policy text, and perform feature word extraction on the text word segmentation obtained by word segmentation to obtain user feature words;
  • the decision tree construction module 103 is used to construct a decision tree model using the user characteristic words as a decision condition;
  • the service screening module 104 is configured to obtain the use authority of preset services, and use the decision tree model to screen out the services available to the user from the preset services according to the use authority;
  • the service pushing module 105 is configured to generate a service list according to the policy information and the available services, and push the service list to the user.
  • each module described in the data analysis-based service distribution device 100 in the embodiment of the present application uses the same technical means as the data analysis-based service distribution method described in Figures 1 to 3 above. , and can produce the same technical effect, which will not be repeated here.
  • FIG. 5 it is a schematic structural diagram of an electronic device implementing a service distribution method based on data analysis provided by an embodiment of the present application.
  • 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 operable on the processor 10, such as based on data analysis service dispatcher.
  • the processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions packaged, including one or A combination of multiple central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors and various control chips, etc.
  • the processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (such as executing service distribution program based on data analysis, etc.), and call the data stored in the memory 11 to execute various functions of the electronic device and process data.
  • Control Unit Control Unit
  • the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. , the computer-readable storage medium may be non-volatile or volatile.
  • the storage 11 may be an internal storage unit of the electronic device in some embodiments, such as a mobile hard disk of the electronic device.
  • the memory 11 can also be an external storage device of an electronic device in other embodiments, such as a plug-in mobile hard disk equipped on an electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD ) card, flash card (Flash Card), etc.
  • the storage 11 may also include both an internal storage unit of the electronic device and an external storage device.
  • the memory 11 can not only be used to store application software and various data installed in electronic equipment, such as codes of service distribution programs based on data analysis, but also can be used to temporarily store data that has been output or will be output.
  • the communication bus 12 may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the bus is configured to realize connection and communication between the memory 11 and at least one processor 10 and the like.
  • the communication interface 13 is used for communication between the electronic device and other devices, including a network interface and a user interface.
  • the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device and other electronic devices.
  • the user interface may be a display (Display) or an input unit (such as a keyboard (Keyboard)).
  • the user interface may also be a standard wired interface or a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like.
  • the display may also be properly referred to as a display screen or a display unit, and is used for displaying information processed in the electronic device and for displaying a visualized user interface.
  • FIG. 5 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation to the electronic device 1, and may include fewer or more components, or combinations of certain components, or different arrangements of components.
  • the electronic device may also include a power supply (such as a battery) for supplying power to various components.
  • the power supply may be logically connected to the at least one processor 10 through a power management device, so that Realize functions such as charge management, discharge management, and power consumption management.
  • the power supply may also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
  • the electronic device may also include various sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be repeated here.
  • the service distribution program based on data analysis stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
  • a service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  • the integrated modules/units of the electronic device 1 are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the computer-readable storage medium may be volatile or non-volatile.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory).
  • the present application also provides a computer-readable storage medium, the readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, it can realize:
  • a service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  • 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 may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software function modules.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • AI artificial intelligence
  • 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.

Abstract

The present application relates to the technical field of artificial intelligence and digital medicine, and discloses a data analysis-based service distribution method, comprising: acquiring insurance policy information of a user, and converting the insurance policy information into an insurance policy text; performing word segmentation on the insurance policy text, and performing feature word extraction on words of the text obtained by the word segmentation to obtain a user feature word; constructing a decision tree model using the user feature word as a decision condition; acquiring a usage permission for a preset service, and screening available service for the user from preset services according to the usage permission by using the decision tree model; generating a service list according to the insurance policy information and the available service, and pushing the service list to the user, the insurance policy information potentially being a medical insurance policy. In addition, the present application also relates to blockchain technology, and insurance policy information can be stored on a node of a blockchain. The present application also provides a data analysis-based service distribution apparatus, an electronic device, and a storage medium. The present application can improve accuracy of medical service recommendation.

Description

基于数据分析的服务分发方法、装置、设备及存储介质Service distribution method, device, equipment and storage medium based on data analysis
本申请要求于2021年08月31日提交中国专利局、申请号为202111014113.3,发明名称为“基于数据分析的服务分发方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111014113.3 submitted to the China Patent Office on August 31, 2021, and the invention title is "service distribution method, device, equipment and storage medium based on data analysis", the entire content of which Incorporated in this application by reference.
技术领域technical field
本申请涉及人工智能技术领域,尤其涉及一种基于数据分析的服务分发方法、装置、电子设备及计算机可读存储介质。The present application relates to the technical field of artificial intelligence, and in particular to a data analysis-based service distribution method, device, electronic equipment, and computer-readable storage medium.
背景技术Background technique
随着人们的健康管理意识不断加强,对于医疗服务的需求不断提高,加之医疗保险的愿景就是通过提供医疗服务来代替理赔对用户提供服务,发明人意识到由于目前医疗险的种类繁多,每款保险所拥有的医疗服务也不尽相同,进而导致在对用户进行服务发放时,可能用户并没有权限享有相应的服务,或者,即使用户曾经有权限享有该服务,但现在服务已经到期的情况,造成根据保单数据对用户进行医疗服务推荐时的精确度不高。As people's awareness of health management continues to increase, the demand for medical services continues to increase, and the vision of medical insurance is to provide services to users by providing medical services instead of claims. The inventor realized that due to the wide variety of current medical insurance, each The medical services owned by the insurance are not the same, which leads to the situation that when the service is issued to the user, the user may not have the right to enjoy the corresponding service, or even if the user once had the right to enjoy the service, the service has expired now , resulting in low accuracy when recommending medical services to users based on policy data.
发明内容Contents of the invention
本申请提供的一种基于数据分析的服务分发方法,包括:A service distribution method based on data analysis provided by this application includes:
获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
本申请还提供一种基于数据分析的服务分发装置,所述装置包括:The present application also provides a service distribution device based on data analysis, the device includes:
文本转换模块,用于获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;The text conversion module is used to obtain the policy information of the user, and perform text conversion on the policy information to obtain the policy text;
特征词提取模块,用于对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;The characteristic word extraction module is used for carrying out word segmentation to described policy text, and carries out characteristic word extraction to the text word segmentation that word segmentation obtains, obtains user characteristic word;
决策树构建模块,用于将所述用户特征词作为决策条件构建决策树模型;Decision tree construction module, used for constructing a decision tree model using the user feature words as a decision condition;
服务筛选模块,用于获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;A service screening module, configured to obtain the use authority of preset services, and use the decision tree model to screen out the services available to the user from the preset services according to the use authority;
服务推送模块,用于根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service push module, configured to generate a service list according to the policy information and the available services, and push the service list to the user.
本申请还提供一种电子设备,所述电子设备包括:The present application also provides an electronic device, the electronic device comprising:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下所述的基于数据分析的服务分发方法:The memory stores a computer program executable by the at least one processor, the computer program is executed by the at least one processor to enable the at least one processor to perform data analysis based services as described below Distribution method:
获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个计算机程序,所述至少一个计算机程序被电子设备中的处理器执行以实现如下所述的基于数据分析的服务分发方法:The present application also provides a computer-readable storage medium, at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is executed by a processor in an electronic device to implement data-based analysis as described below The service distribution method for:
获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
附图说明Description of drawings
图1为本申请一实施例提供的基于数据分析的服务分发方法的流程示意图;FIG. 1 is a schematic flowchart of a service distribution method based on data analysis provided by an embodiment of the present application;
图2为本申请一实施例提供的提取用户特征词的流程示意图;FIG. 2 is a schematic flow diagram of extracting user feature words provided by an embodiment of the present application;
图3为本申请一实施例提供的构建决策树模型的流程示意图;Fig. 3 is a schematic flow chart of constructing a decision tree model provided by an embodiment of the present application;
图4为本申请一实施例提供的基于数据分析的服务分发装置的功能模块图;FIG. 4 is a functional block diagram of a service distribution device based on data analysis provided by an embodiment of the present application;
图5为本申请一实施例提供的实现所述基于数据分析的服务分发方法的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device implementing the data analysis-based service distribution method provided by an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
本申请实施例提供一种基于数据分析的服务分发方法。所述基于数据分析的服务分发方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述基于数据分析的服务分发方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。所述服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。An 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 electronic devices such as a server end and a terminal 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 the terminal device or server device, and the software can be a block chain platform. The server includes, but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server can be an independent server, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
参照图1所示,为本申请一实施例提供的基于数据分析的服务分发方法的流程示意图。在本实施例中,所述基于数据分析的服务分发方法包括:Referring to FIG. 1 , it is a schematic flowchart of a service distribution method based on data analysis provided by an embodiment of the present application. In this embodiment, the service distribution method based on data analysis includes:
S1、获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本。S1. Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text.
本申请实施例中,所述保单信息包括用户购买的保险订单相关的数据,例如,用户的年龄、性别、保单类型、保单金额等数据。In this embodiment of the present application, the policy information includes data related to the insurance order purchased by the user, for example, data such as the user's age, gender, policy type, and policy amount.
详细地,可利用具有数据抓取功能的计算机语句(如Java语句、python语句等),从预先构建的存储区域中抓取预先存储且用户授权可被获取的保单信息,所述存储区域包括但不限于数据库、区块链、网络缓存。In detail, computer statements (such as Java statements, python statements, etc.) with data capture functions can be used to capture pre-stored policy information that can be obtained with user authorization from a pre-built storage area. The storage area includes but Not limited to databases, blockchains, web caches.
本申请其中一个实际应用场景中,获取到的保单信息可能包括文本、图像、音频等多种形式的数据,为了提高后续对所述保单信息的处理效率和精确度,可将获取到的保单信息进行文本转换,得到保单文本。In one of the actual application scenarios of this application, the obtained policy information may include data in various forms such as text, image, audio, etc. In order to improve the subsequent processing efficiency and accuracy of the policy information, the obtained policy information can be Perform text conversion to obtain policy text.
本申请实施例中,所述对所述保单信息进行文本转换,得到保单文本,包括:In the embodiment of the present application, the text conversion of the policy information is performed to obtain the policy text, including:
提取所述保单信息中每一个数据的数据类型字段;Extracting the data type field of each data in the policy information;
根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据;Divide 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 policy information to obtain image text corresponding to the image data;
对所述保单信息中的音频数据进行语音识别,得到所述音频数据对应的音频文本;Perform speech recognition on the audio data in the policy information to obtain the audio text corresponding to the audio data;
将所述文本数据、所述图像文本和所述音频文本汇集为保单文本。The text data, the image text and the audio text are assembled into a policy text.
详细地,所述数据类型字段为每一个数据中用于对该数据的数据类型进行标记的字段;可利用预先构建的具有数据类型字段提取功能的规则表达式从所述保单信息中提取出每一个数据的数据类型字段,所述规则表达式可用于实现对数据中具有固定格式的数据进行提取的功能。In detail, the data type field is a field used to mark the data type of each data; a pre-built regular expression with a data type field extraction function can be used to extract each A data type field of data, the regular expression can be used to realize the function of extracting data with a fixed format in the data.
本申请实施例中,所述根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据,包括:In the embodiment of the present application, the data in the policy information is divided according to the data type field to obtain text data, image data and audio data, including:
从所述保单信息中逐个选取其中的一个数据为目标数据;selecting one of the data as the target data one by one from the policy information;
将所述目标数据的数据类型字段进行向量转换,得到数据类型向量;Perform vector conversion on the data type field of the target data to obtain a data type vector;
分别计算所述数据类型向量与多个预设的数据类型之间的距离值,所述数据类型包括文本类型、图像类型和音频类型;Calculating distance values between the data type vector and multiple preset data types respectively, the data types including text type, image type and audio type;
确定所述距离值最小的数据类型为所述目标数据的类型,并按照所述类型将所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据。Determining the data type with the smallest distance value as the type of the target data, and dividing the data in the policy information according to the type to obtain text data, image data and audio data.
详细地,可利用具有向量转换功能的人工智能模型将目标数据的数据类型字段进行向量转换,所述人工智能模型包括NLP(Natural Language Processing,自然语言处理)模型、HMM(Hidden Markov Model,隐马尔科夫模型)、bert模型等。In detail, the data type field of the target data can be vector-converted by using an artificial intelligence model with a vector conversion function. Cove model), Bert model, etc.
具体地,可通过余弦距离算法、欧式距离算法等具有距离值计算功能的算法分别计算所述数据类型向量与多个预设的数据类型之间的距离值,并确定距离值最小的数据类型为所述目标数据的类型。Specifically, the distance values between the data type vector and a plurality of preset data types can be respectively calculated by an algorithm with a distance value calculation function such as a cosine distance algorithm and a Euclidean distance algorithm, and the data type with the smallest distance value is determined to be The type of the target data.
例如,目标数据的数据类型向量与文本类型之间的距离值为20,目标数据的数据类型向量与图像类型之间的距离值为90,目标数据的数据类型向量与音频类型之间的距离值为25,则可确认该目标数据的数据类型为图形类型。For example, 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 graph type.
本申请实施例中,可利用OCR(Optical Character Recognition,光学字符识别)技术对保单信息中的图像数据进行图像识别,得到图像数据对应的图像文本;利用ASR(Automatic Speech Recognition,自动语音识别)技术对保单信息中的音频数据进行语音识别,得到所述音频数据对应的音频文本,并汇集所述文本数据、所述图像文本和所述音频文本,得到保单文本。In the embodiment of the present application, OCR (Optical Character Recognition, optical character recognition) technology can be used to perform image recognition on the image data in the policy information, and the image text corresponding to the image data can be obtained; ASR (Automatic Speech Recognition, automatic speech recognition) technology can be used Carrying out voice recognition on the audio data in the policy information to obtain the audio text corresponding to the audio data, and collecting the text data, the image text and the audio text to obtain the policy text.
S2、对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词。S2. Perform word segmentation on the policy text, and extract feature words from the word segmentation obtained from the text to obtain user feature words.
本申请其中一个实际应用场景中,由于所述保单文本中包含大量的文本信息,若直接对所述保单文本进行分析,会占用大量的计算资源,导致分析效率低下,且大量数据混杂,会造成分析结果的不精确,因此,可对所述保单文本进行分词处理,并从所述分词的结果中提取出特征词,以减少后续对保单文本进行分析时的数据量,提高分析的效率和精确度。In one of the actual application scenarios of this application, since the policy text contains a large amount of text information, if the policy text is directly analyzed, it will occupy a large amount of computing resources, resulting in low analysis efficiency, and a large amount of data is mixed, which will cause The analysis results are imprecise. Therefore, word segmentation can be performed on the policy text, and feature words can be extracted from the result of the word segmentation, so as to reduce the amount of data in the subsequent analysis of the policy text and improve the efficiency and accuracy of the analysis. Spend.
本申请实施例中,参图2所示,所述对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词,包括:In the embodiment of the present application, as shown in FIG. 2, the described policy text is segmented, and the text segmentation obtained by word segmentation is subjected to feature word extraction to obtain user feature words, including:
S21、按照预设的分句符号将所述保单文本划分为多个文本分句;S21. Divide the policy text into multiple text clauses according to preset clause symbols;
S22、将所述多个文本分句中每一个文本分句按照不同的数据长度在预设的词典中进行检索,并将检索到的词语作为所述保单文本的文本分词;S22. Retrieve each of the plurality of text clauses in a preset dictionary according to different data lengths, and use the retrieved words as text word segmentation of the policy text;
S23、统计每一个所述文本分词的出现频率,以及每一个所述文本分词在所述保单文本中的位置信息;S23. Count the frequency of occurrence of each text participle, and the position information of each text participle in the policy text;
S24、根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,将所述关键度大于预设阈值的文本分词汇集为用户特征词。S24. Calculate the key degree of each text segment word according to the frequency of occurrence and the position information, and set the text segment vocabulary whose key degree is greater than a preset threshold as user characteristic words.
详细地,由于所述保单文本中包含大量的文本数据,为了提高对该保单文本进行分词的效率,可利用预设的分句符号大量的文本数据进行切分,以实现将保单文本划分为多个文本分句,进而减少每次进行分词时的数据量,提高分词效率,所述分句符号包括但不限于“,”、“。”、“……”。In detail, since the policy text contains a large amount of text data, in order to improve the efficiency of word segmentation of the policy text, a large amount of text data can be segmented using preset sentence symbols, so as to divide the policy text into multiple A text sentence, thereby reducing the amount of data for each word segmentation and improving word segmentation efficiency. The sentence symbols include but are not limited to ",", ".", "...".
具体地,所述词典为预先获取的包含多个分词的词典,可将每一个文本分句按照不同的数据长度在改词典中进行检索,并将检索到的分词,作为该保单文本的文本分词。Specifically, the dictionary is a pre-acquired dictionary containing multiple word segmentations, each text clause can be retrieved in the dictionary according to different data lengths, and the retrieved word segmentation can be used as the text segmentation of the policy text .
本申请实施例中,所述出现频率即每一个文本分词在所述保单文本的所有文本分词中出现的次数;所述位置信息是指每一个文本分词在所述保单文本中位置的先后顺序,例如,可将所述保单文本中的文本分词按照在所述保单文本中位置的先后顺序进行编号,每一个文本分词对应的编号即为该文本分词的位置信息。In the embodiment of the present application, the frequency of occurrence is the number of times each text participle appears in all text participles of the policy text; the position information refers to the sequence of positions of each text participle in the policy text, For example, the text participle in the policy text can be numbered according to the order of their positions in the policy text, and the number corresponding to each text participle is the position information of the text participle.
本申请实施例中,所述根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,包括:In the embodiment of the present application, the calculation of the key degree of each of the text word segmentation according to the frequency of occurrence and the position information includes:
利用如下特征值算法根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度:The following eigenvalue algorithm is used to calculate the key degree of each of the text word segmentation according to the frequency of occurrence and the position information:
K i=α*A i+β*B i K i =α*A i +β*B i
其中,K i为所述文本分词中第i个分词的关键度,A为所述文本分词中第i个分词的出现频率,B i为所述文本分词中第i个分词的位置信息,α和β为预设权重系数。 Wherein, K i is the key degree of the ith participle in the described text participle, A is the frequency of occurrence of the ith participle in the described text participle, Bi is the positional information of the ith participle in the described text participle, α and β are preset weight coefficients.
本申请实施例中,可选取所述关键度大于预设阈值的文本分词,并将选取的文本分词汇集为所述用户的用户特征词。In the embodiment of the present application, the word segmentation of the text whose key degree is greater than the preset threshold may be selected, and the selected text segmentation vocabulary set is the user characteristic word of the user.
S3、将所述用户特征词作为决策条件构建决策树模型。S3. Construct a decision tree model by using the user characteristic words as a decision condition.
本申请其中一个实际应用场景中,由于存在大量的服务,但所述用户并非对每一种服务均具有使用权限,因此,可利用所述用户特征词作为决策条件构建决策树,以便于后续利用构建的决策树从大量服务中筛选出可被所述用户获取的服务。In one of the actual application scenarios of this application, since there are a large number of services, but the user does not have the right to use each service, the user characteristic words can be used as decision conditions to construct a decision tree for subsequent use The constructed decision tree screens out services that can be obtained by the user from a large number of services.
本申请实施例中,参图3所示,所述将所述用户特征词作为决策条件构建决策树模型,包括:In the embodiment of the present application, as shown in FIG. 3, the construction of a decision tree model using the user characteristic words as a decision condition includes:
S31、从所述用户特征词中逐个选取其中一个特征词为目标特征词;S31. Select one of the characteristic words as the target characteristic word one by one from the user characteristic words;
S32、利用预设编译器将所述目标特征词编译为特征参数,利用所述特征参数对预设的决策函数进行赋值;S32. Using a preset compiler to compile the target feature word into a feature parameter, and use the feature parameter to assign a value to a preset decision function;
S33、利用赋值后的决策函数作为决策条件,生成决策树;S33. Using the assigned decision function as a decision condition to generate a decision tree;
S34、将所述用户特征词中所有特征词对应的决策树进行汇集,得到决策树模型。S34. Gather the decision trees corresponding to all the characteristic words in the user characteristic words to obtain a decision tree model.
示例性地,所述决策函数可以为:Exemplarily, the decision function may be:
Figure PCTCN2022087811-appb-000001
Figure PCTCN2022087811-appb-000001
其中,f(x)为所述决策函数的输出值,x为所述决策函数的参数,g(y)为所述决策函数的输入值。Wherein, f(x) is an output value of the decision function, x is a parameter of the decision function, and g(y) is an input value of the decision function.
详细地,可从所述用户特征词中逐个选取其中一个特征词为目标特征词,利用预设的编译器将该目标特征词编译为特征参数,并利用所述特征参数对所述决策函数的参数x进行赋值,其中,所述编译器包括但不限于Visual Studio编译器、Dev C++编译器。In detail, one of the characteristic words can be selected as the target characteristic word one by one from the user characteristic words, and the target characteristic word is compiled into a characteristic parameter by using a preset compiler, and the decision function of the decision function by the characteristic parameter is used Parameter x is assigned, wherein the compiler includes but not limited to Visual Studio compiler, Dev C++ compiler.
具体地,可利用赋值后的决策函数作为决策条件生成如下决策树:Specifically, the following decision tree can be generated by using the assigned decision function as the decision condition:
当所述决策树的输入值g(y)与所述决策树的参数x相同时,该决策树输出值f(x)=α;When the input value g(y) of the decision tree is the same as the parameter x of the decision tree, the output value f(x)=α of the decision tree;
当所述决策树的输入至g(y)与所述决策树的参数x不相同时,该决策树输出值f(x)=β。When the input to g(y) of the decision tree is different from the parameter x of the decision tree, the output value of the decision tree is f(x)=β.
S4、获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务。S4. Obtain the usage permission of the preset service, and use the decision tree model to screen out the available services for the user from the preset services according to the usage permission.
本申请实施例中,所述使用权限包括所述用户在获取每一种预设服务时需要的约束条件,例如,时间限制、年龄限制等。In the embodiment of the present application, the usage rights include constraints required by the user when obtaining each preset service, for example, time limit, age limit, and the like.
详细地,所述获取预设服务的使用权限的步骤,与S1中获取用户的保单信息的步骤一致在,在此不做赘述。In detail, the step of obtaining the use authority of the preset service is the same as the step of obtaining the user's policy information in S1, so it will not be repeated here.
本申请实施例中,可利用所述决策树对多种预设服务进行筛选,以判断所述多种预设服务中每一种预设服务的使用权限是否符合该用户的特征,进而筛选出所述用户符合条件,可以使用的服务。In the embodiment of the present application, the decision tree can be used to screen a variety of preset services to determine whether the use authority of each preset service in the multiple preset services conforms to the characteristics of the user, and then screen out The user meets the conditions and can use the service.
本申请实施例中,所述利用所述决策树根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务,包括:In the embodiment of the present application, the use of the decision tree to screen out the user's usable services from the preset services according to the usage authority includes:
从所述预设服务的使用权限中逐个选取其中一个使用权限为输入值;selecting one of the usage permissions from the preset service usage permissions one by one as an input value;
从所述决策树模型中逐个选取其中一个决策树为目标决策树,将所述输入值输入至所述目标决策树,得到所述目标决策树的输出结果,其中,所述输出结果包括所述输入值与所述目标决策树的参数相同,或者所述输入值与所述目标决策树的参数不同;Select one of the decision trees as the target decision tree one by one from the decision tree model, input the input value into the target decision tree, and obtain the output result of the target decision tree, wherein the output result includes the The input value is the same as the parameter of the target decision tree, or the input value is different from the parameter of the target decision tree;
汇集所有决策树的输出结果均为所述输入值与所述目标决策树的参数相同的使用权限对应的预设服务为可使用服务。The output result of collecting all the decision trees is that the preset service corresponding to the usage authority whose input value is the same as the parameter of the target decision tree is an available service.
例如,所述决策树模型中包含决策树a 1和决策树a 2,所述多个预设服务中包括服务A和服务B,选取决策树a 1为目标决策树,选取服务A的使用权限作为输入值;将输入值输入至所述决策树a 1,得到所述决策树a 1输出的所述输入值与所述决策树a 1的参数相同的输出结果;将输入值输入至所述决策树a 2,得到所述决策树a 2输出的所述输入值与所述决策树a 2的参数相同的输出结果;再选取服务B的实用权限作为输入值,将输入值输入至所述决策树b 1,得到所述决策树b 1输出的所述输入值与所述决策树b 1的参数不相同的输出结果;将输入值输入至所述决策树b 2,得到所述决策树b 2输出的所述输入值与所述决策树b 2的参数相同的输出结果,则只有服务A在所有决策树中的输入结果均为所述输入值与所述目标决策树的参数相同的输出结果,则确认服务A为所述用户的可使用服务。 For example, the decision tree model includes decision tree a 1 and decision tree a 2 , the multiple preset services include service A and service B, select decision tree a 1 as the target decision tree, and select the use authority of service A As an input value; input the input value into the decision tree a 1 to obtain the output result that the input value output by the decision tree a 1 is the same as the parameter of the decision tree a 1 ; input the input value into the Decision tree a 2 , obtain the output result that the input value output by the decision tree a 2 is the same as the parameter of the decision tree a 2 ; then select the practical authority of service B as the input value, and input the input value into the Decision tree b 1 , obtaining the output result that the input value output by the decision tree b 1 is different from the parameters of the decision tree b 1 ; inputting the input value into the decision tree b 2 , obtaining the decision tree The input value output by b2 is the same as the output result of the parameter of the decision tree b2 , then only the input results of service A in all decision trees are the same as the input value and the parameter of the target decision tree If the result is output, it is confirmed that service A is an available service for the user.
S5、根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。S5. Generate a service list according to the policy information and the available services, and push the service list to the user.
本申请实施例中,由于所述用户的可使用服务可能有多个,为了使用户可更明确地了解自己可使用哪些服务,可根据所述保单信息和所述可使用服务生成服务列表,进而想所述用户推荐该服务列表。In this embodiment of the application, since there may be multiple services available to the user, in order for the user to know more clearly which services they can use, a service list can be generated based on the policy information and the available services, and then The service list is recommended to the user.
例如,将所述保单信息和所述可使用服务填写至预先生成的空白数据表中,以生成所述服务列表,并将所述服务列表向所述用户进行展示。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.
本申请实施例能够对用户的保单信息进行分析,以提取该用户的保单信息中包含的关键词,进而通过提取的关键词构建决策树模型,利用构建的决策树模型对多个预设服务进行精准的条件筛选,进而向用户推送筛选出的服务,实现了对服务的精准筛选,提高了想用户进行服务发放的精确度。因此本申请提出的基于数据分析的服务分发方法,可以解决进行产品推荐时的精确度较低的问题。The embodiment of the present application can analyze the user's policy information to extract keywords contained in the user's policy information, and then construct a decision tree model through the extracted keywords, and use the constructed decision tree model to perform multiple preset services Accurate condition screening, and then push the selected services to users, realize the precise screening of services, and improve the accuracy of service delivery to users. Therefore, the service distribution method based on data analysis proposed in this application can solve the problem of low accuracy in product recommendation.
如图4所示,是本申请一实施例提供的基于数据分析的服务分发装置的功能模块图。As shown in FIG. 4 , it is a functional block diagram of a service distribution device based on data analysis provided by an embodiment of the present application.
本申请所述基于数据分析的服务分发装置100可以安装于电子设备中。根据实现的功能,所述基于数据分析的服务分发装置100可以包括文本转换模块101、特征词提取模块102、决策树构建模块103、服务筛选模块104及服务推送模块105。本申请所述模块也可 以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The data analysis-based service distribution apparatus 100 described in this application can be installed in an electronic device. According to the realized functions, the data analysis-based service distribution device 100 may 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 described in this application can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of the electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
所述文本转换模块101,用于获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;The text conversion module 101 is used to obtain the policy information of the user, and perform text conversion on the policy information to obtain the policy text;
所述特征词提取模块102,用于对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;The feature word extraction module 102 is configured to perform word segmentation on the policy text, and perform feature word extraction on the text word segmentation obtained by word segmentation to obtain user feature words;
所述决策树构建模块103,用于将所述用户特征词作为决策条件构建决策树模型;The decision tree construction module 103 is used to construct a decision tree model using the user characteristic words as a decision condition;
所述服务筛选模块104,用于获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;The service screening module 104 is configured to obtain the use authority of preset services, and use the decision tree model to screen out the services available to the user from the preset services according to the use authority;
所述服务推送模块105,用于根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。The service pushing module 105 is configured to generate a service list according to the policy information and the available services, and push the service list to the user.
详细地,本申请实施例中所述基于数据分析的服务分发装置100中所述的各模块在使用时采用与上述图1至图3中所述的基于数据分析的服务分发方法一样的技术手段,并能够产生相同的技术效果,这里不再赘述。In detail, each module described in the data analysis-based service distribution device 100 in the embodiment of the present application uses the same technical means as the data analysis-based service distribution method described in Figures 1 to 3 above. , and can produce the same technical effect, which will not be repeated here.
如图5所示,是本申请一实施例提供的实现基于数据分析的服务分发方法的电子设备的结构示意图。As shown in FIG. 5 , it is a schematic structural diagram of an electronic device implementing a service distribution method based on data analysis provided by an embodiment of the present application.
所述电子设备1可以包括处理器10、存储器11、通信总线12以及通信接口13,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如基于数据分析的服务分发程序。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 operable on the processor 10, such as based on data analysis service dispatcher.
其中,所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行基于数据分析的服务分发程序等),以及调用存储在所述存储器11内的数据,以执行电子设备的各种功能和处理数据。Wherein, the processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions packaged, including one or A combination of multiple central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors and various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (such as executing service distribution program based on data analysis, etc.), and call the data stored in the memory 11 to execute various functions of the electronic device and process data.
所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等,所述计算机可读存储介质可以是非易失性的,也可以是易失性的。所述存储器11在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备的应用软件及各类数据,例如基于数据分析的服务分发程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. , the computer-readable storage medium may be non-volatile or volatile. The storage 11 may be an internal storage unit of the electronic device in some embodiments, such as a mobile hard disk of the electronic device. The memory 11 can also be an external storage device of an electronic device in other embodiments, such as a plug-in mobile hard disk equipped on an electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD ) card, flash card (Flash Card), etc. Further, the storage 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various data installed in electronic equipment, such as codes of service distribution programs based on data analysis, but also can be used to temporarily store data that has been output or will be output.
所述通信总线12可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The communication bus 12 may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10 and the like.
所述通信接口13用于上述电子设备与其他设备之间的通信,包括网络接口和用户接口。可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备与其他电子设备之间建立通信连接。所述用户接口可以是显示器 (Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。The communication interface 13 is used for communication between the 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 are generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display) or an input unit (such as a keyboard (Keyboard)). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like. Wherein, the display may also be properly referred to as a display screen or a display unit, and is used for displaying information processed in the electronic device and for displaying a visualized user interface.
图5仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图5示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation to the electronic device 1, and may include fewer or more components, or combinations of certain components, or different arrangements of components.
例如,尽管未示出,所述电子设备还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device may also include a power supply (such as a battery) for supplying power to various components. Preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that Realize functions such as charge management, discharge management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components. The electronic device may also include various sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be repeated here.
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only for illustration, and are not limited by the structure in terms of the scope of the patent application.
所述电子设备1中的所述存储器11存储的基于数据分析的服务分发程序是多个指令的组合,在所述处理器10中运行时,可以实现:The service distribution program based on data analysis stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
具体地,所述处理器10对上述指令的具体实现方法可参考附图对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above instructions by the processor 10, reference may be made to the description of relevant steps in the corresponding embodiments in the drawings, and details are not repeated here.
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。所述计算机可读存储介质可以是易失性的,也可以是非易失性的。例如,所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the integrated modules/units of the electronic device 1 are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory).
本申请还提供一种计算机可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:The present application also provides a computer-readable storage medium, the readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, it can realize:
获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed devices, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。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 may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, the embodiments should be regarded as exemplary and not restrictive in all points of view, and the scope of the application is defined by the appended claims rather than the foregoing description, and it is intended that the scope of the present application be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in this application. Any reference sign in a claim should not be construed as limiting the claim concerned.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain (Blockchain), essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a 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. .
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一、第二等词语用来表示名称,而并不表示任何特定的顺序。In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or devices stated in the system claims may also be realized by one unit or device through software or hardware. The terms first, second, etc. are used to denote names and do not imply any particular order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application without limitation. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be Make modifications or equivalent replacements without departing from the spirit and scope of the technical solutions of the present application.

Claims (20)

  1. 一种基于数据分析的服务分发方法,其中,所述方法包括:A service distribution method based on data analysis, wherein the method includes:
    获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
    对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
    将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
    获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
    根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  2. 如权利要求1所述的基于数据分析的服务分发方法,其中,所述对所述保单信息进行文本转换,得到保单文本,包括:The service distribution method based on data analysis according to claim 1, wherein said performing text conversion on said policy information to obtain policy text comprises:
    提取所述保单信息中每一个数据的数据类型字段;Extracting the data type field of each data in the policy information;
    根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据;Divide 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 policy information to obtain image text corresponding to the image data;
    对所述保单信息中的音频数据进行语音识别,得到所述音频数据对应的音频文本;Perform speech recognition on the audio data in the policy information to obtain the audio text corresponding to the audio data;
    将所述文本数据、所述图像文本和所述音频文本汇集为保单文本。The text data, the image text and the audio text are assembled into a policy text.
  3. 如权利要求2所述的基于数据分析的服务分发方法,其中,所述根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据,包括:The service distribution method based on data analysis according to claim 2, wherein the data in the policy information is divided according to the data type field to obtain text data, image data and audio data, including:
    从所述保单信息中逐个选取其中的一个数据为目标数据;selecting one of the data as the target data one by one from the policy information;
    将所述目标数据的数据类型字段进行向量转换,得到数据类型向量;Perform vector conversion on the data type field of the target data to obtain a data type vector;
    分别计算所述数据类型向量与多个预设的数据类型之间的距离值,所述数据类型包括文本类型、图像类型和音频类型;Calculating distance values between the data type vector and multiple preset data types respectively, the data types including text type, image type and audio type;
    确定所述距离值最小的数据类型为所述目标数据的类型,并按照所述类型将所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据。Determining the data type with the smallest distance value as the type of the target data, and dividing the data in the policy information according to the type to obtain text data, image data and audio data.
  4. 如权利要求1所述的基于数据分析的服务分发方法,其中,所述对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词,包括:The service distribution method based on data analysis according to claim 1, wherein said performing word segmentation on said policy text, and extracting feature words from the text word segmentation obtained by word segmentation, to obtain user feature words, comprising:
    按照预设的分句符号将所述保单文本划分为多个文本分句;dividing the policy text into multiple text clauses according to preset clause symbols;
    将所述多个文本分句中每一个文本分句按照不同的数据长度在预设的词典中进行检索,并将检索到的词语作为所述保单文本的文本分词;Retrieving each of the plurality of text clauses in a preset dictionary according to different data lengths, and using the retrieved words as text segmentation of the policy text;
    统计每一个所述文本分词的出现频率,以及每一个所述文本分词在所述保单文本中的位置信息;Count the occurrence frequency of each of the text participle, and the position information of each of the text participle in the policy text;
    根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,将所述关键度大于预设阈值的文本分词汇集为用户特征词。The key degree of each text segment word is calculated according to the occurrence frequency and the position information, and the text segment vocabulary whose key degree is greater than a preset threshold is set as a user feature word.
  5. 如权利要求4所述的基于数据分析的服务分发方法,其中,所述根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,包括:The service distribution method based on data analysis according to claim 4, wherein said calculating the key degree of each of said text word segmentation according to said occurrence frequency and said location information comprises:
    利用如下特征值算法根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度:The following eigenvalue algorithm is used to calculate the key degree of each of the text word segmentation according to the frequency of occurrence and the position information:
    K i=α*A i+β*B i K i =α*A i +β*B i
    其中,K i为所述文本分词中第i个分词的关键度,A为所述文本分词中第i个分词的出现频率,B i为所述文本分词中第i个分词的位置信息,α和β为预设权重系数。 Wherein, K i is the key degree of the ith participle in the described text participle, A is the frequency of occurrence of the ith participle in the described text participle, Bi is the positional information of the ith participle in the described text participle, α and β are preset weight coefficients.
  6. 如权利要求1所述的基于数据分析的服务分发方法,其中,所述将所述用户特征词作为决策条件构建决策树模型,包括:The service distribution method based on data analysis according to claim 1, wherein said constructing a decision tree model using said user characteristic words as a decision condition includes:
    从所述用户特征词中逐个选取其中一个特征词为目标特征词;Select one of the characteristic words as the target characteristic word one by one from the user characteristic words;
    利用预设编译器将所述目标特征词编译为特征参数,利用所述特征参数对预设的决策函数进行赋值;Using a preset compiler to compile the target feature word into a feature parameter, and using the feature parameter to assign a preset decision function;
    利用赋值后的决策函数作为决策条件,生成决策树;Use the assigned decision function as the decision condition to generate a decision tree;
    将所述用户特征词中所有特征词对应的决策树进行汇集,得到决策树模型。Collect the decision trees corresponding to all the characteristic words in the user characteristic words to obtain a decision tree model.
  7. 如权利要求1至6中任一项所述的基于数据分析的服务分发方法,其中,所述利用所述决策树根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务,包括:The service distribution method based on data analysis according to any one of claims 1 to 6, wherein, using the decision tree to screen out the user's usable services, including:
    从所述预设服务的使用权限中逐个选取其中一个使用权限为输入值;selecting one of the usage permissions from the preset service usage permissions one by one as an input value;
    从所述决策树模型中逐个选取其中一个决策树为目标决策树,将所述输入值输入至所述目标决策树,得到所述目标决策树的输出结果,其中,所述输出结果包括所述输入值与所述目标决策树的参数相同,或者所述输入值与所述目标决策树的参数不同;Select one of the decision trees as the target decision tree one by one from the decision tree model, input the input value into the target decision tree, and obtain the output result of the target decision tree, wherein the output result includes the The input value is the same as the parameter of the target decision tree, or the input value is different from the parameter of the target decision tree;
    汇集所有决策树的输出结果均为所述输入值与所述目标决策树的参数相同的使用权限对应的预设服务为可使用服务。The output result of collecting all the decision trees is that the preset service corresponding to the usage authority whose input value is the same as the parameter of the target decision tree is an available service.
  8. 一种基于数据分析的服务分发装置,其中,所述装置包括:A device for distributing services based on data analysis, wherein the device includes:
    文本转换模块,用于获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;The text conversion module is used to obtain the policy information of the user, and perform text conversion on the policy information to obtain the policy text;
    特征词提取模块,用于对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;The characteristic word extraction module is used for carrying out word segmentation to described policy text, and carries out characteristic word extraction to the text word segmentation that word segmentation obtains, obtains user characteristic word;
    决策树构建模块,用于将所述用户特征词作为决策条件构建决策树模型;Decision tree construction module, used for constructing a decision tree model using the user feature words as a decision condition;
    服务筛选模块,用于获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;A service screening module, configured to obtain the use authority of preset services, and use the decision tree model to screen out the services available to the user from the preset services according to the use authority;
    服务推送模块,用于根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service push module, configured to generate a service list according to the policy information and the available services, and push the service list to the user.
  9. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device includes:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如下所述的基于数据分析的服务分发方法:The memory stores a computer program executable by the at least one processor, the computer program is executed by the at least one processor to enable the at least one processor to perform data analysis based services as described below Distribution method:
    获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
    对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
    将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
    获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
    根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  10. 如权利要求9所述的电子设备,其中,所述对所述保单信息进行文本转换,得到保单文本,包括:The electronic device according to claim 9, wherein the text conversion of the policy information to obtain the policy text includes:
    提取所述保单信息中每一个数据的数据类型字段;Extracting the data type field of each data in the policy information;
    根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据;Divide 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 policy information to obtain image text corresponding to the image data;
    对所述保单信息中的音频数据进行语音识别,得到所述音频数据对应的音频文本;Perform speech recognition on the audio data in the policy information to obtain the audio text corresponding to the audio data;
    将所述文本数据、所述图像文本和所述音频文本汇集为保单文本。The text data, the image text and the audio text are assembled into a policy text.
  11. 如权利要求10所述的电子设备,其中,所述根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据,包括:The electronic device according to claim 10, wherein the data in the policy information is divided according to the data type field to obtain text data, image data and audio data, including:
    从所述保单信息中逐个选取其中的一个数据为目标数据;selecting one of the data as the target data one by one from the policy information;
    将所述目标数据的数据类型字段进行向量转换,得到数据类型向量;Perform vector conversion on the data type field of the target data to obtain a data type vector;
    分别计算所述数据类型向量与多个预设的数据类型之间的距离值,所述数据类型包括文本类型、图像类型和音频类型;Calculating distance values between the data type vector and multiple preset data types respectively, the data types including text type, image type and audio type;
    确定所述距离值最小的数据类型为所述目标数据的类型,并按照所述类型将所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据。Determining the data type with the smallest distance value as the type of the target data, and dividing the data in the policy information according to the type to obtain text data, image data and audio data.
  12. 如权利要求9所述的电子设备,其中,所述对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词,包括:The electronic device according to claim 9, wherein said word segmentation is performed on the policy text, and feature word extraction is performed on the text word segmentation obtained by word segmentation to obtain user feature words, including:
    按照预设的分句符号将所述保单文本划分为多个文本分句;dividing the policy text into multiple text clauses according to preset clause symbols;
    将所述多个文本分句中每一个文本分句按照不同的数据长度在预设的词典中进行检索,并将检索到的词语作为所述保单文本的文本分词;Retrieving each of the plurality of text clauses in a preset dictionary according to different data lengths, and using the retrieved words as text segmentation of the policy text;
    统计每一个所述文本分词的出现频率,以及每一个所述文本分词在所述保单文本中的位置信息;Count the occurrence frequency of each of the text participle, and the position information of each of the text participle in the policy text;
    根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,将所述关键度大于预设阈值的文本分词汇集为用户特征词。The key degree of each text segment word is calculated according to the occurrence frequency and the position information, and the text segment vocabulary whose key degree is greater than a preset threshold is set as a user feature word.
  13. 如权利要求12所述的电子设备,其中,所述根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,包括:The electronic device according to claim 12, wherein said calculating the key degree of each said text word segmentation according to said occurrence frequency and said location information comprises:
    利用如下特征值算法根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度:The following eigenvalue algorithm is used to calculate the key degree of each of the text word segmentation according to the frequency of occurrence and the position information:
    K i=α*A i+β*B i K i =α*A i +β*B i
    其中,K i为所述文本分词中第i个分词的关键度,A为所述文本分词中第i个分词的出现频率,B i为所述文本分词中第i个分词的位置信息,α和β为预设权重系数。 Wherein, K i is the key degree of the ith participle in the described text participle, A is the frequency of occurrence of the ith participle in the described text participle, Bi is the positional information of the ith participle in the described text participle, α and β are preset weight coefficients.
  14. 如权利要求9所述的电子设备,其中,所述将所述用户特征词作为决策条件构建决策树模型,包括:The electronic device according to claim 9, wherein said constructing a decision tree model using said user characteristic words as a decision condition comprises:
    从所述用户特征词中逐个选取其中一个特征词为目标特征词;Select one of the characteristic words as the target characteristic word one by one from the user characteristic words;
    利用预设编译器将所述目标特征词编译为特征参数,利用所述特征参数对预设的决策函数进行赋值;Using a preset compiler to compile the target feature word into a feature parameter, and using the feature parameter to assign a preset decision function;
    利用赋值后的决策函数作为决策条件,生成决策树;Use the assigned decision function as the decision condition to generate a decision tree;
    将所述用户特征词中所有特征词对应的决策树进行汇集,得到决策树模型。Collect the decision trees corresponding to all the characteristic words in the user characteristic words to obtain a decision tree model.
  15. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下所述的基于数据分析的服务分发方法:A computer-readable storage medium, storing a computer program, wherein, when the computer program is executed by a processor, the following service distribution method based on data analysis is implemented:
    获取用户的保单信息,对所述保单信息进行文本转换,得到保单文本;Obtain the policy information of the user, perform text conversion on the policy information, and obtain the policy text;
    对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词;Carry out word segmentation to described policy text, and carry out feature word extraction to the text word segmentation that word segmentation obtains, obtain user feature word;
    将所述用户特征词作为决策条件构建决策树模型;Using the user characteristic words as a decision-making condition to construct a decision tree model;
    获取预设服务的使用权限,利用所述决策树模型根据所述使用权限从所述预设服务中筛选出所述用户的可使用服务;Obtaining the use authority of the preset service, and using the decision tree model to filter out the service available to the user from the preset service according to the use authority;
    根据所述保单信息和所述可使用服务生成服务列表,并将所述服务列表推送给所述用户。A service list is generated according to the policy information and the available services, and the service list is pushed to the user.
  16. 如权利要求15所述的计算机可读存储介质,其中,所述对所述保单信息进行文本转换,得到保单文本,包括:The computer-readable storage medium according to claim 15, wherein the text conversion of the policy information to obtain the policy text includes:
    提取所述保单信息中每一个数据的数据类型字段;Extracting the data type field of each data in the policy information;
    根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据 和音频数据;According to the data type field, the data in the policy information is divided to obtain text data, image data and audio data;
    对所述保单信息中的图像数据进行图像识别,得到图像数据对应的图像文本;performing image recognition on the image data in the policy information to obtain image text corresponding to the image data;
    对所述保单信息中的音频数据进行语音识别,得到所述音频数据对应的音频文本;Perform speech recognition on the audio data in the policy information to obtain the audio text corresponding to the audio data;
    将所述文本数据、所述图像文本和所述音频文本汇集为保单文本。The text data, the image text and the audio text are assembled into a policy text.
  17. 如权利要求16所述的计算机可读存储介质,其中,所述根据所述数据类型字段对所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据,包括:The computer-readable storage medium according to claim 16, wherein the data in the policy information is divided according to the data type field to obtain text data, image data and audio data, comprising:
    从所述保单信息中逐个选取其中的一个数据为目标数据;selecting one of the data as the target data one by one from the policy information;
    将所述目标数据的数据类型字段进行向量转换,得到数据类型向量;Perform vector conversion on the data type field of the target data to obtain a data type vector;
    分别计算所述数据类型向量与多个预设的数据类型之间的距离值,所述数据类型包括文本类型、图像类型和音频类型;Calculating distance values between the data type vector and multiple preset data types respectively, the data types including text type, image type and audio type;
    确定所述距离值最小的数据类型为所述目标数据的类型,并按照所述类型将所述保单信息中的数据进行划分,得到文本数据、图像数据和音频数据。Determining the data type with the smallest distance value as the type of the target data, and dividing the data in the policy information according to the type to obtain text data, image data and audio data.
  18. 如权利要求15所述的计算机可读存储介质,其中,所述对所述保单文本进行分词,并对分词得到的文本分词进行特征词提取,得到用户特征词,包括:The computer-readable storage medium according to claim 15, wherein said performing word segmentation on said policy text, and extracting feature words from the text word segmentation obtained by word segmentation, to obtain user feature words, comprising:
    按照预设的分句符号将所述保单文本划分为多个文本分句;dividing the policy text into multiple text clauses according to preset clause symbols;
    将所述多个文本分句中每一个文本分句按照不同的数据长度在预设的词典中进行检索,并将检索到的词语作为所述保单文本的文本分词;Retrieving each of the plurality of text clauses in a preset dictionary according to different data lengths, and using the retrieved words as text segmentation of the policy text;
    统计每一个所述文本分词的出现频率,以及每一个所述文本分词在所述保单文本中的位置信息;Count the occurrence frequency of each of the text participle, and the position information of each of the text participle in the policy text;
    根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,将所述关键度大于预设阈值的文本分词汇集为用户特征词。The key degree of each text segment word is calculated according to the occurrence frequency and the position information, and the text segment vocabulary whose key degree is greater than a preset threshold is set as a user feature word.
  19. 如权利要求18所述的计算机可读存储介质,其中,所述根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度,包括:The computer-readable storage medium according to claim 18, wherein said calculating the key degree of each said text word segmentation according to said occurrence frequency and said location information comprises:
    利用如下特征值算法根据所述出现频率和所述位置信息计算每一个所述文本分词的关键度:The following eigenvalue algorithm is used to calculate the key degree of each of the text word segmentation according to the frequency of occurrence and the position information:
    K i=α*A i+β*B i K i =α*A i +β*B i
    其中,K i为所述文本分词中第i个分词的关键度,A为所述文本分词中第i个分词的出现频率,B i为所述文本分词中第i个分词的位置信息,α和β为预设权重系数。 Wherein, K i is the key degree of the ith participle in the described text participle, A is the frequency of occurrence of the ith participle in the described text participle, Bi is the positional information of the ith participle in the described text participle, α and β are preset weight coefficients.
  20. 如权利要求15所述的计算机可读存储介质,其中,所述将所述用户特征词作为决策条件构建决策树模型,包括:The computer-readable storage medium according to claim 15, wherein said constructing a decision tree model using said user characteristic words as a decision condition comprises:
    从所述用户特征词中逐个选取其中一个特征词为目标特征词;Select one of the characteristic words as the target characteristic word one by one from the user characteristic words;
    利用预设编译器将所述目标特征词编译为特征参数,利用所述特征参数对预设的决策函数进行赋值;Using a preset compiler to compile the target feature word into a feature parameter, and using the feature parameter to assign a preset decision function;
    利用赋值后的决策函数作为决策条件,生成决策树;Use the assigned decision function as the decision condition to generate a decision tree;
    将所述用户特征词中所有特征词对应的决策树进行汇集,得到决策树模型。Collect the decision trees corresponding to all the characteristic words in the user characteristic words to obtain a decision tree model.
PCT/CN2022/087811 2021-08-31 2022-04-20 Data analysis-based service distribution method and apparatus, device, and storage medium WO2023029507A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111014113.3A CN113706322A (en) 2021-08-31 2021-08-31 Service distribution method, device, equipment and storage medium based on data analysis
CN202111014113.3 2021-08-31

Publications (1)

Publication Number Publication Date
WO2023029507A1 true WO2023029507A1 (en) 2023-03-09

Family

ID=78658148

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087811 WO2023029507A1 (en) 2021-08-31 2022-04-20 Data analysis-based service distribution method and apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN113706322A (en)
WO (1) WO2023029507A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706322A (en) * 2021-08-31 2021-11-26 康键信息技术(深圳)有限公司 Service distribution method, device, equipment and storage medium based on data analysis
CN115168848B (en) * 2022-09-08 2022-12-16 南京鼎山信息科技有限公司 Interception feedback processing method based on big data analysis interception

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9672497B1 (en) * 2013-11-04 2017-06-06 Snap-On Incorporated Methods and systems for using natural language processing and machine-learning to produce vehicle-service content
CN111274471A (en) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 Information pushing method and device, server and readable storage medium
CN112581297A (en) * 2020-12-18 2021-03-30 中国平安人寿保险股份有限公司 Information pushing method and device based on artificial intelligence and computer equipment
CN113222668A (en) * 2021-05-24 2021-08-06 中国平安财产保险股份有限公司 Value-added service pushing method, device, equipment and storage medium
CN113706322A (en) * 2021-08-31 2021-11-26 康键信息技术(深圳)有限公司 Service distribution method, device, equipment and storage medium based on data analysis

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275524A (en) * 2020-01-19 2020-06-12 北京众信易保科技有限公司 Insurance product recommendation method and system
CN111444944A (en) * 2020-03-16 2020-07-24 中国平安人寿保险股份有限公司 Information screening method, device, equipment and storage medium based on decision tree
CN113268615A (en) * 2021-05-25 2021-08-17 平安银行股份有限公司 Resource label generation method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9672497B1 (en) * 2013-11-04 2017-06-06 Snap-On Incorporated Methods and systems for using natural language processing and machine-learning to produce vehicle-service content
CN111274471A (en) * 2018-12-04 2020-06-12 北京嘀嘀无限科技发展有限公司 Information pushing method and device, server and readable storage medium
CN112581297A (en) * 2020-12-18 2021-03-30 中国平安人寿保险股份有限公司 Information pushing method and device based on artificial intelligence and computer equipment
CN113222668A (en) * 2021-05-24 2021-08-06 中国平安财产保险股份有限公司 Value-added service pushing method, device, equipment and storage medium
CN113706322A (en) * 2021-08-31 2021-11-26 康键信息技术(深圳)有限公司 Service distribution method, device, equipment and storage medium based on data analysis

Also Published As

Publication number Publication date
CN113706322A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN110705301B (en) Entity relationship extraction method and device, storage medium and electronic equipment
US8095547B2 (en) Method and apparatus for detecting spam user created content
US9652719B2 (en) Authoring system for bayesian networks automatically extracted from text
WO2023029507A1 (en) Data analysis-based service distribution method and apparatus, device, and storage medium
WO2023029508A1 (en) User portrait-based page generation method and apparatus, device, and medium
CN110598070B (en) Application type identification method and device, server and storage medium
CN112541338A (en) Similar text matching method and device, electronic equipment and computer storage medium
US20220284174A1 (en) Correcting content generated by deep learning
WO2019227711A1 (en) Method and apparatus for generating influenza prediction model, and computer-readable storage medium
CN112507663A (en) Text-based judgment question generation method and device, electronic equipment and storage medium
WO2023178978A1 (en) Prescription review method and apparatus based on artificial intelligence, and device and medium
CN113627160B (en) Text error correction method and device, electronic equipment and storage medium
CN112784589A (en) Training sample generation method and device and electronic equipment
CN115858886A (en) Data processing method, device, equipment and readable storage medium
WO2022227171A1 (en) Method and apparatus for extracting key information, electronic device, and medium
CN109697224B (en) Bill message processing method, device and storage medium
CN116150690A (en) DRGs decision tree construction method and device, electronic equipment and storage medium
US20230123711A1 (en) Extracting key value pairs using positional coordinates
CN113780473B (en) Depth model-based data processing method and device, electronic equipment and storage medium
CN114780688A (en) Text quality inspection method, device and equipment based on rule matching and storage medium
CN113707302A (en) Service recommendation method, device, equipment and storage medium based on associated information
CN115221875B (en) Word weight generation method, device, electronic equipment and storage medium
CN112214556B (en) Label generation method, label generation device, electronic equipment and computer readable storage medium
CN114185617B (en) Service call interface configuration method, device, equipment and storage medium
CN115525730B (en) Webpage content extraction method and device based on page weighting and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22862653

Country of ref document: EP

Kind code of ref document: A1