Data processing method and device, computer equipment and storage medium

By searching the data of the service provider and recipient after service settlement, extracting and classifying text content, and identifying service categories, the problem of poor accuracy of service record data is solved, and accurate update of service record data and scene recognition is achieved.

CN118897872APending Publication Date: 2024-11-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310492705.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-04
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

Due to the service diversity of service providers, the service business scenario cannot be accurately identified, resulting in poor recording accuracy of service record data.

Method used

After the service settlement is completed, the data of the service provider and the service recipient are found, text content is extracted, feature extraction and classification is performed, service categories are identified, and service record data is updated to improve the accuracy of the service record data.

Benefits of technology

By extracting and classifying service text data features, accurately identifying service categories, ensuring the accuracy of update processing of service record data, and improving the accuracy of service scenario recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897872A_ABST
    Figure CN118897872A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of searching service provider data of a service provider of a service and service receiver data of a service receiver under the condition that the service is completed; summarizing text contents extracted from the service provider data and the service receiver data to obtain service text data; performing feature extraction processing on the service text data to obtain text feature data; and identifying a service category of the service based on the text feature data, and updating service record data of the service receiver in the service category. According to the method, the service scenes of both service parties are fully mined through the service settlement data, the service text data are obtained, and the service category is identified, so that the service record data of the service receiver in the service category can be accurately updated, the accuracy of service scene identification is better improved, and the processing accuracy of the service record data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of computer technology and network technology, network-based service record technologies, such as membership systems, have emerged. The service record data of user accounts can be updated based on the service information provided by service providers to users in various service scenarios, thereby providing more differentiated services. For example, in business scenarios related to automobile services, users can register as car owner members, and then the service provider can provide users with refueling, charging, parking, highway toll payment, car washing, repair and maintenance services, and update the membership points information for the user account.

[0003] However, due to the diversity of services provided by service providers, it is impossible to accurately identify the business scenarios of the services, resulting in poor recording accuracy of service record data. Summary of the invention

[0004] Based on this, it is necessary to provide a data processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of service record data recording in response to the above technical problems.

[0005] In a first aspect, the present application provides a data processing method. The method comprises:

[0006] When the service is completed, searching for service provider data of a service provider of the service and service recipient data of a service recipient;

[0007] Based on the text contents extracted from the service provider data and the service recipient data respectively, aggregating and obtaining service text data;

[0008] Performing feature extraction processing on the service text data to obtain text feature data;

[0009] The service category of the service is identified based on the text feature data, and the service record data of the service recipient in the service category is updated.

[0010] In a second aspect, the present application further provides a data processing device. The device comprises:

[0011] A data search module, used to search for service provider data of a service provider of the service and service recipient data of a service recipient when the service is completed;

[0012] A text extraction module, configured to obtain service text data based on the text contents extracted from the service provider data and the service recipient data respectively;

[0013] A feature extraction module, used for performing feature extraction processing on the service text data to obtain text feature data;

[0014] A service classification module is used to identify the service category of the service based on the text feature data, and update the service record data of the service recipient in the service category.

[0015] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0016] When the service is completed, searching for service provider data of a service provider of the service and service recipient data of a service recipient;

[0017] Based on the text contents extracted from the service provider data and the service recipient data respectively, aggregating and obtaining service text data;

[0018] Performing feature extraction processing on the service text data to obtain text feature data;

[0019] The service category of the service is identified based on the text feature data, and the service record data of the service recipient in the service category is updated.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0021] When the service is completed, searching for service provider data of a service provider of the service and service recipient data of a service recipient;

[0022] Based on the text contents extracted from the service provider data and the service recipient data respectively, aggregating and obtaining service text data;

[0023] Performing feature extraction processing on the service text data to obtain text feature data;

[0024] The service category of the service is identified based on the text feature data, and the service record data of the service recipient in the service category is updated.

[0025] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0026] When the service is completed, searching for service provider data of a service provider of the service and service recipient data of a service recipient;

[0027] Based on the text contents extracted from the service provider data and the service recipient data respectively, aggregating and obtaining service text data;

[0028] Performing feature extraction processing on the service text data to obtain text feature data;

[0029] The service category of the service is identified based on the text feature data, and the service record data of the service recipient in the service category is updated.

[0030] The above-mentioned data processing method, device, computer equipment, storage medium and computer program product, after the service settlement is completed, first search for the service provider data of the service provider and the service recipient data of the service recipient based on the service settlement data, obtain the relevant data of both parties involved in the service, and then summarize the service text data based on the text content extracted from the service provider data and the service recipient data to identify the service category, that is, by first performing feature extraction processing on the service text data when identifying the service category, extracting text feature data from the text related to both parties of the service to accurately identify the service category of the service settlement data. And update the service record data of the service recipient in the service category, so as to ensure the accuracy of the service record data update processing. The present application fully mines the service scenarios of both parties of the service through the service settlement data, obtains the service text data, and then accurately identifies the service category by extracting and classifying the features of the service text data, so as to accurately update the service record data of the service recipient in the service category, better improve the accuracy of service scenario identification, and ensure the accuracy of service record data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 An application environment diagram of a data processing method in an embodiment;

[0032] Figure 2 is a flow chart of a data processing method in one embodiment;

[0033] Figure 3 A schematic diagram of the structure of a word skipping model in one embodiment;

[0034] Figure 4 A schematic diagram of the structure of a continuous bag-of-words model in one embodiment;

[0035] Figure 5 A schematic diagram of a pop-up window for inviting a car owner to membership in an embodiment;

[0036] Figure 6 A schematic diagram of point update and benefit push in one embodiment;

[0037] Figure 7 is a flowchart of a data processing method in one embodiment;

[0038] Figure 8 is a flow chart of a data processing method in another embodiment;

[0039] Fig. 9 is a structural block diagram of a data processing device in one embodiment;

[0040] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] This application relates to artificial intelligence (AI) technology. Artificial intelligence is the theory, method, technology and application system of using 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 other words, artificial intelligence is a comprehensive technology in computer science, which attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline involving a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing (NLP) technology and machine learning (ML) / deep learning and other major directions. This application specifically relates to natural language processing technology and machine learning technology in artificial intelligence technology.

[0043] Natural language processing is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language used by people in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies. Machine learning is a multi-disciplinary cross-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all fields of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and inductive learning.

[0044] It should be noted that the user information (including but not limited to user device information, user service information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0045] The data processing method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. When the user of the terminal 102 identifies the service category, so as to settle the points related to the current service category, first, the terminal 102 will feedback the relevant information of the service completion to the server 104 when the service is completed, and then the server 104 will search for the service provider data of the service provider and the service recipient data of the service recipient based on the information submitted by the terminal 102; based on the text content extracted from the service provider data and the service recipient data, the service text data is summarized; the service text data is subjected to feature extraction processing to obtain text feature data; the service category of the service is identified based on the text feature data, and the service record data of the service recipient in the service category is updated, and finally the update result is fed back to the terminal 102 to complete the complete process of updating the service record data. The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0046] In one embodiment, Figure 2 As shown, a data processing method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, and the following steps are included:

[0047] Step 201 : when the service is completed, search for the service provider data of the service provider and the service recipient data of the service recipient.

[0048] Among them, service completion means that the service has been provided by the service provider to the service recipient, and the service recipient has also completed a confirmation state. In one embodiment, the service completion state can be specifically characterized by service settlement data. Service settlement data refers to the settlement data generated based on the service content after the service provided by the service provider to the service recipient is completed. For example, in one embodiment, the service is specifically a purchase service. At this time, after the consumption is completed, the bill data related to the purchase service generated can be used as service settlement data. In another embodiment, the service is a rental service. At this time, after the rental is completed, the rental order related to the rental service generated can be used as service settlement data. The service provider is the object that provides services to the service recipient. For example, in the purchase service, the object that provides goods is the service provider, and in the rental service, the object that provides the rental goods is the service provider. The service recipient is the object that receives the service. The purchaser of the goods is the service recipient, and in the rental service, the object of the rental service provider's rental goods is the service recipient. Service provider data specifically includes service provider basic data and third-party data. For example, for merchant service providers, basic data specifically includes business license, merchant abbreviation, business industry and business scenario, etc. Third-party data is merchant-related description information extracted from third-party articles. Service recipient data includes service recipient behavior description data and service recipient basic description data.

[0049] Specifically, when the service provider completes the service for the service recipient, if the service recipient needs to process the service record related to the service project, the data processing method of the present application can be used to automatically identify the service category to which the service belongs, and then update the service record data of the service recipient in the service category, so as to achieve effective update of the service data and ensure the accuracy and efficiency of the service record data update. First, when the server 104 confirms the completion of the service based on the data provided by the terminal, it will directly search for the service provider data of the service provider and the service recipient data of the service recipient based on the representation data such as the service settlement data provided by the terminal 102. Among them, the representation data may contain service-related number data, so the service settlement data can be used to search for data, and the service provider data of the service provider and the service recipient data of the service recipient can be found. In one embodiment, the present application is specifically applied to the field of purchasing services. At this time, the terminal 102 can provide the server 104 with the serial number of the purchase service bill data, and the server 104 can search based on the serial number to obtain the bill data of the purchased service, and find the service provider data of the service provider and the service recipient data of the service recipient through the bill data.

[0050] Step 203: Based on the text contents extracted from the service provider data and the service recipient data respectively, service text data is obtained by aggregation.

[0051] Specifically, text content refers to text data that can be directly or indirectly extracted from the service provider data and the service recipient data. After obtaining the service provider data and the service recipient data, the text content contained therein can be directly identified, and the text content can be classified. Based on the category of the text content, the service text data under various dimensions related to the service settlement data can be obtained. In one embodiment, for the service provider, its basic data specifically includes business license, merchant abbreviation, business industry and business scene, among which the business license, merchant abbreviation and business industry can directly extract relevant text data. Business scenes can extract text information based on the scene pictures taken. For the service recipient, the behavior description data of the service recipient and the basic description data of the service recipient can directly extract text data. In particular, the service recipient data may contain positioning information. At this time, the relevant service text data can be obtained by positioning and identifying the points of interest in the service recipient's positioning point area.

[0052] Step 205: perform feature extraction processing on the service text data to obtain text feature data.

[0053] Among them, feature extraction is the process of converting text data into feature vectors. By performing feature extraction on service text data, variable-length text data can be converted into fixed-length numerical data, which can be conveniently used as input for machine learning models and realize category recognition processing related to text data.

[0054] Specifically, in order to extract effective features from the service text data to identify the service category, the service text data can be subjected to feature extraction processing, thereby converting the indefinite-length text data into fixed-length numerical data to obtain text feature data, thereby realizing category analysis for the service based on the text feature data. In one embodiment, text feature extraction can specifically include processes such as text preprocessing and feature model processing, wherein the text preprocessing is used for cleaning and word segmentation of the service text data, and the feature model processing is to extract features from the preprocessed text data through a pre-trained machine learning model to obtain text feature data. The machine learning model can specifically adopt a Word2Vec model, a bag of words model, or a term frequency-inverse document frequency model (TF-IDF), etc.

[0055] Step 207: Identify the service category of the service based on the text feature data, and update the service record data of the service recipient in the service category.

[0056] Among them, the present application can set multiple target categories based on the needs of classification, and the process of identifying service analogies is to analyze the service categories of the services through text feature data to identify which category of these target categories the service category of the current service belongs to. For example, the target categories can be divided into target categories such as car use services, shopping services, and entertainment services. Services such as car rental, refueling, parking, vehicle insurance, vehicle repair, vehicle maintenance, vehicle mortgage, and vehicle charging can be classified under the target category of car use services. The service record data is used to record the relevant records of the service recipient who has received services under the current target categories. For example, in one of the embodiments, the service record data can specifically be the number of services, so after each service is completed, the number of services can be added by one to complete the update of the service record data. In another embodiment, the service record data is service points. At this time, the service record data can be modified based on data such as the consumption parameters of the service recipient in this service.

[0057] Specifically, the scheme of the present application is mainly used to automatically identify the service category to which the service belongs, and then update the service record data of the service recipient in the service category. Therefore, after obtaining the text feature data, the service category of the service can be identified based on the text feature data, and then the service record data of the service recipient in the service category can be updated based on the identified service category. For the identification process of the service category, the extracted text feature data can be input into the trained machine learning model, and the machine learning model can be used for classification. Here, it can be implemented specifically by machine learning models such as Naive Bayes model (NBM), Logistic Regression model (Logistic Regression), Support Vector Machine (SVM), Multilayer Perceptron (MLP), etc. Then, the service record data of the service recipient in the service category can be updated after the service category is obtained. Here, specifically, after obtaining the service category, the historical service record data generated by the service recipient under the service category is first searched, and then the historical service record data is updated based on the relevant data of the current service. For example, for service score data, after finding the historical score, the historical score can be updated based on the new score generated by the service.

[0058] The above data processing method, after the service settlement is completed, first searches for the service provider data of the service provider and the service recipient data of the service recipient based on the service settlement data to obtain the relevant data of both parties involved in the service, and then summarizes the service text data based on the text content extracted from the service provider data and the service recipient data to identify the service category, that is, by first performing feature extraction processing on the service text data when identifying the service category, extracting text feature data from the text related to both parties of the service to accurately identify the service category of the service settlement data. And update the service record data of the service recipient in the service category, so as to ensure the accuracy of the service record data update processing. The present application fully mines the service scenarios of both parties of the service through the service settlement data to obtain the service text data, and then accurately identifies the service category by extracting and classifying the features of the service text data, so as to accurately update the service record data of the service recipient in the service category, better improve the accuracy of service scenario identification, and ensure the accuracy of service record data processing.

[0059] In one embodiment, step 201 includes: obtaining order number data after service settlement; based on the order number data, searching the order detail data corresponding to the service settlement data in the order database; extracting the service provider identification data, the service recipient identification data and the service recipient behavior description data in the order detail data; searching the service provider data based on the service provider identification data, searching the service recipient basic data based on the service recipient identification data, and summarizing the service recipient behavior description data and the service recipient basic data to obtain the service recipient data.

[0060] The order number data refers to the data used to find the service order after the service settlement is completed. Figure 2 In the application environment shown, after the service is completed, the terminal 102 can provide the order number data corresponding to the service to the server 104 to request the server 104 to process the service data related to the order. The order details data is the data of the order details found based on the order number. The service provider identification data is used to find the basic data related to the service provider, and the service recipient identification data is used to find the basic data of the service recipient. In addition, the recipient behavior description data such as the service name and service value parameters can also be extracted from the order details data.

[0061] Specifically, for the specific process of data processing, for the efficiency of data transmission, after the service is completed, the data processing process can be started based on the order number data after the service settlement. In order to obtain the specific service information corresponding to the order number data, the order details data corresponding to the service settlement data can be directly searched in the order database based on the order number data. Then, various detailed information such as the service provider identification data, the service recipient identification data, and the service recipient behavior description data are extracted from the order database, and then the service provider data is searched based on the service provider identification data, and the service recipient basic data is searched based on the service recipient identification data, and the service recipient behavior description data and the service recipient basic data are summarized to obtain the service recipient data, thereby completing the data access processing from both the service provider and the service recipient, completing the data mining and data collection processing, and obtaining various basic data that can be used for service classification. For example, in one of the embodiments, the scheme of the present application is specifically used to classify the service type of the purchased service. At this time, the service provider is specifically a merchant, and the service recipient is a user who purchases goods. At this time, the service provider data specifically includes the merchant basic data and the merchant third-party data, where the merchant basic data includes business license information (including the merchant's full name, business scope of enterprise type aggregation), merchant abbreviation (including business name), industry (such as catering / retail, transportation / refueling, life / entertainment, Internet services, real estate / finance, people's livelihood payment, medical care, education), business scene, offline venue (name of the venue and environmental photos), online information (online subject name and page screenshot content), other supplementary materials (business description / store photo / handheld ID photo / business model related supplementary description, etc.), and the merchant third-party data is extracted from the public account article. The characteristics of the main business scope can be used as an auxiliary and reference. The service recipient behavior description data is the product name and payment amount extracted from the order. The service recipient basic data refers to the user description data that can be found through the user identifier in the order. By aggregating these data, the service recipient data on each dimension can be obtained. In this embodiment, the order details are found through the service-related order number data, so as to effectively realize the data preparation and data mining work of the service data processing process and ensure the accuracy of service classification.

[0062] In one embodiment, step 203 includes: classifying the service provider data and the service recipient data respectively to obtain service dimension data; extracting text content in the service dimension data to obtain service dimension text data; and aggregating the service dimension text data to obtain service text data.

[0063] Among them, service dimension data refers to the data obtained after dimensional sorting of service provider data and service recipient data. Based on the service provider data and service recipient data that can be found, multiple different dimensions can be preset first, and then the found service provider data and service recipient data can be sorted and classified into these dimensions to obtain the sorted service dimension data. The found service dimension data are not necessarily all text. At this time, it is necessary to convert the non-text data into text for analysis, that is, convert all service dimension data into text for processing, and finally obtain the service text data by summarizing the service dimension text data under each dimension.

[0064] Specifically, the service provider data and the service recipient data can be divided into data of different dimensions. For example, for the service provider data, it can include data of dimensions such as the full name of the merchant, the type of enterprise, and the scope of business. For the service recipient, it can also be divided into dimensional data such as user basic data and user historical data. Therefore, when extracting text content, the service provider data and the service recipient data can be classified and processed respectively to obtain service dimension data. After obtaining the service dimension data, for the convenience of subsequent processing, the text content in the service dimension data can be extracted first to obtain the service dimension text data. Here, for the text content, it can be directly extracted, and for non-text content, it is necessary to process it through the text data extraction method corresponding to the dimension data. For example, in one of the embodiments, the dimension data includes environmental photos of the offline places of the service provider, that is, it includes image data. At this time, after identifying the image data in the service dimension data, the image data can be directly subjected to optical character recognition processing to obtain the service dimension text data of the image data. By means of optical character recognition, the image data in the service dimension data can be converted into text data. In another embodiment, the service dimension data includes the location coordinate data of the service. In order to convert it into text data, the map point of interest positioning processing can be performed based on the location coordinate data to obtain the points of interest near the location coordinate data, and then the point of interest description data related to these points of interest are found, and the point of interest description data is used as the service dimension text data of the location coordinate data. The location coordinates are thereby converted into service dimension text data. After extracting the text of all dimensions in the service dimension data, the service dimension text data can be summarized to obtain complete service text data, and these service text data can be used as the basis for subsequent classification processing. In this embodiment, data classification is performed through data dimensions, which can effectively complete the sorting of service-related data such as service provider data and service recipient data, thereby ensuring the accuracy of service classification.

[0065] In one embodiment, feature extraction processing is performed on service text data, and the obtained text feature data includes: performing text cleaning processing and word segmentation processing on the service text data to obtain preprocessed text data; performing text feature extraction processing on the preprocessed text data to obtain the text feature data of the service text data.

[0066] Among them, text cleaning processing and word segmentation processing are the preprocessing processes of text feature extraction processing. Text cleaning processing is mainly to remove useless punctuation marks, numbers, special characters, etc. in the text data to reduce the impact of noise on the model. Word segmentation is to divide the text into individual words, which is the basis for subsequent feature extraction and text vectorization. In addition, the preprocessing process can also include the process of removing stop words, such as removing some common meaningless words, such as "de", "shi", etc. In addition, it can also include preprocessing processes such as part-of-speech tagging, entity recognition, and text normalization.

[0067] Specifically, the process of feature extraction of service text data in the solution of this application mainly includes two processing processes: preprocessing process and text feature extraction. By performing preprocessing such as noise removal, stop word removal, and word segmentation on the input text, the processed preprocessed text data is obtained, and then text feature extraction processing is performed on the pre-trained text data, thereby effectively ensuring the effectiveness of text feature extraction processing. In one of the embodiments, the text cleaning processing specifically includes the process of cleaning various abnormal data. Among them, for missing data: if the data of some important features is seriously missing, it will have a greater impact on the classification process, and these data should be discarded or filled by interpolation. Only when some feature data is slightly missing, the average or median value of this feature can be considered for filling. For abnormal data: some records with feature values significantly outside the normal distribution range may indicate data legality problems, and these data should also be deleted. For example, the transaction amount is negative, etc. For outdated data: if the data covers a long period of time and the features have changed greatly in the most recent period and the old ones are discarded and the new ones are adopted, the outdated data will have a greater impact on the classification result, and the outdated data needs to be appropriately discarded. For unexplainable data: records for which no reasonable explanation can be given for certain text features and their impact on the classification result should also be deleted to avoid introducing too much noise. In one of the embodiments, the text preprocessing can be specifically performed quickly through the NLTK library in Python. In this embodiment, through text cleaning processing and word segmentation processing, the service text data can be effectively completed, thereby ensuring the effectiveness of the text feature extraction processing process and the classification effect of the classification processing.

[0068] In one embodiment, text feature extraction is performed on preprocessed text data to obtain text feature data of service text data, including: word vector prediction is performed on the preprocessed text data to obtain a word vector for each word in the preprocessed text data; feature words in the preprocessed text data are identified; word vectors of the feature words are mapped based on context data of the feature words to obtain feature vectors of the feature words; and word vectors of the feature words and feature vectors of the feature words are aggregated to obtain text feature data of the service text data.

[0069] Among them, word vector prediction refers to the process of converting words in preprocessed text data into vector data. The value of each dimension of the word vector represents a feature with certain semantic and grammatical interpretations. Therefore, each dimension of the word vector can be called a word feature. For feature words, feature words are selected based on the business vocabulary related to the service, and relevant features are extracted only from the vector representation of the feature word. Frequent words or words with nouns as the part of speech are generally selected as feature words. Mapping the word vector of the feature word based on the context data of the feature word refers to mapping the word vector of the feature word based on the context word vectors before and after the feature word to obtain the updated feature word vector representation, that is, the feature vector of the feature word. The mapping processing method can specifically include the skip-gram model and the continuous bag of words model (CBOW for short). Aggregation refers to a method of fusing different feature vectors. The aggregation method can specifically be weighted average or maximum value.

[0070] Specifically, the solution of the present application can specifically use the Word2Vec model to perform feature extraction and text vectorization on the text. Word2Vec is a commonly used word vector representation method, which can convert text into a numerical vector. The core idea of ​​Word2Vec is to use context to learn the vector representation of each word, so that semantically similar words are closer in the vector space. First, the preprocessed text data is processed by word vector prediction to obtain the word vector of each word in the preprocessed text data. The word vector prediction here can be specifically implemented by one-hot encoding, and the preprocessed text data is converted into a word vector representation, and then by specifying a feature word, the word vector of the feature word is mapped based on the context data of the feature word to obtain the feature vector of the feature word. The mapping process here can be specifically implemented by the skip-gram model and the continuous bag of words (CBOW) model, where the skip-gram model can refer to Figure 3 As shown, the continuous bag of words model can refer to Figure 4, and then the feature vector corresponding to the feature word can be obtained directly according to the word vector representation obtained by the feature word in the Word2Vec model, and finally the feature word in each text and its corresponding feature vector representation in the Word2Vec model are combined as the representation of the text. The feature vector is aggregated by weighted average or maximum value, and the text feature data of the service text data is obtained. The text feature data of the service text data obtained here specifically refers to the text feature data corresponding to each service dimension, and then the service classification processing can be realized based on the text feature data corresponding to all the service dimensions obtained. In one embodiment, the process of text feature extraction processing can be realized by other methods such as bag of words model (Bag of Words) or word frequency-inverse document frequency model (TF-IDF). In this embodiment, by extracting the text features of the pre-processed text data, the text feature data under each service dimension can be effectively extracted from the pre-processed text data, so as to accurately perform service classification processing and ensure the accuracy of service classification processing.

[0071] In one embodiment, identifying the service category of a service based on text feature data includes: classifying the text feature data through a naive Bayesian model to obtain a category prior probability of each service category and a conditional probability of each text feature in the text feature data in each service category, wherein the naive Bayesian model is obtained by training an initial naive Bayesian model with historical service text data; estimating the posterior probability based on the feature weight, category prior probability and conditional probability of each text feature to determine the posterior probability of each service category corresponding to the text feature data; and taking the service category with the maximum posterior probability as the service category of the service.

[0072] Among them, the naive Bayes model is a model for classification processing based on the Bayesian principle. This application implements classification through the trained naive Bayes model. The input data of the naive Bayes model is text feature data, and the output data is the final service category classification result. Naive Bayes is a classification algorithm based on probability statistics. It assumes that all features are independent of each other. The posterior probability of each category can be calculated using the Bayesian formula for classification. It can calculate the prior probability of each category and the conditional probability of each feature under each category. For a new set of text feature data, the posterior probability of belonging to each category can be calculated, and the category with the largest posterior probability is selected as the prediction result.

[0073] Specifically, the scheme of the present application specifically uses a naive Bayesian model to classify service categories. First, the initial naive Bayesian model is trained by historical service text data to obtain an available naive Bayesian model. When classification is required, the text feature data is input into the naive Bayesian model, and the text feature data is classified by the naive Bayesian model to obtain the category prior probability of each service category and the conditional probability of each text feature in the text feature data in each service category. Then, the naive Bayesian model will estimate the posterior probability based on the feature weight, category prior probability and conditional probability of each text feature, and determine the posterior probability of each service category corresponding to the text feature data; finally, the service category with the maximum posterior probability is used as the service category of the service to realize the classification process of the service. In other embodiments, in addition to the naive Bayesian model, the classification process can also be realized by models such as logistic regression model, support vector machine, and multi-layer perceptron. In this embodiment, the naive Bayesian model is used to realize service classification based on text feature data, which can effectively ensure the accuracy of service classification processing and data processing effect.

[0074] In one of the embodiments, it also includes: extracting historical text feature data of historical service text data; performing feature importance estimation processing on each text feature in the historical text feature data to obtain a feature importance score for each text feature; and assigning a feature weight to each text feature based on the feature importance score of each text feature.

[0075] Feature importance refers to the degree of influence of different features on the prediction results of the model in the machine learning model. Since text feature data can be divided into text features under multiple dimensions, and the contribution of text features of different dimensions to classification is also different, it is necessary to assign feature weights to different text features through feature importance estimation, so that in the text classification process, the feature weights can be combined for classification processing to improve the accuracy of text classification.

[0076] Specifically, before text classification processing is performed, feature importance estimation processing can be performed in advance on each text feature in the historical text feature data to assign feature weights to different text features, thereby ensuring the accuracy of service classification processing based on text features. The feature importance estimation processing can be specifically implemented by feature importance scoring, and feature importance scoring can be specifically implemented using a post-training scoring model. Feature importance scores are obtained by algorithms such as gradient boosting tree models and random forest models, and feature weights are set accordingly. In another embodiment, the process of assigning feature weights can also be implemented by expert scoring or feature grouping, and expert scoring refers to the business experts scoring each feature according to the degree of influence on service classification, and then normalizing it to the range of [0,1] as the weight. Feature grouping refers to dividing the text features of each dimension into three groups: A, B, and C. Group A is the main influencing feature with a higher weight, Group B is the secondary influencing feature with a medium weight, and Group C has a lower weight. Or it can be implemented directly by iteratively training the naive Bayes model, and by repeatedly training the model, the weights of different features are gradually adjusted until the model performance no longer continues to improve or reaches the expected improvement. In this embodiment, by assigning feature weights to various text features, service classification can be effectively performed in combination with feature importance, thereby improving the accuracy of service classification.

[0077] In one of the embodiments, it also includes: extracting historical text feature data of historical service text data; labeling the historical text feature data with service categories to obtain model training data and model testing data; performing model training processing on the initial naive Bayes model through the model training data to obtain the naive Bayes model to be tested; performing model testing processing on the naive Bayes model to be tested through the model testing data, and when the naive Bayes model to be tested passes the model test, the naive Bayes model to be tested is used as the naive Bayes model.

[0078] Specifically, the scheme of the present application also includes a training process of a naive Bayesian model. At the beginning of the training, the historical text feature data of the historical service text data can be first obtained, for example, multiple groups of historical service text data that can be used as classification targets within one month are obtained as the basic data for model training, and the historical text feature data is extracted. The service category of the historical text feature data is annotated by manual annotation and the like, and the data after the category annotation is divided into two groups: model training data and model test data. The initial naive Bayesian model is continuously iteratively trained through the model training data, and the model parameters are continuously optimized during the iteration process. When the iteration is completed, the naive Bayesian model to be tested can be model tested through the model test data, and the model availability is evaluated through the prediction results of the naive Bayesian model to be tested on the model test data. When the naive Bayesian model to be tested passes the model test, the naive Bayesian model to be tested is used as the naive Bayesian model. In this embodiment, the naive Bayes model is supervisedly trained through the historical text feature data of the historical service text data, and the model availability is judged based on the model test results, so that a naive Bayes model that can achieve effective classification can be obtained, thereby ensuring the accuracy of the classification process.

[0079] In one embodiment, a naive Bayes model to be tested is subjected to model testing through model testing data. When the naive Bayes model to be tested passes the model test, the naive Bayes model to be tested is used as a naive Bayes model, including: performing model testing on the naive Bayes model to be tested through model testing data to obtain a model testing result; constructing a confusion matrix based on the model testing result; obtaining a model evaluation index based on the confusion matrix; when the model evaluation index indicates that the naive Bayes model to be tested passes the model test, the naive Bayes model to be tested is used as a naive Bayes model.

[0080] The confusion matrix is ​​a two-dimensional matrix in which rows represent true categories and columns represent predicted categories. The confusion matrix helps us understand the difference between the predicted results of the classifier and the true results. The model evaluation indicators include accuracy, precision, recall, F1 value and other indicator parameters.

[0081] Specifically, the solution of the present application determines the usability of the naive Bayesian model to be tested by establishing a confusion matrix. After the naive Bayesian model to be tested performs classification prediction on the model test data, the positive and negative examples of the true value and the predicted value can be determined based on the classification prediction results and the labels of the test data, thereby constructing a confusion matrix. The constructed confusion matrix can be shown in Table 1:

[0082] Table 1: Structure of the confusion matrix

[0083] True value / predicted value Positive Negative Positive TP (True Positive) FN (False Negative) Negative FP (False Positive) TN (True Negative)

[0084] Among them, TP represents the number of true positive examples, that is, the number of samples correctly predicted as positive examples by the naive Bayesian model to be tested; FP represents the number of false positive examples, that is, the number of samples that the naive Bayesian model to be tested mistakenly predicts as positive examples by negative examples; FN represents the number of false negative examples, that is, the number of samples that the naive Bayesian model to be tested mistakenly predicts as negative examples by positive examples; TN represents the number of true negative examples, that is, the number of samples correctly predicted as negative examples by the naive Bayesian model to be tested. Using the confusion matrix, multiple performance indicators can be further calculated, such as accuracy, precision, recall, F1 value, etc., for example:

[0085] Accuracy: Accuracy is the ratio of the number of samples correctly predicted by the naive Bayes model to be tested to the total number of samples. The calculation formula is:

[0086] Accuracy = (TP+TN) / (TP+TN+FP+FN)

[0087] Precision: Precision is the proportion of samples that are actually positive among the samples predicted as positive by the naive Bayes model to be tested. The calculation formula is:

[0088] Precision = TP / (TP+FP)

[0089] Recall: Recall is the proportion of samples that are correctly predicted as positive examples by the naive Bayes model to be tested among all samples that are truly positive examples. The calculation formula is:

[0090] Recall = TP / (TP+FN)

[0091] F1-Score: F1-Score is the harmonic mean of precision and recall, and is an indicator for comprehensively evaluating the performance of the naive Bayes model to be tested. The calculation formula is:

[0092] F1 value = 2*precision*recall / (precision+recall)

[0093] After obtaining the evaluation indicators of each model, it can be determined whether the performance of the current naive Bayesian model to be tested meets the requirements of the service classification process based on the classification requirements. When the performance of the naive Bayesian model to be tested is determined to be up to standard based on the evaluation indicators, the model can be determined to have passed the test, and the naive Bayesian model to be tested is used as the naive Bayesian model. In this embodiment, the performance of the naive Bayesian model to be tested is evaluated by establishing a confusion matrix, so as to select a more effective naive Bayesian model to ensure the accuracy of service classification.

[0094] In one embodiment, the service record data includes points data, and updating the service record data of the service recipient in the service category in step 207 includes: searching for the original points parameters of the service recipient in the service category according to the service category of the service; searching for the service settlement data of the service, and extracting the original points parameters in the service settlement data; obtaining the points change parameters based on the points ratio and points parameters of the service recipient; updating the original points parameters based on the points change parameters to obtain the points data of the service recipient in the service category.

[0095] Among them, the original points parameter refers to the existing points data of the current service recipient under the current service category, and the service points parameter in the service settlement data is the parameter used for service settlement data to calculate points. For example, in purchasing services, the consumption parameters of the user's purchase of items can be used as service points parameters. The points ratio of the service recipient is the ratio of the service points parameter to the actual points. For example, the consumption parameters of the user's purchase of items can be converted into points at a ratio of 0.1, and different membership levels can be preset, and then different points ratios can be set for users of different membership levels.

[0096] Specifically, the scheme of the present application can be specifically applied to the field of updating the integral data. After the service is settled, the service can be directly classified based on the relevant data of the service, and then the integral data of the service recipient under the corresponding service category can be updated. After the service classification is completed, the original integral parameters of the service recipient in the service category can be found according to the service category of the service, that is, the existing integrals of the service recipient under the service category of the current service can be determined, and then the service settlement data of the service can be found, and the service integral parameters in the service settlement data can be extracted; based on the integral ratio of the service recipient and the service integral parameter, the integral change parameter is obtained to determine how many new points are generated for the service provided to the service provider, and then the original integral parameter is updated based on the integral change parameter to obtain the integral data of the service recipient in the service category, that is, the original integral parameter is updated according to the newly generated integral. In one embodiment, after the integral update is completed, the credential information can also be pushed to the service recipient to inform the user of the change of the member's integral. In this embodiment, by extracting the service integral parameter and the integral ratio to determine the integral change parameter, and then updating the integral data, the efficiency and accuracy of the integral update can be effectively guaranteed.

[0097] The present application also provides an application scenario, and the application scenario applies the above data processing method. Specifically, the application of the data processing method in the application scenario is as follows:

[0098] like Figure 5 As shown in Figure 1, when a user registers for the car owner membership service of the payment platform, the platform can allocate car owner membership-related points and membership services to the car owner based on the car owner's car usage behavior. Figure 6 As shown, the payment platform can use the data processing method of this application to identify the car-related service content from the user's service information on the payment platform, such as refueling, charging, parking, highway toll payment, car washing, repair and maintenance, etc., and then the payment platform can convert the points according to the service parameters involved in the service, and automatically register the user in the points account system under the car owner membership. At the same time, the user can automatically or manually click to collect the points. The accumulated points can be exchanged for rights and interests, and the payment platform can accurately recommend the rights and interests that the car owner may need. For the process of service classification and point calculation, please refer to Figure 7As shown, first, after the payment platform identifies the services related to the car owner member through service information, the service provider data of the service provider and the service recipient data of the service recipient are found, which specifically includes the user's behavior description data, user basic data, merchant basic data and merchant third-party data to extract the text content and summarize the service text data. In the data extraction process, the order number data after the service settlement can be obtained; based on the order number data, the order details data corresponding to the service settlement data is found in the order database; the service provider identification data, service recipient identification data and service recipient behavior description data in the order details data are extracted; based on the service provider identification data, the service provider data is found, based on the service recipient identification data, the service recipient basic data is found, and the service recipient behavior description data and service recipient basic data are summarized to obtain the service recipient data. Then the service provider data and service recipient data are classified and processed respectively to obtain service dimension data; the text content in the service dimension data is extracted to obtain the service dimension text data; the service dimension text data is summarized to obtain the service text data. At the same time, for the image data in the service dimension data, the image data is processed by optical character recognition to obtain the service dimension text data of the image data. For example, for the location coordinate data, the map interest point positioning processing can be performed to obtain the interest point description data of the location coordinate data, and the interest point description data is used as the service dimension text data of the location coordinate data. Then, the service text data is subjected to feature extraction processing to obtain text feature data, which specifically includes two processes: text preprocessing and Word2Vec processing. The text preprocessing includes text cleaning, text segmentation, part-of-speech tagging, entity recognition and text normalization. For the Word2Vec processing process, the preprocessed text data is subjected to word vector prediction processing to obtain the word vector of each word in the preprocessed text data; the feature words in the preprocessed text data are identified; the word vector of the feature word is mapped based on the context data of the feature word to obtain the feature vector of the feature word; the word vector of the feature word and the feature vector of the feature word are aggregated to obtain the text feature data of the service text data. Then the text feature data can be classified through the Naive Bayes model to obtain the category prior probability of each service category and the conditional probability of each text feature in the text feature data in each service category. The Naive Bayes model is obtained by training the initial Naive Bayes model with historical service text data; the posterior probability is estimated based on the feature weight, category prior probability and conditional probability of each text feature to determine the posterior probability of each service category corresponding to the text feature data; the service category with the maximum posterior probability is taken as the service category of the service.For text feature weights, historical text feature data of historical service text data can be extracted; feature importance estimation processing is performed on each text feature in the historical text feature data to obtain feature importance scores of each text feature; feature weights are assigned to each text feature based on the feature importance scores of each text feature. For the model training process, historical text feature data of historical service text data can be extracted; service category annotation is performed on the historical text feature data to obtain model training data and model test data; model training processing is performed on the initial naive Bayes model through the model training data to obtain the naive Bayes model to be tested; model testing processing is performed on the naive Bayes model to be tested through the model test data to obtain model test results; a confusion matrix is ​​constructed based on the model test results; a model evaluation index is obtained based on the confusion matrix; when the model evaluation index indicates that the naive Bayes model to be tested passes the model test, the naive Bayes model to be tested is used as the naive Bayes model. When the service category is determined to be a car-related service through classification, the user's car owner membership points can be looked up, and then the points change parameters can be obtained based on the service points parameters in the service settlement data of the current service; finally, the points change parameters are added to the car owner membership points to update the car owner membership points for the user.

[0099] In one embodiment, the complete process of the data processing method of the present application can be referred to Figure 8As shown, it includes: step 801, obtaining the order number data after the service settlement. Step 803, based on the order number data, searching the order details data corresponding to the service settlement data in the order database. Step 805, extracting the service provider identification data, the service recipient identification data and the service recipient behavior description data in the order details data. Step 807, searching the service provider data based on the service provider identification data, searching the service recipient basic data based on the service recipient identification data, and summarizing the service recipient behavior description data and the service recipient basic data to obtain the service recipient data. Step 809, classifying the service provider data and the service recipient data respectively to obtain the service dimension data. Step 811, extracting the text content in the service dimension data to obtain the service dimension text data. Step 813, summarizing the service dimension text data to obtain the service text data. Step 815, performing text cleaning and word segmentation processing on the service text data to obtain the pre-processed text data. Step 817, performing text feature extraction processing on the pre-processed text data to obtain the text feature data of the service text data. Step 819, classify the text feature data through the naive Bayes model to obtain the category prior probability of each service category and the conditional probability of each text feature in the text feature data in each service category. Step 821, perform posterior probability estimation based on the feature weight, category prior probability and conditional probability of each text feature, and determine the posterior probability of the text feature data corresponding to each service category. Step 823, take the service category with the maximum posterior probability as the service category of the service. Step 825, according to the service category of the service, find the original integral parameter of the service recipient in the service category. Step 827, find the service settlement data of the service, and extract the service integral parameter in the service settlement data. Step 829, based on the integral ratio of the service recipient and the service integral parameter, obtain the integral change parameter. Step 831, update the original integral parameter based on the integral change parameter to obtain the integral data of the service recipient in the service category.

[0100] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0101] Based on the same inventive concept, the embodiment of the present application also provides a data processing device for implementing the data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more data processing device embodiments provided below can refer to the limitations on the data processing method above, and will not be repeated here.

[0102] In one embodiment, Fig. 9 As shown, a data processing device is provided, comprising:

[0103] The data search module 902 is used to search for the service provider data of the service provider and the service recipient data of the service recipient when the service is completed.

[0104] The text extraction module 904 is used to obtain service text data based on the text contents extracted from the service provider data and the service recipient data respectively.

[0105] The feature extraction module 906 is used to perform feature extraction processing on the service text data to obtain text feature data.

[0106] The service classification module 908 is used to identify the service category of the service based on the text feature data, and update the service record data of the service recipient in the service category.

[0107] In one embodiment, the data search module 902 is specifically used to: obtain the order number data after the service settlement; based on the order number data, search the order detail data corresponding to the service settlement data in the order database; extract the service provider identification data, the service recipient identification data and the service recipient behavior description data in the order detail data; search for the service provider data based on the service provider identification data, search for the service recipient basic data based on the service recipient identification data, and summarize the service recipient behavior description data and the service recipient basic data to obtain the service recipient data.

[0108] In one embodiment, the text extraction module 904 is specifically used to: classify the service provider data and the service recipient data respectively to obtain service dimension data; extract the text content in the service dimension data to obtain service dimension text data; and summarize the service dimension text data to obtain service text data.

[0109] In one embodiment, the service dimension data includes image data and location coordinate data, and the text extraction module 904 is specifically used to: identify the image data in the service dimension data, perform optical character recognition processing on the image data, and obtain service dimension text data of the image data; perform map point of interest positioning processing based on the location coordinate data to obtain point of interest description data of the location coordinate data, and use the point of interest description data as the service dimension text data of the location coordinate data.

[0110] In one embodiment, the feature extraction module 906 is specifically used to: perform text cleaning and word segmentation processing on the service text data to obtain pre-processed text data; perform text feature extraction processing on the pre-processed text data to obtain text feature data of the service text data.

[0111] In one embodiment, the feature extraction module 906 is also used to: perform word vector prediction processing on the preprocessed text data to obtain the word vector of each word in the preprocessed text data; identify feature words in the preprocessed text data; map the word vectors of the feature words based on the context data of the feature words to obtain the feature vectors of the feature words; aggregate the word vectors of the feature words and the feature vectors of the feature words to obtain text feature data of the service text data.

[0112] In one embodiment, the service classification module 908 is specifically used for: classifying the text feature data through a naive Bayesian model to obtain the category prior probability of each service category and the conditional probability of each text feature in the text feature data in each service category, wherein the naive Bayesian model is obtained by training the initial naive Bayesian model with historical service text data; performing a posteriori probability estimation based on the feature weight, category prior probability and conditional probability of each text feature to determine the posterior probability of each service category corresponding to the text feature data; and taking the service category with the maximum posterior probability as the service category of the service.

[0113] In one embodiment, it also includes a feature weight identification module, which is used to: extract historical text feature data of historical service text data; perform feature importance estimation processing on each text feature in the historical text feature data to obtain a feature importance score for each text feature; and assign a feature weight to each text feature based on the feature importance score of each text feature.

[0114] In one embodiment, it also includes a classification model training module, which is used to: extract historical text feature data of historical service text data; label the historical text feature data with service categories to obtain model training data and model testing data; perform model training processing on the initial naive Bayes model through the model training data to obtain the naive Bayes model to be tested; perform model testing processing on the naive Bayes model to be tested through the model testing data, and when the naive Bayes model to be tested passes the model test, the naive Bayes model to be tested is used as the naive Bayes model.

[0115] In one embodiment, the classification model training module is specifically used to: perform model testing on the naive Bayes model to be tested through model testing data to obtain model testing results; construct a confusion matrix based on the model testing results; obtain a model evaluation index based on the confusion matrix; when the model evaluation index indicates that the naive Bayes model to be tested has passed the model test, the naive Bayes model to be tested is used as a naive Bayes model.

[0116] In one embodiment, the service classification module 908 is also used to: find the original points parameters of the service recipient in the service category according to the service category of the service; find the service settlement data of the service and extract the service points parameters in the service settlement data; obtain the points change parameters based on the points ratio of the service recipient and the service points parameters; update the original points parameters based on the points change parameters to obtain the points data of the service recipient in the service category.

[0117] Each module in the above data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0118] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store service classification data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data processing method is implemented.

[0119] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0120] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0121] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0122] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0123] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0125] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data processing method, characterized in that: The method comprises: When the service is completed, searching for service provider data of a service provider of the service and service recipient data of a service recipient; Based on the text contents extracted from the service provider data and the service recipient data respectively, aggregating and obtaining service text data; Performing feature extraction processing on the service text data to obtain text feature data; The service category of the service is identified based on the text feature data, and the service record data of the service recipient in the service category is updated.

2. The method according to claim 1, characterized in that When the service is completed, searching for the service provider data of the service provider and the service recipient data of the service recipient includes: Get the order number data after service settlement; Based on the order number data, searching the order database for order detail data corresponding to the service settlement data; Extracting service provider identification data, service recipient identification data, and service recipient behavior description data from the order details data; The service provider data is searched based on the service provider identification data, the service recipient basic data is searched based on the service recipient identification data, and the service recipient behavior description data and the service recipient basic data are aggregated to obtain the service recipient data.

3. The method according to claim 1, characterized in that: The service text data is obtained by aggregating the text contents extracted from the service provider data and the service recipient data respectively, including: Classify the service provider data and the service recipient data respectively to obtain service dimension data; Extracting text content from the service dimension data to obtain service dimension text data; The service dimension text data is aggregated to obtain service text data.

4. The method according to claim 3, characterized in that The service dimension data includes image data and position coordinate data, and extracting text content from the service dimension data to obtain the service dimension text data includes: Identify image data in the service dimension data, perform optical character recognition processing on the image data, and obtain service dimension text data of the image data; Based on the position coordinate data, a map point of interest positioning process is performed to obtain point of interest description data of the position coordinate data, and the point of interest description data is used as service dimension text data of the position coordinate data.

5. The method according to claim 1, characterized in that The feature extraction process of the service text data to obtain text feature data includes: Performing text cleaning and word segmentation processing on the service text data to obtain pre-processed text data; The pre-processed text data is subjected to text feature extraction processing to obtain text feature data of the service text data.

6. The method according to claim 5, characterized in that The performing text feature extraction processing on the pre-processed text data to obtain text feature data of the service text data comprises: Performing word vector prediction processing on the preprocessed text data to obtain a word vector for each word in the preprocessed text data; Identifying feature words in the preprocessed text data; Mapping the word vector of the feature word based on the context data of the feature word to obtain the feature vector of the feature word; Aggregation processing is performed on the word vector of the feature word and the feature vector of the feature word to obtain text feature data of the service text data.

7. The method according to claim 1, characterized in that The identifying the service category of the service based on the text feature data comprises: Classifying the text feature data through a naive Bayesian model to obtain a priori probability of each service category and a conditional probability of each text feature in the text feature data in each service category, wherein the naive Bayesian model is obtained by training an initial naive Bayesian model using historical service text data; Perform a posterior probability estimation based on the feature weight of each text feature, the category prior probability and the conditional probability, and determine the posterior probability of each service category corresponding to the text feature data; The service category with the maximum a posteriori probability is taken as the service category of the service.

8. The method according to claim 7, characterized in that The method further comprises: Extract historical text feature data of historical service text data; Performing feature importance estimation processing on each text feature in the historical text feature data to obtain a feature importance score for each text feature; Based on the feature importance scores of the respective text features, feature weights are assigned to the respective text features.

9. The method according to claim 7, characterized in that: The method further comprises: Extract historical text feature data of historical service text data; Annotating the historical text feature data by service category to obtain model training data and model test data; Performing model training processing on the initial naive Bayes model through the model training data to obtain a naive Bayes model to be tested; The naive Bayesian model to be tested is subjected to model testing processing by using the model testing data. When the naive Bayesian model to be tested passes the model testing, the naive Bayesian model to be tested is used as the naive Bayesian model.

10. The method according to claim 9, characterized in that The step of performing a model test process on the naive Bayesian model to be tested by using the model test data, and when the naive Bayesian model to be tested passes the model test, using the naive Bayesian model to be tested as a naive Bayesian model comprises: Performing model testing processing on the naive Bayes model to be tested using the model testing data to obtain a model testing result; Constructing a confusion matrix based on the model test results; Obtaining a model evaluation index based on the confusion matrix; When the model evaluation index indicates that the naive Bayes model to be tested passes the model test, the naive Bayes model to be tested is used as the naive Bayes model.

11. The method according to claim 1, characterized in that: The service record data includes points data, and updating the service record data of the service recipient in the service category includes: According to the service category of the service, searching for the original score parameter of the service recipient in the service category; Searching for service settlement data of the service, and extracting service credit parameters from the service settlement data; Based on the points ratio of the service recipient and the service points parameter, obtaining a points change parameter; The original point parameter is updated based on the point change parameter to obtain the point data of the service recipient in the service category.

12. A data processing device, characterized in that: The device comprises: A data search module, used to search for service provider data of a service provider of the service and service recipient data of a service recipient when the service is completed; A text extraction module, configured to obtain service text data based on the text contents extracted from the service provider data and the service recipient data respectively; A feature extraction module, used for performing feature extraction processing on the service text data to obtain text feature data; A service classification module is used to identify the service category of the service based on the text feature data, and update the service record data of the service recipient in the service category.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.