Charging scene intention acquisition and business processing method and system based on large model

By using large model dialogue data in high-speed toll stations for fine-tuning and optimizing the language model to identify user intentions, the problem of user intention identification in high-speed toll scenarios is solved, and business processing efficiency and processing capabilities under special circumstances are improved.

CN118708683AActive Publication Date: 2024-09-27NANJING MICROVIDEO TECH

Patent Information

Application Number
CN202410700761.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In high-speed charging scenarios, it is difficult for existing technologies to accurately identify user intentions, resulting in low business processing efficiency. Especially in special circumstances, such as when there is no charging card or the card is faulty, the processing is complex and inefficient.

Method used

Using a large model-based approach, we collect dialogue data at high-speed toll stations, generate a fine-tuned data set, fine-tune the basic large language model, and combine prompt word configuration to optimize the model to identify user intentions and achieve more accurate business answers.

Benefits of technology

It improves the efficiency of business processing at high-speed toll stations. Especially under special circumstances, it can more accurately identify user intentions and generate answers that are close to the scene, improving the charging rate and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708683A
    Figure CN118708683A
Patent Text Reader

Abstract

The invention discloses a charging scene intention acquisition and business processing method and system based on a large model, and the method comprises the steps: carrying out the business type arrangement according to a charging scene of a highway toll station, and determining the business of the highway toll station; the method comprises the following steps: collecting corpora of a manual business process to generate a fine tuning data set in a business processing process of each charging scene of a highway toll station, and defining a tool needing to be called in the fine tuning data set; performing fine tuning on the basic large language model by using the fine tuning data set, and performing cue word configuration on the fine-tuned basic large language model to obtain an optimized basic large language model; and obtaining a question and an answer of each round of dialogue, adding the question and the answer into a history list of the optimized basic big language model, analyzing contents of the history by using the optimized basic big language model, completing user intention recognition, and outputting a service answer according to the user intention. According to the invention, the intention of the user can be known more accurately, and the charging service processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0002] The present application relates to the technical field of natural language processing, and specifically to a method and system for acquiring charging scenario intent and processing services based on a large model. Background Art

[0003] With the acceleration of global economic integration and urbanization, the transportation system, as an important part of the national infrastructure, plays a key role in connecting cities, promoting economic development, and facilitating social exchanges. However, the transportation industry is facing increasingly severe challenges, mainly including traffic congestion, environmental pollution, energy consumption, traffic safety, and service quality improvement. Therefore, exploring and applying advanced information technology, with the goal of intelligence, greening, and efficiency, has become an important trend in the development of the current transportation industry. Intelligent Transportation System (ITS) is an intelligent transportation system that integrates information processing technology, communication technology, sensor technology, automatic control technology, etc. to achieve all-round monitoring, management, and optimization of the transportation system. ITS covers traffic information collection, processing, and release, as well as traffic flow control, traveler information services, public transportation management, and other aspects, aiming to improve road use efficiency, reduce traffic accidents, reduce environmental burdens, and provide the public with a safer, more convenient, and more comfortable travel experience. The application of big data and artificial intelligence enables transportation management departments to collect and analyze massive amounts of traffic data, including vehicle operation data, passenger travel data, traffic event data, etc., and process them efficiently, providing data support for transportation planning, operation management, and accident prevention. Therefore, in the field of transportation, it is necessary to deal with the special situations of highway toll stations and propose intention recognition methods to obtain the user's true and accurate intentions.

[0004] In the field of artificial intelligence, the rise of large language models (LLMs) represents a major leap forward in natural language processing technology. They have demonstrated unprecedented capabilities and potential in many application scenarios. Large models, especially large-scale pre-trained language models, have become a hot topic in AI research and application. By learning from the widely available text data on the Internet, they not only master rich language knowledge, but also capture the subtle differences and complex structures of language, thereby showing performance close to or even exceeding that of humans in tasks such as understanding, generation, and dialogue. The core technical framework of large models is usually based on the "pre-training + fine-tuning" paradigm. First, the model performs self-supervised learning on massive unlabeled text data, and pre-trains by predicting masked words, the content of the next sentence, or the continuity of sentences. The purpose of this stage is to allow the model to learn the general laws and structures of language. Subsequently, the pre-trained model is fine-tuned for specific tasks, such as question answering, translation, sentiment analysis, etc., and high performance can be quickly achieved using only a small amount of labeled data, greatly improving the generalization ability and adaptability of the model. The development of big models is not only a breakthrough in technology, but also a reshaping of the overall research paradigm and application ecology in the field of artificial intelligence, leading the future trend of natural language processing and even the entire AI industry. General big models cannot handle special business in the transportation field, so it is necessary to train a business model for special situations in toll scenarios.

[0005] To sum up, the in-depth development of the transportation field, combined with the technology of big models, aims at the processing situation in the charging field, especially the acquisition of user intentions in the business processing of special charging scenarios, to improve the efficiency of business processing. Summary of the invention

[0006] In order to achieve a more accurate understanding of user intentions and accelerate the efficiency of toll service processing in high-speed toll scenarios, the present application provides a toll scenario intention acquisition and service processing method and system based on a large model.

[0007] In a first aspect, the present application provides a method for acquiring charging scenario intentions and processing services based on a large model, including: Sorting out the business types according to the toll collection scenarios of the expressway toll station, and determining the business of the expressway toll station, including normal toll collection scenario business and special toll collection scenario business; During the business processing of various toll collection scenarios at highway toll stations, the corpus of manual business processes is collected, sorted and generated into a fine-tuning dataset, and the tools that need to be called are defined in the fine-tuning dataset; Select the basic large language model as the fine-tuning prototype model, use the fine-tuning dataset to fine-tune the basic large language model, and obtain the fine-tuned basic large language model; After the fine-tuning is completed, the prompt words are configured for the fine-tuned basic large language model, and the fine-tuned basic large language model is optimized to obtain an optimized basic large language model; Obtain the questions and answers of each round of dialogue and add them to the history list of the optimized basic large language model. Use the optimized basic large language model to analyze the content in the history list to obtain dialogue information and the result information obtained by calling the tool based on the dialogue information. Combine the dialogue information and the result information obtained by calling the tool based on the dialogue information to identify the user's intention and output the business answer according to the user's intention. By adopting the above solution, we collect conversation data in various business scenarios at highway toll stations and valid data consisting of result data obtained by calling tool functions based on the conversation data, generate a fine-tuning data set to fine-tune the pre-trained basic language model, and further optimize the basic large language model in combination with the prompt word configuration, so that the optimized basic large language model can better identify user intentions in various business scenarios at highway toll stations and output answers that are closer to the scenario.

[0008] Preferably, it also includes: The questions and answers of each round of dialogue are obtained as a dialogue data and stored in the fine-tuning dataset. Whenever the number of new dialogue data in the fine-tuning dataset reaches a preset number, the basic large language model is re-fine-tuned using the latest fine-tuning dataset to obtain the re-fine-tuned basic language model. Obtain and compare the business answer content satisfaction evaluation results of the re-fine-tuned basic language model and the output of the fine-tuned basic language model. If the business answer content satisfaction output by the re-fine-tuned basic language model is higher than the business answer content satisfaction output by the fine-tuned basic language model, use the re-fine-tuned basic language model to replace the fine-tuned basic language model.

[0009] By adopting the above solution, the conversation information generated in each round is obtained to continuously expand the fine-tuning dataset, so as to continuously fine-tune and optimize the basic large language model to identify more accurate user intentions.

[0010] Preferably, the special circumstances include: no charge card or charge card failure; The tools that need to be called in the fine-tuning data set include: defining a tool for license plate image query and recognition that needs to be called for special charging scenario business, defining a tool for querying the vehicle information corresponding to the license plate image that needs to be called for special charging scenario business, and defining a tool for calculating the vehicle information corresponding to the vehicle charging information that needs to be called for special charging scenario business.

[0011] By adopting the above solution, taking into account the handling of special situations in highway toll collection scenarios, when there is no card or the card is faulty, it often involves processing methods such as obtaining license plate information and billing based on license plate information. The corresponding calling method is set to supplement the fine-tuning data set and improve the comprehensiveness of the fine-tuning data set.

[0012] Preferably, the specific process of fine-tuning the basic large language model using the fine-tuning dataset includes: Set and initialize fine-tuning parameters, including: basic large language model path, fine-tuning dataset path and name, save path of the fine-tuned basic large language model, fine-tuning strategy, batch size, maximum length of tokens, number of gradient accumulation steps, learning rate, learning scheduler, number of training rounds, and maximum number of samples; The model is trained based on the set LORA fine-tuning strategy and fine-tuning data set; the LORA fine-tuning technology is used to perform low-rank approximation on the weight matrix of the large model, and the fine-tuning update formula includes: W′=W+U·V T In the formula, W∈R m×n represents the weight matrix, U and V represent the transposed forms of E and F respectively, E∈R m×k and F∈R k×n For the two smaller matrices introduced, k<<min(m,n) indicates a lower rank number; Determine whether the loss function value of the fine-tuned basic large language model has reached a preset loss value. If so, choose to end the fine-tuning; the loss function value of the basic large language model is a weighted calculation value of the training set loss function value and the validation set loss function value.

[0013] By adopting the above solution, the LORA fine-tuning strategy is selected to fine-tune the large model to save storage and computing resources; the fine-tuning update is completed by transposing two low-rank matrices to better conform to the matrix multiplication rules.

[0014] Preferably, after the fine-tuning is completed, the prompt word configuration of the fine-tuned basic large language model includes: identity configuration, scene configuration, business type processing method, speech recognition result correction method, province name abbreviation table, license plate color judgment method and final output result sample.

[0015] By adopting the above solution, the large model is optimized by using prompt word configuration to generate more accurate answers to enhance the advancement of the conversation content and achieve faster recognition of user intent.

[0016] Preferably, the number of dialogue data recorded in the history list of the optimized basic large language model can be set according to the number of matches corresponding to the business type of the highway toll station; wherein the number of matches corresponding to the normal toll scene business is less than the number of matches corresponding to the special situation processing scenario business.

[0017] By adopting the above solution, considering that there may be more rounds of conversations with users in special cases compared to normal cases, the record capacity in the history list is set accordingly to cope with different scenarios.

[0018] Preferably, it also includes: If there are conflicting data in the dialogue data corresponding to the questions and results of multiple rounds of questions and answers, the questions and results of the latest round of questions shall prevail, and the conflicting contents of the questions and results of the latest round of questions in the history list of the optimized basic large language model shall be deleted.

[0019] By adopting the above solution, considering that there may be errors in the user's answers during the user conversation, resulting in contradictions between the questions and results of the previous and subsequent questions and answers, the contradictory data in the history list is deleted to prevent affecting the accuracy of subsequent user intent recognition.

[0020] In a second aspect, the present application provides a system for acquiring charging scenario intentions and processing services based on a large model, including: The business determination module of the high-speed toll station is used to sort out the business types according to the toll collection scenarios of the high-speed toll station and determine the business of the high-speed toll station, including normal toll collection scenarios and special toll collection scenarios; The business fine-tuning data set acquisition module for high-speed toll stations is used to collect the corpus of manual business processes during the business processing of various toll scenarios at high-speed toll stations, organize and generate fine-tuning data sets, and define the tools that need to be called in the fine-tuning data sets; A module for obtaining a fine-tuned basic large language model is used to select a basic large language model as a fine-tuning prototype model, use a fine-tuning dataset to fine-tune the basic large language model, and obtain a fine-tuned basic large language model; The optimized basic large language model acquisition module is used to configure prompt words for the fine-tuned basic large language model after fine-tuning, complete the tuning of the fine-tuned basic large language model, and obtain the optimized basic large language model; The user intention and business answer acquisition module is used to obtain the questions and answers of each round of dialogue and add them to the history list of the optimized basic large language model. The optimized basic large language model is used to analyze the content in the history list to obtain dialogue information and the result information obtained by calling the tool based on the dialogue information; the user intention is identified based on the dialogue information and the result information obtained by calling the tool based on the dialogue information, and the business answer is output according to the user intention.

[0021] By adopting the above solution, effective data in the toll station scenario is collected, and the data is fully utilized for model training and tuning, so that the optimized model has an excellent response speed to identify user intentions and quickly generate accurate answers to handle toll business.

[0022] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method as described above.

[0023] In a fourth aspect, the present application provides a computer device, comprising a memory, a processor, and a program stored and executable on the memory, wherein the program implements the steps of the above method when executed by the processor.

[0024] In summary, this application has the following beneficial effects: 1. Fine-tune the basic language model through the collected fine-tuning data set with the calling tool, and guide the fine-tuned basic language model to further optimize the basic language model in combination with the configured prompt words, and obtain the optimized basic language model. Use it to achieve accurate recognition of user intentions and professional answers from the model in two major business scenarios: normal and special situations of highway toll collection, accelerate the processing of toll collection, and improve the toll collection rate; 2. Use the conversation data completed by the optimized basic language model to supplement the fine-tuning dataset to achieve continuous fine-tuning of the basic language model. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flowchart of the method for acquiring charging scenario intention and processing business based on a large model described in a specific embodiment; Figure 2 It is a flowchart of the actual use process of the method for acquiring charging scenario intention and processing business based on the big model in a specific embodiment; Figure 3 It is a structural diagram of the system for acquiring charging scenario intentions and processing business based on a large model described in a specific embodiment. DETAILED DESCRIPTION

[0026] 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.

[0027] like Figure 1 As shown, the embodiment of the present application discloses a method for acquiring charging scenario intentions and processing services based on a large model, and the specific steps are as follows: S1. Sort out the business types according to the toll collection scenarios of the expressway toll station and determine the business types of the expressway toll station.

[0028] Specifically, based on the toll collection scenarios of expressway toll stations, the corresponding services of the toll collection scenarios are classified to determine the services of expressway toll stations, including two types of services: normal toll collection scenarios and special toll collection scenarios. Among them, special situations include: no toll card or toll card failure (card failure). No toll card generally refers to the situation where the card is lost or not taken at the entrance. Card failure refers to the situation where the pass card cannot be recognized.

[0029] The business processing for special charging scenarios generally follows the standard processing flow, that is, if the card is lost after being taken at the entrance, the lost card will be recorded; if the card is damaged, the card information will be recorded; the final processing calls the license plate recognition method, queries the vehicle entrance information, calls the billing method, and queries the actual fees incurred.

[0030] S2. Obtain the conversation data during the business processing of each toll scene at the highway toll station and organize it to generate a fine-tuning dataset.

[0031] Specifically, during the business processing of each toll scene at the highway toll station, the corpus of the manual business process is collected and organized, that is, the conversation data of the manual toll collectors performing business processing in a specific toll scene is collected and organized, and a fine-tuning data set is generated as a training data set in the corresponding way of questions and answers.

[0032] Among them, if some of the fine-tuning data set content needs to call specific tools, then it is necessary to define the tools that need to be called in the fine-tuning data set. The called tools have corresponding tool functions, and the results of the tool functions corresponding to the called tools are stored in the fine-tuning data set with the key of observation. For example: if the question needs to call a specific method, then the answer is set to observation, and then the answer is obtained based on observation and historical messages. For example: the query function corresponding to the tool for querying the vehicle information corresponding to the license plate image is used. The query function and historical vehicle information data can be used to query the specific vehicle information (license plate number) corresponding to the current image. Specifically, the tools that need to be called in the fine-tuning data set include: defining the tools for license plate image query and recognition that need to be called for special charging scenarios, defining the tools for querying the vehicle information corresponding to the license plate image that need to be called for special charging scenarios, and defining the tools for calculating the vehicle information corresponding to the vehicle charging information that need to be called for special charging scenarios.

[0033] S3. Select the basic large language model as the fine-tuning prototype model, use the fine-tuning dataset to fine-tune the basic large language model, and obtain the fine-tuned basic large language model.

[0034] Specifically, the specific process of fine-tuning the basic large language model using the fine-tuning dataset includes: Set fine-tuning parameters and initialize them. The fine-tuning parameters include: basic large language model path, fine-tuning data set path and name, save path of the fine-tuned basic large language model, fine-tuning strategy, batch size, maximum length of tokens, gradient accumulation steps, learning rate, learning scheduler, logging steps, weight saving interval steps, number of training rounds, maximum number of samples, and quantization bit width, etc. In this embodiment, the fine-tuning strategy uses LORA, the target layer of the fine-tuning application is W_pack, the maximum length of tokens is 1024, the gradient accumulation steps are 8, the learning rate scheduler is cosine, the logging steps are 10 steps, and the weight saving interval steps are 100 steps. The total number of training rounds is 500, the maximum number of samples is 3000, and the quantization bit width is 4 bits.

[0035] The model is trained based on the set LORA fine-tuning strategy and fine-tuning data set; the LORA fine-tuning technology is used to perform low-rank approximation on the weight matrix of the large model. LoRA does not directly update the entire matrix, but introduces two smaller matrices. The update formula during fine-tuning includes: W ′ =W+U·V T In the formula, W∈R m×n represents the weight matrix, U and V represent the transposed forms of E and F respectively, E∈Rm×k and F∈R k×n For the two smaller matrices introduced, k<<min(m,n) represents a lower rank number; in practical applications, U and V are small-scale parameter matrices learned by back-propagation to fit task-related weight changes. In the context of LoRA, U and V are subject to regularization constraints to ensure low-rank properties, and they usually maintain a small rank k during training, thereby achieving efficient and resource-saving fine-tuning.

[0036] During the fine-tuning process, it is necessary to monitor multiple indicators during the training process and observe the changes in the loss function with the number of iterations or epochs during the training process to determine whether the fine-tuned model has reached the optimal state. The ideal situation is that as the training progresses, the training loss gradually decreases, indicating that the model is learning and adapting to the training data. It is necessary to avoid the phenomenon of overfitting in training. If the training loss continues to decrease and the validation loss begins to rise or stabilize, this may be a sign of overfitting. Specifically, it is determined whether the loss function value of the fine-tuned basic large language model has reached the preset loss value. If it has reached it, the fine-tuning is terminated; the loss function (Loss) value of the basic large language model is the weighted calculation value of the training set loss function (Train Loss) value and the validation set loss function (Validation Loss) value.

[0037] After fine-tuning, the model is deployed locally, using an NVIDIA L40S graphics card with 48G video memory to load the model, and corresponding interface services are developed to continuously monitor performance and operation and maintenance.

[0038] S4. After the fine-tuning is completed, the prompt words are configured for the fine-tuned basic large language model to complete the tuning of the fine-tuned basic large language model to obtain the optimized basic large language model.

[0039] Specifically, the prompt word configuration includes: identity configuration, scene configuration, business type processing method, speech recognition result correction method, province name abbreviation table, license plate number rule acquisition method, license plate color judgment method and final output result sample.

[0040] S5. Based on the content of the business conversation, the optimized basic large language model is used to identify the user's intent and output business answers based on the user's intent.

[0041] Specifically, in actual use, the questions and answers of each round of dialogue are obtained and added to the history list of the optimized basic large language model, the optimized basic large language model is used to analyze the content of the history, the dialogue information and the result information obtained by calling the tool based on the dialogue information are obtained, the user intent is identified in combination with the dialogue information and the result information obtained by calling the tool based on the dialogue information, and the business answer is output according to the user intent; among them, the answer to the first round of dialogue is to identify the user intent of the question using the optimized basic large language model, and output the business answer according to the user intent, and each subsequent round uses the optimized basic large language model to analyze the content of the history and generate an answer.

[0042] Among them, the number of questions and answers recorded in each round of dialogue in the history list of the optimized basic large language model can be set according to the corresponding matching number of the business type of the highway toll station; among them, considering that the business of special situation handling scenarios is more complicated and the number of rounds of dialogue is larger, the number of matching sets corresponding to the normal charging scenario business is less than the number of matching sets corresponding to the special situation handling scenario business.

[0043] like Figure 2 As shown, by using the method described in this application, user intention recognition is realized in the actual use process and business answers in special case charging scenarios are generated, which accelerates the business processing of special case charging scenarios, as follows: Acquire conversations in special charging scenarios for speech recognition and obtain the content of the conversations; collect business processing records and fine-tune the basic large language model; Set the system prompt words, set the identity of the big model, set the dialogue scenario, and the business logic that the big model needs to process, the license plate province and region abbreviation table, and the final answer template to obtain the optimized basic big language model; The optimized basic large language model is used to analyze the conversation content of the speech recognition result to obtain the conversation information; if there is a called tool, the conversation information and the result information (license plate number) obtained by calling the tool based on the conversation information can be obtained; in addition, based on the conversation information, the configured speech recognition result correction method can be used to correct the license plate information described in the conversation content, such as: "hook" is corrected to "J"; according to the regular expression matching license plate number rules, the license plate contains a combination of province abbreviations, letters, numbers, and special characters and is arranged according to the rules, and the corrected license plate information is combined to obtain the correct license plate number.

[0044] The optimized basic large language model is used to conduct comprehensive judgment and analysis on the license plate information and dialogue information obtained from multiple rounds of questions and answers, complete the user's business intention recognition, and generate corresponding business processing answers to complete the business processing of special charging scenarios.

[0045] In a specific embodiment, considering the optimization of the continuity of the large prediction model, in order to improve the accuracy of model intention recognition, the method further includes: Obtain the questions and answers of each round of conversation as a piece of conversation data, and store them in the fine-tuning dataset; whenever the number of newly added conversation data in the fine-tuning dataset reaches a preset number, use the latest fine-tuning dataset to retrain the basic large language model, and obtain the retrained basic language model; in this embodiment, the preset number is set to 500.

[0046] Obtain and compare the satisfaction evaluation results of the business answers output by the retrained basic language model and the fine-tuned basic language model. If the satisfaction of the business answers output by the retrained basic language model is higher than that of the fine-tuned basic language model, use the retrained basic language model to replace the fine-tuned basic language model to generate responses for the next round of conversation.

[0047] In a specific embodiment, considering that there may be contradictory content in the process of the user providing information, which affects the accuracy of subsequent intention understanding and answer content generation, in order to improve the accuracy of model intention recognition, the method further includes: Traverse the questions and results of multiple rounds of question and answer stored in the history list of the optimized basic large language model. If there are contradictory data in the conversation data corresponding to the questions and results of multiple rounds of question and answer, such as: the voice content in the first round of conversation is: the license plate number is "Jing F·Lxxx8", and the content of the second round of conversation is "Jing F·Lxxx0", then take the questions and results of the latest round of questions as the standard, and delete the content in the history list of the optimized basic large language model that is contradictory to the questions and results of the latest round of questions.

[0048] As Figure 3 shown, an embodiment of the present application discloses a system for obtaining intention and processing services in a toll scenario based on a large model, including: The business determination module 101 of the highway toll station is used to sort out the business types according to the toll scenario of the highway toll station, and determine the business of the highway toll station, including normal toll scenario business and special situation toll scenario business; The business fine-tuning dataset acquisition module 102 of the highway toll station is used to collect the corpus of the manual business process during the business processing of each toll scenario of the highway toll station, organize and generate a fine-tuning dataset, and define the tools to be called in the fine-tuning dataset; The module 103 for obtaining the fine-tuned basic large language model is used to select the basic large language model as the fine-tuning prototype model, and use the fine-tuning dataset to fine-tune the basic large language model to obtain the fine-tuned basic large language model; The optimized basic large language model acquisition module 104 is used to configure prompt words for the fine-tuned basic large language model after fine-tuning, complete the tuning of the fine-tuned basic large language model, and obtain the optimized basic large language model; the user intention and business answer acquisition module 105 is used to obtain the questions and answers of each round of dialogue and add them to the history list of the optimized basic large language model, use the optimized basic large language model to analyze the content of the history, obtain dialogue information and result information obtained by calling the tool based on the dialogue information; combine the dialogue information and the result information obtained by calling the tool based on the dialogue information to identify the user intention, and output the business answer according to the user intention.

[0049] The module 103 for acquiring the fine-tuned basic large language model is further used to acquire the question and answer of each round of dialogue as a dialogue data and store it in the fine-tuning data set; whenever the number of new dialogue data in the fine-tuning data set reaches a preset number, the basic large language model is re-fine-tuned using the latest fine-tuning data set to acquire the re-fine-tuned basic language model; the evaluation results of the satisfaction of the business answer content output by the re-fine-tuned basic language model and the fine-tuned basic language model are acquired and compared; if the satisfaction of the business answer content output by the re-fine-tuned basic language model is higher than the satisfaction of the business answer content output by the fine-tuned basic language model, the re-fine-tuned basic language model is used to replace the fine-tuned basic language model.

[0050] The embodiment of the present application also discloses a computer-readable storage medium.

[0051] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and execute the method of acquiring charging scenario intentions and processing business based on the large model as described above. The computer-readable storage medium includes, for example: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0052] The embodiment of the present application also discloses a computer device.

[0053] Specifically, the computer device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the above-mentioned method of charging scenario intention acquisition and business processing based on a large model.

[0054] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A method for acquiring charging scenario intention and processing business based on a large model, characterized in that: include: Sorting out the business types according to the toll collection scenarios of the expressway toll station, and determining that the businesses of the expressway toll station include normal toll collection scenarios and special toll collection scenarios; During the business processing of various toll collection scenarios at highway toll stations, the corpus of manual business processes is collected, sorted and generated into a fine-tuning dataset, and the tools that need to be called are defined in the fine-tuning dataset; Select the basic large language model as the fine-tuning prototype model, use the fine-tuning dataset to fine-tune the basic large language model, and obtain the fine-tuned basic large language model; After the fine-tuning is completed, the prompt words are configured for the fine-tuned basic large language model, and the fine-tuned basic large language model is optimized to obtain an optimized basic large language model; Get the questions and answers of each round of dialogue and add them to the history list of the optimized basic large language model. Use the optimized basic large language model to analyze the content in the history list to obtain dialogue information and the result information obtained by calling the tool based on the dialogue information. The user intent is identified by combining the conversation information and the result information obtained by calling the tool based on the conversation information, and business answers are output according to the user intent.

2. The method for acquiring charging scenario intention and processing business based on a large model according to claim 1 is characterized in that: Also includes: Get the questions and answers of each round of dialogue as a dialogue data and store it in the fine-tuning dataset; Whenever the number of new dialogue data in the fine-tuning dataset reaches a preset number, the basic large language model is re-fine-tuned using the latest fine-tuning dataset to obtain a re-fine-tuned basic language model; Obtain and compare the business answer content satisfaction evaluation results of the re-fine-tuned basic language model and the output of the fine-tuned basic language model. If the business answer content satisfaction output by the re-fine-tuned basic language model is higher than the business answer content satisfaction output by the fine-tuned basic language model, use the re-fine-tuned basic language model to replace the fine-tuned basic language model.

3. The method for acquiring charging scenario intention and processing business based on a large model according to claim 1 is characterized in that: The special circumstances include: no charge card or charge card failure; The tools that need to be called in the fine-tuning data set include: defining a tool for license plate image query and recognition that needs to be called for special charging scenario business, defining a tool for querying the vehicle information corresponding to the license plate image that needs to be called for special charging scenario business, and defining a tool for calculating the vehicle information corresponding to the vehicle charging information that needs to be called for special charging scenario business.

4. The method for acquiring charging scenario intention and processing business based on a large model according to claim 1 is characterized in that: The specific process of fine-tuning the basic large language model using the fine-tuning dataset includes: Set and initialize fine-tuning parameters, including: basic large language model path, fine-tuning dataset path and name, save path of the fine-tuned basic large language model, fine-tuning strategy, batch size, maximum length of tokens, number of gradient accumulation steps, learning rate, learning scheduler, number of training rounds, and maximum number of samples; The model is trained based on the set LORA fine-tuning strategy and fine-tuning data set; the LORA fine-tuning technology is used to perform low-rank approximation on the weight matrix of the large model. The update formula during fine-tuning includes: W′=W+U·V T In the formula, W∈R m×n represents the weight matrix, U and V represent the transposed forms of E and F respectively, E∈R m×k and F∈R k×n For the two smaller matrices introduced, k<<min(m,n) indicates a lower rank number; Determine whether the loss function value of the fine-tuned basic large language model has reached a preset loss value. If so, choose to end the fine-tuning; the loss function value of the basic large language model is a weighted calculation value of the training set loss function value and the validation set loss function value.

5. The method for acquiring charging scenario intention and processing business based on a large model according to claim 1 is characterized in that: After the fine-tuning is completed, the prompt word configuration of the fine-tuned basic large language model includes: identity configuration, scene configuration, business type processing method, speech recognition result correction method, province name abbreviation table, license plate color judgment method and final output result sample.

6. The method for acquiring charging scenario intention and processing business based on a large model according to claim 2 is characterized in that: The number of dialogue data recorded in the history list of the optimized basic large language model can be set according to the number of matches corresponding to the business type of the highway toll station; among which, the number of matches corresponding to the normal toll scenario business is less than the number of matches corresponding to the special situation processing scenario business.

7. The method for acquiring charging scenario intention and processing business based on a large model according to claim 1 is characterized in that: Also includes: If there are conflicting data in the dialogue data corresponding to the questions and results of multiple rounds of questions and answers, the questions and results of the latest round of questions shall prevail, and the conflicting contents of the questions and results of the latest round of questions in the history list of the optimized basic large language model shall be deleted.

8. A system for acquiring charging scenario intentions and processing services based on a large model, characterized in that: include: The business determination module of the high-speed toll station is used to sort out the business types according to the toll collection scenarios of the high-speed toll station, and determine whether the business of the high-speed toll station includes normal toll collection scenario business and special case toll collection scenario business; The business fine-tuning data set acquisition module for high-speed toll stations is used to collect the corpus of manual business processes during the business processing of various toll scenarios at high-speed toll stations, organize and generate fine-tuning data sets, and define the tools that need to be called in the fine-tuning data sets; A module for obtaining a fine-tuned basic large language model is used to select a basic large language model as a fine-tuning prototype model, use a fine-tuning dataset to fine-tune the basic large language model, and obtain a fine-tuned basic large language model; The optimized basic large language model acquisition module is used to configure prompt words for the fine-tuned basic large language model after fine-tuning, complete the tuning of the fine-tuned basic large language model, and obtain the optimized basic large language model; The user intention and business answer acquisition module is used to obtain the questions and answers of each round of dialogue and add them to the history list of the optimized basic large language model. The optimized basic large language model is used to analyze the content in the history list to obtain dialogue information and the result information obtained by calling the tool based on the dialogue information. The user intent is identified by combining the conversation information and the result information obtained by calling the tool based on the conversation information, and business answers are output according to the user intent.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. A computer device, characterized in that: The computer device comprises a memory, a processor and a program stored and executable on the memory, and the program implements the steps of the method according to any one of claims 1 to 7 when executed by the processor.

Citation Information

Patent Citations

  • Domain intelligent assistant method and device based on large language model

    CN117131171A

  • Traffic data analysis complex task intelligent disassembly and completion method based on large language model

    CN117194624A

  • End-to-end geographic industry large language model construction and use method

    CN117669737A

  • AI intelligent robot interaction processing method and device based on large language model

    CN117709357A

  • Toll road customer service system based on large language model

    CN117788002A

Cited By

  • Expressway toll collection digital person system based on voice model and control method

    CN119207412A

  • Key intelligence demand intention understanding method and system based on large model

    CN119475217A

  • A method and system for understanding key intelligence requirements based on big models

    CN119475217B

  • High-speed traffic acquisition method based on fused large model and related equipment

    CN120086248A