Electric power appeal response method, device and equipment based on group chat information and medium
By automatically monitoring and identifying power demands in group chats, and using natural language processing and machine learning technology, the problem of low efficiency of manual on-duty response is solved, fast and efficient processing and personalized services of power demands in group chats are achieved, and power efficiency is improved. Quality of service.
Patent Information
- Application Number
- CN202410944470.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-18
AI Technical Summary
In group chats, manual on-duty methods have low response efficiency when handling power requests and cannot meet real-time needs, especially when there is too much information or when a large number of customers ask questions at the same time.
Use automated means to monitor group chat messages, and use natural language processing and machine learning technologies to combine all chat messages of the sender within a preset period to identify power demands and generate reply messages to achieve one-on-one automatic replies.
It improves the rapid response and efficient processing of power demands in group chats, reduces manual intervention time and costs, improves the quality of power services, has higher accuracy, and can more accurately understand user intentions and provide personalized services.
Smart Images

Figure CN118798902A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric power services, and in particular relates to an electric power demand response method based on group chat information, a response device, an electronic device and a storage medium. Background Art
[0002] With the continuous development of Internet technology, group chats such as WeChat groups have become an important channel for people to communicate and obtain information in their daily lives. In the field of power services, group chats have also gradually become an important platform for communication between customers and power supply companies.
[0003] In group chats, customers often send out requests for power related to faults, business, etc., which are currently mostly handled by manual on-duty. The manual on-duty approach has problems of untimely communication and low efficiency, especially when there is too much information in the group chat or a large number of customers ask questions at the same time. The manual on-duty approach will lead to low response efficiency and fail to meet real-time requirements. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a method for responding to electric power demands based on group chat information, a response device, an electronic device and a storage medium.
[0005] In order to solve one, part or all of the above technical problems, the technical solution adopted by the present invention is: A method for responding to an electric power demand based on group chat information comprises: obtaining new chat information and the sender of the chat information from the group chat; obtaining all chat information of the sender within a preset time period; combining all chat information into a chat text; judging whether the sender has an electric power demand based on the chat text; if there is an electric power demand, identifying the sender's electric power demand from the chat text; generating a reply message for the electric power demand, and providing a one-to-one reply to the sender.
[0006] Furthermore, the chat information includes text information, picture information, voice information and video information.
[0007] Furthermore, the method of combining all chat information into chat text includes: using text recognition to obtain text information contained in image information; using speech-to-text to obtain text information corresponding to voice information; extracting key frames, and using text recognition to obtain text information contained in video information; and combining text information sent directly in the group chat, as well as text information obtained from image information, voice information, and video information into chat text in chronological order of the information.
[0008] Furthermore, the method for determining whether the sender has an electricity demand based on the chat text includes: first determining whether there is an electricity demand keyword in the chat text; if so, performing question recognition on the chat text to determine whether there is a question in the chat text; if there is a question, determining that the sender has an electricity demand.
[0009] Furthermore, the question sentence recognition method includes: firstly judging whether there are obvious question sentence features at the end and the beginning of the sentence, and if so, judging that there is a question sentence; if not, judging whether there are question sentence feature words in the sentence, and if so, judging that there is a question sentence. Alternatively, the question sentence recognition method includes: preprocessing the sentence, and inputting the preprocessing result into the question sentence recognition model to identify whether there is a question sentence.
[0010] Furthermore, the method for identifying the power demand of the sender from the chat text includes: preprocessing the chat text, and inputting the preprocessing result into the power demand recognition model to perform power demand recognition.
[0011] Furthermore, the response method also includes: constructing a question recognition model; the method for constructing the question recognition model includes: obtaining all chat information in the group chat; combining all chat information of the same sender within 3 minutes into a chat text according to the sender and the sending time; marking the chat text with the corresponding power demand through manual labeling; constructing a question recognition model, taking the preprocessing result of the chat text as input and the labeled power demand as output, and training the power demand recognition model.
[0012] A power demand response device based on group chat information includes an acquisition module, a judgment module, an identification module and a reply module; the acquisition module is used to acquire new chat information and the sender of the chat information from the group chat, and is used to acquire all chat information of the sender within a preset time period, and is used to combine all chat information into a chat text; the judgment module is used to determine whether the sender has a power demand based on the chat text; the identification module is used to identify the sender's power demand from the chat text when there is a power demand; the reply module is used to generate reply information for the power demand, and is used to send the reply information to the sender.
[0013] An electronic device comprises a processor and a memory; the memory is used to store executable instructions, and the processor is used to execute the instructions to implement the response method.
[0014] A computer-readable storage medium stores instructions, and when the instructions are executed, the response method is implemented.
[0015] Compared with the prior art, the present invention has the following beneficial effects: The present invention adopts automated means to monitor chat messages in group chats. For each chat message, it is combined with other messages sent by the sender in the current period to determine whether the sender has an electricity demand. Then, the electricity demand recognition model is used to identify the sender's specific electricity demand, and reply information is automatically generated based on the electricity knowledge base, the sender's information and the data of the power system to provide a one-to-one reply to the sender.
[0016] The present invention realizes rapid response and efficient processing of power demands in group chats through automated and intelligent technical means. The present invention adopts natural language processing and machine learning technology, which can quickly identify the power demands of users in group chats and give accurate answers, reducing the time and cost of manual intervention. Compared with a simple keyword matching question-and-answer system, the present invention has a higher accuracy rate and can more accurately understand user intentions and provide personalized services. The use of the present invention can improve the quality of power services. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0018] Figure 1 : Flow chart of embodiment 1 of the present invention; Figure 2 : A schematic diagram of Embodiment 2 of the present invention; Figure 3 : Schematic diagram of embodiment 3 of the present invention. DETAILED DESCRIPTION
[0019] In order to better understand the present invention, the content of the present invention is further clearly described below in conjunction with the embodiments and the accompanying drawings, but the protection content of the present invention is not limited to the following embodiments. In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is obvious to those skilled in the art that the present invention can be implemented without one or more of these details.
[0020] Example 1: See Figure 1 The purpose of this embodiment is to provide a method for responding to power demands based on group chat information. The response method includes: S1. Obtain new chat information and the sender of the chat information from the group chat.
[0021] Monitor the group chat content, and when there is a new chat message, obtain the chat message and the corresponding sender. Chat messages mainly include text messages, picture messages, voice messages, and video messages.
[0022] S2. Obtain all chat information of the sender within a preset time period.
[0023] The chat messages related to power demands can be sent in pieces, but the chat messages for the same matter are generally sent in batches, with a short time span. Therefore, by obtaining all the chat messages of the sender within a preset time period (such as 1-5 minutes), it is possible to determine whether there is a power demand.
[0024] S3. Combine all chat information into a chat text.
[0025] For image information, OCR text recognition technology is used to obtain the text information contained in the image; for voice information, speech-to-text technology is used to obtain the corresponding text information; for video information, key frames are extracted and text recognition technology is used to obtain the text information contained in the video. Finally, in chronological order, the text information sent directly in the group chat, as well as the text information obtained from pictures, voice, and video, are combined into chat text to facilitate the subsequent identification of power demands.
[0026] S4. Determine whether the sender has electricity demand based on the chat text.
[0027] Electricity demands in chat texts generally appear in the form of questions; when electricity demands exist, keywords related to electricity demands, such as power outages and electricity bills, also exist in the chat texts.
[0028] Therefore, in this step, to determine whether there is an electricity demand, first traverse the keyword list to obtain a single keyword, and use string matching to determine whether there is an electricity demand keyword in the chat text; or build a regular expression based on the keyword list, and use regular expression matching to determine whether there is an electricity demand keyword in the chat text. If there is, then question recognition is performed on the chat text to determine whether there is a question in the chat text. If so, it is determined that the corresponding sender has an electricity demand.
[0029] When identifying questions, first split the chat text into different sentences and perform question recognition on the sentences. When identifying, first determine whether there are obvious question features at the end of the sentence (such as "?", "?", "?", "No", etc.), and whether there are obvious question features at the head of the sentence (such as "Do you have", "Why", "Excuse me", "Is it", etc.). If so, directly determine that there is a question. Otherwise, continue to determine whether there are question feature words in the sentence (such as "what", "how much", "where", "how to do", etc.). If so, determine that there is a question.
[0030] Of course, a question recognition model can also be constructed based on sample data such as question feature words and syntax commonly used in power appeals. When performing question recognition on sentences, the sentences are preprocessed to obtain the syntax of the sentences, and the words contained in the sentences are obtained through word segmentation. This information is input into the question recognition model to identify whether there is a question.
[0031] S5. If there is a power demand, identify the sender's power demand from the chat text.
[0032] When implementing this step, the chat text is first preprocessed, such as word segmentation, stop word removal, part-of-speech tagging, syntactic analysis, etc.; then the preprocessing result is input into the power demand recognition model for power demand recognition to obtain specific power demands, such as fault reporting, electricity bill inquiry, business consultation, etc.
[0033] The power demand recognition model is pre-built. There is no corpus related to power demands on the Internet at present, so the applicant obtains all chat information in several group chats, and according to the information such as the sender and the sending time, all chat information of the same sender in the segment time is combined into chat texts according to the 3-minute segment time (the implementation process is consistent with step S3); then the chat texts containing power demands are screened out (the implementation process is consistent with step S4); then these chat texts are marked with specific power demands through manual annotation; and the chat texts are pre-processed, such as word segmentation, stop word removal, part-of-speech tagging, syntactic analysis, etc. Finally, the power demand recognition model is constructed, and the power demand recognition model is trained with the pre-processing results of the chat text as input and the labeled power demands as output.
[0034] S6. Generate a reply message for the power request and provide a one-to-one reply to the sender.
[0035] This step generates corresponding reply information based on the identified power demands, from the pre-built power knowledge base, and in combination with relevant power system information. Finally, a one-to-one reply is made in the group chat by @ing the sender, or by privately chatting with the sender.
[0036] For example, for power complaints such as faults, based on the area to which the group chat corresponds (group chats are generally built according to different areas), fault information, estimated repair time, on-site photos, etc. are obtained from the OMS system (power outage management system) and TCM system (fault repair system), and the reply information is generated in combination with the reply template obtained from the knowledge base.
[0037] For group chats built in the power system's own APP, the sender is generally bound to a specific account number; for third-party group chats such as WeChat and QQ, it is recommended to fill in the account number in the user name, so that the sender's corresponding account number can be obtained, so that a more targeted reply can be provided. For example, for power demands such as power outages and faults, if the sender's account number can be obtained, the area and fee information corresponding to the account number can be obtained from the power marketing management information system to determine whether the power outage is caused by arrears. If so, the corresponding reply information is generated; if not, according to the corresponding area, the fault information, estimated repair time of the fault, on-site photos, etc. are obtained from the OMS system, TCM system, etc., and the reply information is generated in combination with the reply template obtained from the knowledge base.
[0038] The response method further includes: S7. Monitor the power outage management system and fault repair system. When a new power outage plan or power outage event is obtained, the relevant power outage information is automatically pushed in the corresponding group chat.
[0039] Traditional power outage information transmission methods often require manual operation, are prone to errors, and have low transmission efficiency. The automatic push method can achieve automated operation and improve the efficiency and accuracy of information transmission.
[0040] Traditional methods of delivering power outage information often only include simple information about the time and location of the power outage, while the automatic push method based on group chat can include more information, such as the cause of the power outage, expected restoration time, on-site photos or videos, etc., providing users with more comprehensive information.
[0041] Example 2: See Figure 2 The purpose of this embodiment is to provide a power demand response device based on group chat information, which is used to execute the response method of embodiment 1. The response device 200 includes: an acquisition module 201, a judgment module 202, an identification module 203 and a reply module 204.
[0042] The acquisition module 201 is used to acquire new chat information and the sender of the chat information from the group chat, to acquire all chat information of the sender within a preset period of time, and to combine all chat information into a chat text. In combination with Embodiment 1, the acquisition module 201 is used to execute steps S1-S3.
[0043] The judgment module 202 is used to judge whether the sender has a power demand according to the chat text. In combination with Embodiment 1, the judgment module 202 is used to execute step S4.
[0044] The identification module 203 is used to identify the power demand of the sender from the chat text when there is a power demand. In combination with Embodiment 1, the identification module 203 is used to execute step S5.
[0045] The reply module 204 is used to generate a reply message for the power request, and to send the reply message to the sender. In combination with Embodiment 1, the reply module 204 is used to execute step S6.
[0046] Regarding the device in this embodiment, the specific manner in which each unit or module performs operations has been described in detail in Example 1 and will not be elaborated here.
[0047] Those skilled in the art should understand that for the convenience and simplicity of description, the present application only uses the division of the above-mentioned functional modules or units as examples in the device embodiments. In actual applications, the above-mentioned functions can be assigned to different functional modules or units as needed, that is, the internal structure of the device can be divided into different functional modules or units to complete all or part of the functions described above.
[0048] Example 3: See Figure 3 The purpose of this embodiment is to provide an electronic device 300, including at least one processor 301 and one or more memories 302 for storing executable instructions of the processor 301. The processor 301 is used to execute the instructions in the memory 302 to implement the response method described in Example 1.
[0049] The electronic device 300 further includes a bus 304 , and the processor 301 and the memory 302 are connected to each other via the bus 304 , or are connected to each other in other ways.
[0050] The processor 301 is a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 301 may also be other devices with processing functions, such as circuits, devices, or software modules, without limitation. In one example, the processor 301 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 in.
[0051] The memory 302 may be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.
[0052] It should be noted that the memory 302 may exist independently of the processor 301 or may be integrated with the processor 301. The memory 302 may be used to store instructions or program codes or some data, etc. The memory 302 may be located inside the electronic device 300 or outside the electronic device 300, without limitation.
[0053] As an optional implementation, the electronic device 300 also includes a communication interface 303. The communication interface 303 is a wired interface (or port), such as a fiber distributed data interface (FDDI), a gigabit Ethernet interface (GE), etc. Alternatively, the communication interface 303 is a wireless interface. The communication interface 303 can be a module, a circuit, a communication interface, or any device capable of achieving communication. The communication interface 303 is used to communicate with other devices or other communication networks, which can be Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.
[0054] As an optional implementation, the electronic device 300 further includes an input device 305 and an output device 306. For example, the input device 305 is a keyboard, a mouse, a microphone, a joystick, and the like, and the output device 306 is a display screen, a speaker, and the like.
[0055] It should be noted that the electronic device 300 may be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system or a Figure 3 In addition, Figure 3 The components shown in the figure do not constitute a limitation on the terminal device, except Figure 3 In addition to the components shown, the electronic device 300 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0056] Embodiment 4: The purpose of this embodiment is to provide a computer-readable storage medium.
[0057] All or part of the processes in the above method embodiments may be completed by computer instructions to instruct relevant hardware. The program may be stored in the computer-readable storage medium. When the program is executed, the response method described in Example 1 may be implemented.
[0058] The computer-readable storage medium may be an internal storage unit of the electronic device of Example 3, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the above-mentioned electronic device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0059] In conjunction with the several embodiments provided in this application, it should be understood that the provided devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the assessment of the modules or units is only a logical function assessment. There may be other assessment methods in actual implementation, such as multiple modules or units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0060] In addition, in the embodiment of the device of the present application, each functional module or unit can be integrated into one unit, or each module or unit can exist physically separately, or two or more modules or units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional modules.
[0061] If the above-mentioned integrated unit is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Other modifications or equivalent substitutions made to the technical solution of the present invention by ordinary technicians in the field should be included in the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for responding to power demands based on group chat information, characterized in that: include: Get new chat information and the sender of the chat information from the group chat; Obtain all chat messages of the sender within the preset time period; Combine all chat messages into chat text; Determine whether the sender has electricity demands based on the chat text; If there is a power demand, identifying the sender's power demand from the chat text; Generate response information for power requests and provide one-to-one responses to senders.
2. The method for responding to power demands based on group chat information according to claim 1, characterized in that: Methods for combining all chat messages into chat text include: Use text recognition to obtain text information contained in image information; Use speech-to-text to obtain text information corresponding to speech information; Extract key frames and use text recognition to obtain text information contained in video information; In chronological order, text messages sent directly in the group chat and text messages obtained from picture information, voice information, and video information are combined into chat text.
3. The method for responding to electric power demands based on group chat information according to claim 1, characterized in that: Methods for judging whether the sender has electricity demands based on the chat text include: First, determine whether there are electricity demand keywords in the chat text; If so, question recognition is performed on the chat text to determine whether there is a question in the chat text; If there is a question, it is determined that the sender has a power demand.
4. The method for responding to electric power demands based on group chat information according to claim 4, characterized in that: Question recognition methods include: First, determine whether there are obvious features of a question sentence at the end and head of the sentence. If so, determine that there is a question sentence. If it does not exist, determine whether there is a question feature word in the sentence; if it does, determine that there is a question sentence.
5. The method for responding to electric power demands based on group chat information according to claim 4, characterized in that: The method for question recognition includes: preprocessing the sentence, and inputting the preprocessing result into the question recognition model to identify whether there is a question.
6. The method for responding to electric power demands based on group chat information according to claim 1, characterized in that: The method for identifying the power demand of the sender from the chat text includes: preprocessing the chat text, and inputting the preprocessing result into the power demand recognition model to perform power demand recognition.
7. The method for responding to electric power demands based on group chat information according to claim 1, characterized in that: The response method further includes: constructing a question recognition model; Methods for building a question recognition model include: Get all chat information in the group chat; According to the sender and sending time, all chat messages from the same sender within 3 minutes are combined into chat text; Through manual labeling, the chat text is marked with corresponding power demands; A question recognition model is constructed, and the preprocessing results of the chat text are used as input and the labeled power demands are used as output to train the power demand recognition model.
8. A power demand response device based on group chat information, characterized in that: It includes an acquisition module, a judgment module, an identification module and a reply module; The acquisition module is used to acquire new chat information and the sender of the chat information from the group chat, to acquire all chat information of the sender within a preset period of time, and to combine all chat information into a chat text; The judgment module is used to judge whether the sender has an electricity demand based on the chat text; The identification module is used to identify the power demand of the sender from the chat text when there is a power demand; The reply module is used to generate reply information in response to the power request, and to send the reply information to the sender.
9. An electronic device, characterized in that: It comprises a processor and a memory; the memory is used to store executable instructions, and the processor is used to execute the instructions to implement the response method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed, the response method described in any one of claims 1 to 7 is implemented.
