AI-based online customer service problem solving system and method
By leveraging AI-based online customer service systems and utilizing data collection and model training, the complex challenges of customer service management for e-commerce platforms and small and medium-sized private traffic websites have been addressed. This has enabled intelligent customer service, reduced labor costs, and improved work efficiency and communication compliance.
Patent Information
- Application Number
- CN202410920133.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
E-commerce platforms and small and medium-sized private traffic websites face complex challenges in customer service management, including customer service team performance evaluation, matching customer needs, and sensitive word filtering. In addition, labor costs are gradually increasing. How to improve customer experience while controlling costs is the core issue.
An AI-based online customer service system is adopted. Through data collection, preprocessing, model training and inference, various Indonesian open source datasets and labeled data are used, combined with the eSimCSE model for unsupervised and supervised learning, to achieve text processing and question matching in intelligent customer service scenarios.
It significantly reduced labor costs, optimized human resource allocation, improved work efficiency, accurately identified sensitive information, ensured compliance of communication, and enhanced the platform's reputation and stability.
Smart Images

Figure CN118710285A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a system and method for solving problems in online customer service based on AI. Background Art
[0002] In today's digital age, e-commerce platforms and numerous small and medium-sized private traffic websites have diverse and differentiated segmentation needs in their respective specific fields, while ensuring the realization of basic information communication.
[0003] As for e-commerce platforms, they face a series of complex and critical management challenges. For example, the management of the customer service team is crucial, requiring a scientific and reasonable performance appraisal mechanism to evaluate employee performance; monitoring dashboards are used to grasp service dynamics in real time; queuing and allocation systems must achieve efficient matching of customer needs; at the same time, sensitive word filtering is required to ensure compliance and appropriateness of communication.
[0004] As for merchants on small and medium-sized private domain traffic websites, they are eager to quickly access instant messaging technology to significantly reduce docking costs and improve operational efficiency under limited resource conditions.
[0005] At the same time, with the development of economy and the progress of society, labor costs are gradually increasing. This makes all kinds of merchants face tremendous pressure in the operation process. How to significantly improve the customer experience under the premise of effectively controlling costs has become a core problem that needs to be solved urgently. Based on the above situation, the present invention sorts out a timely communication method based on AI online customers according to the needs of various fields. Summary of the invention
[0006] The object of the present invention is to provide a system and method for solving problems of online customer service based on AI, so as to solve at least any one of the problems raised in the above-mentioned background technology.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a system and method for solving problems of online customer service based on AI, comprising the following steps: S1, data collection; S2, data preprocessing; S3, model training; S4, model reasoning; The step S1 of data collection includes using a variety of Indonesian open source data sets such as OSCAR, Wikidepia, IndoParaCrawl and Twitter, as well as annotated data in the intelligent customer service scenario for data collection.
[0008] Preferably, the data preprocessing in step S2 includes the following steps: S21, data sentence segmentation: use punctuation marks to segment the doc into sentences, and perform the following preprocessing at the sentence granularity; S22, data cleaning: use regular expressions to clean garbled characters in each sentence, and remove non-critical information such as URLs, email addresses, dates, IP addresses, etc. S23, Data desensitization: Use keywords and regular expressions to remove sensitive information such as ID card numbers, phone numbers, etc. from each sentence; S24, Data deduplication: Use Minhash algorithm and fasttext semantic clustering to deduplicate each sentence and improve data quality; S25, data enhancement: Randomly repeat the tokens in each sentence to enhance the data.
[0009] Preferably, the step S3 model training includes the following steps: S31. Add tokens for business scenarios: Introduce tokens related to customer service scenarios, including common tokens and specific tokens; Increase the utilization of key information and cover more necessary business scenario information, increasing the number of tokens from 30k to 32k; S32, unsupervised contrastive learning: select the above base model as the base, use the eSimCSE model to perform unsupervised training on the above open source data, and eSimCSE uses contrastive learning training; S33, Base Model comparison: Select and compare different base models, such as indobert-base-p1 and indobertweet-base-uncased, use the labeled data in the intelligent customer service scenario, take the model mean-pooling / max-pooling / CLS to compare the matching accuracy, and select the most suitable model; S34, Supervised Contrastive Learning: Use the eSimCSE model to perform supervised training on the labeled data in this scenario.
[0010] Preferably, the supervised contrastive learning S34 comprises the following steps: S341, positive example pair construction: using the labeled data, input similar sentences into the unsup model to obtain positive pairs of different lengths; S342, where negative example pairs are constructed by randomly combining non-similar sentences to increase the number of negative pairs.
[0011] Preferably, the model reasoning in step S4 includes a combination of multiple weights.
[0012] Preferably, the combination of the multiple weights includes text cosine similarity, text Manhattan distance and text Euclidean distance.
[0013] Preferably, it includes a data acquisition module, data preprocessing, model training and model reasoning, and an AI-based online customer service problem solving method based on a large language model as described in any one of claims 1-6.
[0014] The beneficial effects of the present invention are as follows: 1. In the present invention, intelligent AI plays a significant role. This outstanding performance greatly reduces the dependence on manual services, thereby significantly reducing labor costs. Moreover, through intelligent diversion and handling of common problems, human resources can be more focused on responding to complex and critical customer needs, further optimizing human resource allocation and work efficiency.
[0015] 2. In the present invention, the sensitive word blocking function performs excellently and can accurately identify and block the transmission of information involving violations. This effective measure greatly reduces the risk of violations caused by inappropriate remarks or sensitive information, provides a solid compliance guarantee for business operations, helps maintain a healthy and positive communication environment, and enhances the reputation and stability of the platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a schematic diagram of the AI online service customer part of the present invention; Figure 2 It is a partial schematic diagram of the system architecture of the present invention; Figure 3 A schematic diagram of the detailed deployment service of the present invention; Figure 4 This is a schematic diagram of the AI interaction part of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] The present invention provides Figure 1-4 The system and method for solving problems of online customer service based on AI include the following steps: S1, data collection; S2, data preprocessing; S3, model training; S4, model reasoning; The step S1 of data collection includes using a variety of Indonesian open source data sets such as OSCAR, Wikidepia, IndoParaCrawl and Twitter, as well as annotated data in the intelligent customer service scenario for data collection.
[0019] The step S2 data preprocessing comprises the following steps: S21, data sentence segmentation: use punctuation marks to segment the doc into sentences, and perform the following preprocessing at the sentence granularity; S22, data cleaning: use regular expressions to clean garbled characters in each sentence, and remove non-critical information such as URLs, email addresses, dates, IP addresses, etc. S23, Data desensitization: Use keywords and regular expressions to remove sensitive information such as ID card numbers, phone numbers, etc. from each sentence; S24, Data deduplication: Use Minhash algorithm and fasttext semantic clustering to deduplicate each sentence and improve data quality; S25, data enhancement: Randomly repeat the tokens in each sentence to enhance the data.
[0020] The step S3 model training comprises the following steps: S31. Add tokens for business scenarios: Introduce tokens related to customer service scenarios, including common tokens and specific tokens; Increase the utilization of key information and cover more necessary business scenario information, increasing the number of tokens from 30k to 32k; S32, unsupervised contrastive learning: select the above base model as the base, use the eSimCSE model to perform unsupervised training on the above open source data, and eSimCSE uses contrastive learning training; The formula is as follows:
[0021]
[0022] The construction of positive pairs: using the above sentence enhancement method, the input sentence and its modified sentence are input into the base model respectively to obtain positive pairs of different lengths; the construction of negative pairs: introducing momentum contrast, while not incurring additional computational overhead, increasing the number of negative pairs. Use OnlineContrastiveLoss for text embedding learning, the formula is as follows:
[0023]
[0024] Where: L(x1, x2, y) is the loss function, which is used to measure the similarity or difference between x1 and x2. x1 and x2 are input samples. y is a binary label, indicating whether x1 and x2 are of the same category (similarity), if they are of the same category, y=1, otherwise y=0. d is the distance or similarity measure between x1 and x2. margin is a hyperparameter, which means that the distance between two samples should be less than margin, otherwise loss will occur. Usually, the value of margin is adjusted according to the problem and dataset. Get the unsup model.
[0025] S33, Base Model comparison: Select and compare different base models, such as indobert-base-p1 and indobertweet-base-uncased, use the labeled data in the intelligent customer service scenario, take the model mean-pooling / max-pooling / CLS to compare the matching accuracy, and select the most suitable model; The Base Model is based on BERT (Bidirectional Encoder Representations from Transformers), which is implemented by calculating the attention weight of each token between sentences. The formula is as follows: , where Q is the query vector, K is the key vector, and V is the value vector. d_k is the dimension of the key vector. The softmax function is used to normalize the attention weights.
[0026] S34, supervised contrastive learning: use the eSimCSE model to perform supervised training on the labeled data in this scenario; The supervised contrastive learning S34 comprises the following steps: S341, positive example pair construction: using the labeled data, input similar sentences into the unsup model to obtain positive pairs of different lengths; S342, where negative example pairs are constructed: randomly combining non-similar sentences to increase the number of negative pairs; Improve the model’s ability to understand and answer customer service questions.
[0027] The model reasoning in step S4 includes a combination of multiple weights, wherein the combination of multiple weights includes text cosine similarity, text Manhattan distance and text Euclidean distance; Finally, the similarity score between the sentence matched by the model and the FAQ is measured, and the best sentence is selected.
[0028] The model is used to search and match common questions in intelligent customer service scenarios to provide intelligent answers to user questions.
[0029] The invention comprises a data collection module, data preprocessing, model training and model reasoning, and an AI-based online customer service problem solving method based on a large language model as described in any one of claims 1 to 6.
[0030] The present invention also includes a system architecture As attached Figure 2 and 3 As shown, the system has terminal group layers such as Android, iOS, and web. Each terminal uses the long link provided by the SDK to communicate through the server and other terminals. At the same time, the IM server performs business operations with the application server through the https protocol.
[0031] The present invention also includes AI interaction As attached Figure 4 As shown, after the user sends a message, the IM network manager will put different messages into the corresponding message queue according to the message format. Among them, the robot module will consume the text message, calculate the result through the model, and send the result to the user through the business server.
[0032] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An AI-based online customer service problem-solving method, characterized by: The following steps are involved: S1, data collection; S2, data preprocessing; S3, model training; S4, model reasoning; The step S1 of data collection includes using a variety of Indonesian open source data sets such as OSCAR, Wikidepia, IndoParaCrawl and Twitter, as well as annotated data in the intelligent customer service scenario for data collection.
2. The method for solving problems of online customer service based on AI according to claim 1, characterized in that: The step S2 data preprocessing comprises the following steps: S21, data sentence segmentation: use punctuation marks to segment the doc into sentences, and perform the following preprocessing at the sentence granularity; S22, data cleaning: use regular expressions to clean garbled characters in each sentence, and remove non-critical information such as URLs, email addresses, dates, IP addresses, etc. S23, Data desensitization: Use keywords and regular expressions to remove sensitive information such as ID card numbers, phone numbers, etc. from each sentence; S24, Data deduplication: Use Minhash algorithm and fasttext semantic clustering to deduplicate each sentence and improve data quality; S25, data enhancement: Randomly repeat the tokens in each sentence to enhance the data.
3. The method for solving problems of online customer service based on AI according to claim 1, characterized in that: The step S3 model training comprises the following steps: S31. Add tokens for business scenarios: Introduce tokens related to customer service scenarios, including common tokens and specific tokens; Increase the utilization of key information and cover more necessary business scenario information, increasing the number of tokens from 30k to 32k; S32, unsupervised contrastive learning: select the above base model as the base, use the eSimCSE model to perform unsupervised training on the above open source data, and eSimCSE uses contrastive learning training; S33, Base Model comparison: Select and compare different base models, such as indobert-base-p1 and indobertweet-base-uncased, use the labeled data in the intelligent customer service scenario, take the model mean-pooling / max-pooling / CLS to compare the matching accuracy, and select the most suitable model; S34, Supervised Contrastive Learning: Use the eSimCSE model to perform supervised training on the labeled data in this scenario.
4. The method for solving problems of online customer service based on AI according to claim 3, characterized in that: The supervised contrastive learning S34 comprises the following steps: S341, positive example pair construction: using the labeled data, input similar sentences into the unsup model to obtain positive pairs of different lengths; S342, where negative example pairs are constructed by randomly combining non-similar sentences to increase the number of negative pairs.
5. The method for solving problems of online customer service based on AI according to claim 1, characterized in that: The model reasoning in step S4 includes a combination of multiple weights.
6. The method for solving problems of online customer service based on AI according to claim 5, characterized in that: The combination of the multiple weights includes text cosine similarity, text Manhattan distance and text Euclidean distance.
7. AI-based online customer service problem-solving system, characterized by: The invention comprises a data collection module, data preprocessing, model training and model reasoning, and an AI-based online customer service problem solving method based on a large language model as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Model training method, text recognition method, electronic equipment and readable storage device
CN115758145A
Customer service system implementation method and device based on milvus database and storage medium
CN116089539A
Training method of customized customer service robot model
CN117312844A
Search question-answering system and method based on large model and electronic equipment
CN117708274A
Customer service scene-oriented generation matching type large model construction method, medium and equipment
CN117709969A
