Message sending control method and device, electronic equipment, chip and medium
By analyzing the content of the message to be sent, determining the target topic, and determining whether to send a message based on the matching degree of the target topic and the target group, the problem of user efficiency and experience in the existing technology is solved, and message errors are achieved The fundamental avoidance of sending and the accuracy of information transmission.
Patent Information
- Application Number
- CN202410990257.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In the prior art, when preventing the user's usage efficiency and user experience from being sent by mistake, the prior art will be unable to fundamentally prevent the problem of accidentally sent by messages.
By analyzing the content of the group message to be sent, the target topic is determined, and based on the historical topic matching between the target topic and the target group, it is determined whether to send messages directly, and the user efficiency and user experience are improved.
It fundamentally avoids the missed message sending, improves user efficiency and user experience, and ensures accurate communication and communication efficiency of information.
Smart Images

Figure CN118921343A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of cloud computing, and in particular to a message sending control method, device, electronic device, chip and medium. Background Art
[0002] With the development of computer and network technology, instant messaging tools have been widely used in daily life and work, greatly facilitating people's daily communication. However, due to the negligence or misoperation of the sender, and because the identification of various groups cannot be accurately distinguished, group messages are often sent by mistake.
[0003] In the related art, a password is set for a preset group chat to prevent the message from being sent by mistake. When sending a message, it is determined whether the target group has a group chat password set. If the target group has not set a group chat password, or has set a group chat password but has not activated it, the message is sent directly. Otherwise, the group chat password is verified. Although the sending of group chat messages is verified, there are problems such as reduced user efficiency and user experience, and it is impossible to fundamentally prevent the message from being sent by mistake. Summary of the invention
[0004] The present disclosure provides a message sending control method, device, electronic device, chip and medium to solve the problem of reduced user efficiency and reduced user experience in preventing the mis-sending of messages. The method analyzes the content of the group message to be sent, determines the target topic, and determines whether to send the message directly based on the matching degree between the target topic and the historical topics in the target group. The method improves the user efficiency and experience, and fundamentally solves the problem of mis-sending of messages.
[0005] A first aspect of the present disclosure provides a message sending control method, the method comprising:
[0006] In response to a message sending instruction for a target group, obtaining a to-be-sent group message;
[0007] Determine the target topic based on the content of the group message to be sent;
[0008] Based on the matching degree between the target topic and the historical topics of the target group, a to-be-sent group message is sent to the target group.
[0009] In one embodiment of the present disclosure, determining the matching degree between a target topic and a historical topic of a target group, and sending a to-be-sent group message to the target group includes:
[0010] Get historical topics of the target group;
[0011] Determine the topic matching degree between the target topic and the historical topic through a topic matching algorithm;
[0012] Based on the topic matching degree, determine whether the group message to be sent is a false trigger message;
[0013] If the to-be-sent group message is a false trigger message, the to-be-sent group message is sent to the target group according to the user confirmation instruction.
[0014] In one embodiment of the present disclosure, sending a to-be-sent group message to a target group according to a user confirmation instruction includes:
[0015] Get user confirmation instructions;
[0016] If the user confirms that the instruction is to confirm sending, the group message to be sent is sent to the target group;
[0017] If the user confirms that the instruction is to abandon sending, sending the pending group message to the target group is abandoned.
[0018] In one embodiment of the present disclosure, determining a target topic according to the content of a to-be-sent group message includes:
[0019] Converting the content of the to-be-sent group message into structured message data, wherein the structured message data includes a topic list of the to-be-sent group message, wherein the topic list includes at least one topic, and the topic list includes a topic category and a confidence level;
[0020] The target topic is determined according to the topic category and confidence of the structured message.
[0021] In one embodiment of the present disclosure, determining the topic matching degree between the target topic and the historical topic by using a topic matching algorithm includes:
[0022] Determine whether the confidence and topic proportion of the first topic in the first topic list are greater than or equal to corresponding thresholds, the first topic list is a topic list of the to-be-sent group message, and the topic proportion is the percentage of the number of characters in the first topic used to indicate the topic category to the total number of characters in the to-be-sent group message content;
[0023] If the confidence of the first topic list is greater than or equal to the first confidence threshold, and the topic weight of the first topic list is greater than or equal to the first topic weight threshold, the topic matching degree is determined according to the topic list of the historical topics and the topic category of the first topic.
[0024] In one embodiment of the present disclosure, determining a topic matching degree according to a topic list of historical topics and a topic category of a first topic includes:
[0025] The second topic list is traversed, and the second topic list is a topic list of historical topics; if the second topic list and the first topic list meet the preset conditions, it is determined that the topic match is successful, and the preset conditions are: the topic category of the first topic exists in the topic category of the second topic list, and the topic frequency of the second topic list is greater than or equal to the preset topic frequency threshold, and the topic proportion of the second topic list is greater than or equal to the second topic proportion threshold, and the topic frequency is the number of times the first topic appears in the second topic list.
[0026] In one embodiment of the present disclosure, after sending the to-be-sent group message to the target group, the method further includes:
[0027] Traverse the first topic list to determine whether the topic category of the first topic exists in the second topic list;
[0028] If the topic category of the first topic exists in the second topic list, updating the second topic list based on the first topic frequency and the second topic weight determined based on the confidence level of the first topic;
[0029] If the topic category of the first topic does not exist in the second topic list, the first topic is added to the second topic list.
[0030] In an embodiment of the present disclosure, the to-be-sent group message includes one or more multimedia messages such as text, picture, audio, video, emoticon, etc.
[0031] A second aspect of the present disclosure provides a message sending control device, the device comprising:
[0032] An acquisition module, configured to acquire a to-be-sent group message in response to a message sending instruction for a target group;
[0033] A determination module, used to determine a target topic according to the content of the group message to be sent;
[0034] The confirmation module is used to send a to-be-sent group message to the target group based on the matching degree between the target topic and the historical topics of the target group.
[0035] The third aspect embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the methods in the first aspect embodiment of the present disclosure.
[0036] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable a computer to execute the method in the first aspect embodiment of the present disclosure.
[0037] The fifth aspect embodiment of the present disclosure proposes a computer program product, characterized in that it includes a computer program, and when the computer program is executed by a processor, it implements any method in the first aspect embodiment of the present disclosure.
[0038] The sixth aspect embodiment of the present disclosure proposes a chip, comprising at least one processor and a communication interface; the communication interface is used to receive signals input into the chip or signals output from the chip, the processor communicates with the communication interface and implements any one of the methods in the first aspect embodiment of the present disclosure through logic circuits or execution code instructions.
[0039] In summary, according to the message sending control method proposed in the present disclosure, in response to the message sending instruction for the target group, the to-be-sent group message is obtained, and the message data is provided to prevent the message from being sent by mistake; according to the content of the to-be-sent group message, the target topic is determined, and the topic type of the target topic is obtained; based on the matching degree between the target topic and the historical topic of the target group, the to-be-sent group message is sent to the target group, and the matching degree verification between the target topic and the target group is automatically completed. The user efficiency and user experience of preventing the message from being sent by mistake are improved.
[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0042] Figure 1 This is a flow chart of a message sending control method according to an embodiment of the present disclosure;
[0043] Figure 2 A flowchart of sending a to-be-sent group message to a target group based on a matching degree between a target topic and a historical topic of a target group according to an embodiment of the present disclosure;
[0044] Figure 3 This is a flow chart of sending a to-be-sent group message to a target group according to a user confirmation instruction according to an embodiment of the present disclosure;
[0045] Figure 4 A flowchart of determining a target topic according to the content of a group message to be sent according to an embodiment of the present disclosure;
[0046] Figure 5 A flowchart of determining the topic matching degree between a target topic and a historical topic through a topic matching algorithm according to an embodiment of the present disclosure;
[0047] Figure 6A flowchart of an embodiment of the present disclosure for determining a topic matching degree according to a topic list of historical topics and a topic category of a first topic;
[0048] Figure 7 A flowchart of updating a second topic list of historical topics according to an embodiment of the present disclosure;
[0049] Figure 8 This is a flow chart of a message sending control method according to an embodiment of the present disclosure;
[0050] Fig. 9 It is a structural schematic diagram of a message sending control device according to an embodiment of the present disclosure;
[0051] Fig.10 It is a block diagram of an electronic device for implementing the message sending control method disclosed in the present invention according to an exemplary embodiment. DETAILED DESCRIPTION
[0052] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout identify the same or similar originals or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0053] With the widespread use of instant messaging tools, in order to conduct efficient multi-person group communication, users will create groups to chat with other users. With the needs of life or work, more and more groups are created. However, due to the negligence or misoperation of users when sending messages, or the inability to accurately distinguish between various groups in terms of identification, group messages are often sent by mistake. At the same time, the inability to identify group messages often leads to irreversible and huge social impacts, causing problems in life, work and law for the parties involved.
[0054] In the related art, the following method is used to achieve group chat mis-triggering. First, determine whether the group chat password is set and activated in the preset group chat; then, if it is determined that the group chat password is set and activated in the preset group chat, send the message after entering the password; if it is determined that the group chat password is not set in the preset group chat, or the group chat password is set but not activated, send the message directly. Although this method solves the problem that group chats are easily mis-sent, it prevents group chats from being mis-sent. However, each group chat message requires a password input. Although it has been improved to a certain extent, it still has a great impact on the efficiency and experience of use. There is no classification and distinction of group messages, and no effective method is provided to determine the matching degree between the message and the topic discussed by the target group, and it is impossible to assist users to send a large number of normal messages without perception. There is no logical connection between password input and mis-sending of messages, and it is essentially impossible to prevent mis-sending of messages. In summary, in the related art, the problem of reduced user efficiency and experience when mis-sending messages is prevented.
[0055] The method proposed in the present disclosure is applied to the task of message sending control, and its application has rich scenarios, especially in the environment where it is necessary to ensure that the information is accurately conveyed and the group communication is efficient. For example, in the enterprise communication scenario, in the team communication within the enterprise, ensure that the information sent is related to the discussion topic to avoid confusing messages of different projects or topics. In the field of project management, for cross-departmental or cross-team projects, the use of this technology can help participants ensure that the messages sent are related to the project and reduce the interference of irrelevant information. In the field of online education, the course discussion group in the online education platform can use this technology to ensure that the discussion remains on the specific course content and prevent deviation from the topic. In social media groups, social media groups with specific interests or topics (such as photography, travel, etc.) can use this technology to maintain the relevance of group discussions. In customer support groups, support groups set up by companies for products or services can use this technology to ensure that customer questions and answers are all for specific products and services. In forum and community management, online forums or communities use this technology to help guide users to publish content related to the current topic and maintain the coherence and order of the discussion. In game and entertainment groups, especially team strategy games, players can use this technology to ensure that communication is about the current game or strategy, reducing misunderstandings and errors. In health and medical groups, in groups discussing specific diseases or treatments, this technology can help ensure the accuracy and relevance of information. In emergency response and coordination: In emergency situations, such as natural disasters or public safety incidents, this technology can help relevant personnel send and receive information directly related to the current situation. In the field of government and public services, government departments can use this technology to ensure that information transmission is accurate and timely when discussing specific policies or services. The application scenarios are not limited in the embodiments of the present disclosure.
[0056] In these scenarios, by matching the target topic of the group message to be sent with the topic type of the historical chat records of the target group, it is possible to reduce the chances of mis-sending messages and improve communication efficiency without reducing user efficiency and experience.
[0057] The message sending control method provided by the present disclosure is described in detail below with reference to the accompanying drawings.
[0058] Figure 1 Flow chart of a message sending control method according to an embodiment of the present disclosure. This solution can be run on the client or server of instant messaging software. Figure 1 In the embodiment shown, the message sending control method includes:
[0059] Step 101, in response to a message sending instruction for a target group, obtaining a to-be-sent group message.
[0060] In this embodiment, the target group refers to the group to which the user wants to send the message. The pending group message refers to the group message that the user wants to send to the target group, and its form includes multimedia data such as text, voice, image, video, emoticon, etc. When the user triggers the sending instruction to the target group, the instant messaging software client or server records the pending group message.
[0061] Step 102, determining a target topic according to the content of the group message to be sent.
[0062] In this embodiment, the target topic refers to the topic type reflected in the content of the current group message to be sent. According to the content information of the group message to be sent, the topic type of the group message to be sent can be determined through semantic understanding or classification algorithm.
[0063] Step 103: Send a to-be-sent group message to the target group based on the matching degree between the target topic and the historical topics of the target group.
[0064] In this embodiment, the historical topic refers to the topic included in the historical chat record of the target group. Optionally, the historical topic can be represented as a set type, with the topic included in the historical chat record as an element. A correlation match is performed based on the topic type of the target topic and the topic type included in the historical topic. Based on the matching degree of the two, whether to send the to-be-sent group message to the target group is confirmed. If confirmed, the to-be-sent group message is sent to the target group. Otherwise, the to-be-sent group message is rejected to be sent to the target group, and the user is prompted that the message was sent by mistake.
[0065] In summary, according to the message sending control method proposed in the present disclosure, in response to the message sending instruction for the target group, the to-be-sent group message is obtained, and the message data is provided to prevent the message from being sent by mistake; according to the content of the to-be-sent group message, the target topic is determined, and the topic type of the target topic is obtained; based on the matching degree between the target topic and the historical topic of the target group, the to-be-sent group message is sent to the target group, and the matching degree verification between the target topic and the target group is automatically completed. The user efficiency and user experience of preventing the message from being sent by mistake are improved. The occurrence of the message being sent by mistake is fundamentally avoided.
[0066] Figure 2 The present invention is a flowchart of determining a matching degree between a target topic and a historical topic of a target group, and sending a to-be-sent group message to the target group according to an embodiment of the present disclosure. Figure 2 Yes Figure 1 Further explanation of step 103 is based on Figure 2 The embodiment shown comprises the following steps:
[0067] Step 201, obtaining historical topics of the target group.
[0068] In this embodiment, before or after the sending instruction is triggered, the chat history of the target group is obtained, that is, the historical topics of the target group are obtained.
[0069] Step 202: Determine the topic matching degree between the target topic and the historical topics through a topic matching algorithm.
[0070] In this embodiment, the topic matching algorithm refers to a similarity solving algorithm, which extracts the features of two topics and calculates the feature similarity to determine the topic matching degree. The topic matching degree refers to the similarity of the content of two topics, such as the semantic similarity of text, the similarity of images, the similarity of voices, etc. The topic matching algorithm is used to match the target topic and the historical topic to determine the topic matching degree of the two.
[0071] Step 203: Based on the topic matching degree, determine whether the to-be-sent group message is a false trigger message.
[0072] In this embodiment, a false trigger message refers to a message that is not sent by the user's true intention, for example, a message generated by a user's operation error or a message generated by a system failure. Based on the determined topic matching degree, a further judgment is made as to whether the group message to be sent is a false trigger message. In other words, if the topic matching degree is high, it indicates that the topic matching is successful, indicating that it is not a false message but a normal message. If the topic matching degree is low, that is, the topic matching fails, it indicates that the group message to be sent is a false trigger message.
[0073] Step 204: If the to-be-sent group message is a false trigger message, the to-be-sent group message is sent to the target group according to the user confirmation instruction.
[0074] In this embodiment, the confirmation instruction includes a confirmation sending instruction and a confirmation not to send instruction. If the to-be-sent group message is a false trigger message, then in order to confirm the user's true intention, whether to send the to-be-sent group message to the target group is determined according to the user's confirmation instruction. For example, if the to-be-sent group message is a false trigger message, a pop-up window prompts the user that the current message sending may be a false trigger operation, prompting the user to confirm sending or to give up sending. If the user confirms that the to-be-sent group message is to be sent, then the to-be-sent group message is directly sent to the target group. If the user confirms that the to-be-sent group message is not to be sent, then the operation ends. This ensures that false sending does not occur, and realizes the senseless sending of normal messages, thereby improving user efficiency and user experience.
[0075] Figure 3 The present invention is a flowchart of sending a to-be-sent group message to a target group according to a user confirmation instruction according to an embodiment of the present invention. Figure 3 Yes Figure 2 Further description of step 204 is made based on Figure 3 The embodiment shown comprises the following steps:
[0076] Step 301, obtaining a user confirmation instruction.
[0077] In this embodiment, after confirming that the to-be-sent group message is a false trigger message, in order to ensure whether the to-be-sent group message is the message that the user actually intends to send, it is necessary to obtain the user's confirmation instruction. Thus, the user's confirmation instruction is obtained to perform the confirmation operation. For example, when the to-be-sent group message is determined by the chat software to be a false trigger message, a pop-up window will be displayed to warn whether you really want to send the message to the target group. If so, confirm to send it, otherwise, give up sending it.
[0078] Step 302: If the user confirmation instruction is to confirm sending, the to-be-sent group message is sent to the target group.
[0079] In this embodiment, if the user confirmation instruction is a confirmation sending instruction, the to-be-sent group message is sent to the target group, thereby completing the confirmation of the user's intention.
[0080] Step 303: If the user confirms that the instruction is to abandon sending, then the sending of the to-be-sent group message to the target group is abandoned.
[0081] In this embodiment, if the user confirmation instruction is an abandonment sending instruction, the chat software refuses to send the to-be-sent group message to the target group, thereby avoiding the mistaken sending of the message to the target group.
[0082] In this embodiment, when the to-be-sent group message is determined to be a false trigger message, the to-be-sent group message is sent to the target group according to the user confirmation instruction to prompt and verify the false trigger message, thereby avoiding the occurrence of false message sending.
[0083] Figure 4 The present invention is a flowchart of determining a target topic according to the content of a to-be-sent group message according to an embodiment of the present invention. Figure 4 Yes Figure 3 The specific description of step 302 is based on Figure 4 The embodiment shown comprises the following steps:
[0084] Step 401, converting the content of the to-be-sent group message into structured message data, the structured message data including a topic list of the to-be-sent group message, the topic list including at least one topic, and the topic including topic category and confidence.
[0085] In this embodiment, structured message data refers to message data after the content of the to-be-sent group message has been structured, for example, the to-be-sent group message is parsed into a topic list, which is represented by an array or list data structure, and the topic list includes at least one topic. Each topic includes a topic category and a confidence attribute. When responding to a sending instruction of the to-be-sent group message, the to-be-sent group message is converted into structured message data.
[0086] Step 402: Determine a target topic according to the topic category and confidence level of the structured message.
[0087] In this embodiment, after the content of the to-be-sent group message is converted into a structured message, the target topic is determined according to the topic category and confidence of the structured message. For example, the topic category and confidence value of each topic in the topic list of the structured message are used to select the topic whose topic category and confidence value are both greater than the corresponding threshold as the target topic. This facilitates the method disclosed in the present invention to perform mis-sending prevention processing.
[0088] Figure 5 The present invention is a flowchart of an embodiment of the present invention for determining the topic matching degree between a target topic and a historical topic through a topic matching algorithm. Figure 5 Yes Figure 3 and Figure 2 The specific description of step 202 is based on Figure 5 The embodiment shown comprises the following steps:
[0089] Step 501, determine whether the confidence and topic proportion of the first topic in the first topic list are greater than or equal to the corresponding threshold value, the first topic list is a topic list of the group message to be sent, and the topic proportion is the percentage of the number of characters in the first topic used to represent the topic category to the total number of characters in the content of the group message to be sent.
[0090] In this embodiment, the first topic list refers to a list of topic information contained in the content of the group message to be sent, including topic information, topic, confidence and topic weight, etc. The first topic is a topic in the first topic list. In order to confirm that the first topic list of the group message to be sent can be used as a match with the topic list in the chat record of the target group, it is first necessary to confirm the reliability of the first topic list of the group message to be sent. When traversing the first topic list of the group message to be sent, it is determined whether the confidence and topic weight of the first topic in the first topic list are greater than or equal to the corresponding threshold. By comparing the confidence and topic weight with the preset threshold, the reliability of the first topic list of the group message to be sent can be determined. The topic weight is the percentage of the number of bytes in the first topic used to represent the topic category to the total number of bytes in the content of the group message to be sent.
[0091] Step 502: If the confidence of the first topic is greater than or equal to the first confidence threshold, and the topic weight of the first topic is greater than or equal to the first topic weight threshold, determine the topic matching degree according to the topic list of historical topics and the topic category of the first topic.
[0092] In this embodiment, the first confidence threshold refers to a numerical value used to measure the confidence of the first topic list. The first topic weight threshold refers to a numerical value used to measure the topic weight of the first topic list. If the confidence of the first topic list is greater than or equal to the first confidence threshold, and the topic weight of the first topic list is greater than or equal to the first topic weight threshold, it is confirmed that the to-be-sent group message meets the basic conditions for the reminder. Thus, the topic matching degree is determined based on the topic list of historical topics and the topic category of the first topic list, providing a basis for judging whether the user has the possibility of sending by mistake.
[0093] Figure 6 The present invention is a flowchart of an embodiment of determining a topic matching degree according to a topic list of historical topics and a topic category of a first topic. Figure 6 Yes Figure 5 The specific description of step 502 is based on Figure 6 The embodiment shown comprises the following steps:
[0094] Step 601, traverse the second topic list, the second topic list is a topic list of historical topics, if the second topic list and the first topic list meet the preset conditions, it is determined that the topic match is successful, the preset conditions are: the topic category of the first topic exists in the topic category of the second topic list, and the topic frequency of the second topic list is greater than or equal to the preset topic frequency threshold, and the topic weight of the second topic list is greater than or equal to the second topic weight threshold, the topic frequency is the number of times the first topic appears in the second topic list.
[0095] In this embodiment, the second topic list is a list composed of various topics in the historical topics. Preferably, the data structure of the second topic list is a list or an array. The preset topic frequency threshold refers to a numerical value used to measure the larger topic frequency of the second topic list. The topic frequency refers to the number of times the first topic appears in the second topic list. The second topic weight threshold refers to the proportion of topics in the historical topics that have the same topic category as the first topic list. After confirming the topic weight and confidence of the group message to be sent, the second topic list of the historical topics is traversed. If the second topic list and the first topic list meet the preset conditions, it is determined that the topic category of the second topic list matches the topic of the first topic category successfully. Among them, the preset conditions need to meet the following three conditions at the same time: the topic category of the first topic exists in the topic category of the second topic list, the topic frequency of the second topic list is greater than or equal to the preset topic frequency threshold, and the topic weight of the second topic list is greater than or equal to the second topic weight threshold.
[0096] In this embodiment, the topic matching degree is determined by comparing the topic list of the historical topics and the topic category of the first topic through the topic similarity, which provides a basis for judging whether the topic of the historical chat message of the target group matches the topic of the to-be-sent group message.
[0097] Figure 7 The present invention is a flowchart of updating a second topic list of historical topics according to an embodiment of the present disclosure. Figure 7 Yes Figure 6 and Figure 3 The specific description of step 302 is based on Fig. 9 The embodiment shown comprises the following steps:
[0098] Step 701, traverse the first topic list to determine whether there is a topic category of the first topic in the second topic list.
[0099] In this embodiment, after obtaining the user confirmation instruction as a confirmation sending instruction, the to-be-sent group message is sent to the target group. Thus, the correct sending of the to-be-sent group message is completed. After that, the chat record of the target group has been changed because the content of the to-be-sent group message has been added. In order to continuously prevent the new to-be-sent group message from being sent by mistake based on the historical chat record of the target group, it is necessary to update the historical chat record of the target group. The topic categories (first topic list) contained in the content of the to-be-sent group message that has been sent to the target group are traversed to determine whether the topic category of the first topic in the first topic list exists in the topic list (second topic list) of the historical chat record of the target group.
[0100] Step 702: If the topic category of the first topic exists in the second topic list, the second topic list is updated based on the first topic frequency and the second topic proportion determined based on the confidence of the first topic.
[0101] In this embodiment, the first topic frequency refers to the number of times the content of the pending group message that has been sent to the target group appears in the target group. The second topic proportion refers to the proportion of the content of the pending group message that has been sent to the target group to all chat records of the target group. If a topic category of the first topic list already exists in the second topic list, the topic frequency and topic proportion of the topic category need to be updated. Based on the first topic frequency and the second topic proportion determined by the confidence of the first topic list, the topic frequency and topic proportion of the second topic list are replaced to complete the update of the second topic list.
[0102] In one implementation of this embodiment, when the topic category of the first topic exists in the second topic list, it is determined whether the topic category of the first topic is greater than or equal to a preset threshold value to confirm the credibility of the topic category. If the topic category of the first topic is greater than or equal to the preset threshold value, the topic category is valid data and can be used to update the frequency of topic occurrence and the topic proportion. Then, based on the topic frequency f of the second topic list and the number of historical chat records n, f*n / (n+1) is used as the first topic frequency of the second topic list. Based on the topic proportion t1 of the second topic list, the total number of characters c1 of the historical chat records, the topic proportion t2 of the first topic, and the number of topic characters c2 of the first topic, (t1*c1+t2*c2) / (c1+c2) is used as the second topic proportion.
[0103] Step 703: If the topic category of the first topic does not exist in the second topic list, add the first topic to the second topic list.
[0104] In this embodiment, if the topic category of the first topic does not exist in the second topic list, it means that the topic category of the first topic is a topic category that does not exist in the historical chat records of the target group, that is, the latest topic category. Then the content of the first topic needs to be added to the second topic list to complete the update of the second topic list.
[0105] In this embodiment, after the group message to be sent is sent to the target group, it is determined whether the topic category of the group message to be sent has appeared in the historical chat record of the target group. If it has appeared, its frequency of appearance and topic proportion are updated. Otherwise, the new topic category is added to the historical chat record, and the historical chat record is expanded and updated. This is conducive to timely updating of the target group data and provides accurate matching support for the judgment of the mis-sending of the group message to be sent during the subsequent chat session.
[0106] Figure 8 FIG. 1 is a flow chart of a message sending control method according to an embodiment of the present disclosure. Figure 8 As shown, the system (instant messaging software client or server) monitors the send button, and when the message to be sent is a group message,
[0107] Step 1: Intelligently detect message content, parse topic list, and convert multimedia messages into structured data.
[0108] The system converts the received multimedia messages into structured data required for subsequent analysis, including but not limited to: sender ID, target group ID, sending time, content character count (ContentSize) and topic information list (TopicInfoList). Each item of topic information (TopicInfo) in the topic information list includes topic (Topic), confidence (CI), topic weight (TopicPercentage), etc. Topics represent the classification of topics, such as travel, shopping, education, and photography. Confidence indicates the accuracy of predicting the correctness of the topic type. The message weight indicates the percentage of the number of characters in the content of this topic type to the number of characters in the content of this group message.
[0109] Step 2: According to a certain topic matching algorithm, determine whether a reminder is needed to prevent mistaken sending. If no reminder is needed, send the message to the target group. If a reminder is needed to prevent mistaken sending, ask the user to confirm whether to continue sending. If continued sending, send it to the target group. If no further sending is needed, give up sending the message. If the message is sent to the target group, update the historical topic list of the target group according to a certain algorithm.
[0110] The topic information in the topic information list of the current message is compared with the historical topic information list of the target group one by one. If certain conditions are met, the next step needs to be determined by the user to enter step 3. The comparison algorithm can be to determine whether the topic exists in the historical topic information list through the confidence and proportion of the topic information, and to comprehensively compare the frequency of topic appearance and the proportion of the topic in the existing historical topic information.
[0111] Otherwise, it is considered that the possibility of the message being sent by mistake is extremely low, and it can be sent directly to step 2.1. This step identifies the relationship between the topic and the target group from the source, which not only prevents the inappropriate topic message from being sent to the group by mistake due to human negligence, but also does not affect the unconscious sending of normal messages, greatly improving the accuracy of identifying whether the message is unsuccessful, and also greatly improving the experience and efficiency of using the system.
[0112] Step 2.1, send directly to the target group. Next, go to step 2.2.
[0113] Step 2.2, obtain the total number of characters (HistoricalContentSize) of historical messages of the target group, the total number of historical messages (HistoricalMessageNum) and the historical topic information list (HistoricalTopicInfoList), and update the historical topic information list of the target group according to the update algorithm in combination with the topic information list (TopicInfoList) of this message. The historical topic information list is a list composed of historical topic information (HistoricalTopicInfo). Each item of historical topic information includes, but is not limited to, topic (Topic), topic frequency (TopicFrequency) and topic proportion (TopicPercentage). Topic represents the classification of topics, such as travel, shopping, education and photography. Topic frequency represents the percentage of the number of times the topic appears in all group messages. Topic proportion represents the percentage of the number of characters in the content of all group messages.
[0114] The update algorithm may be to compare each topic in the topic information list with each topic in the history topic list in turn, and update if they match, and add if they do not match.
[0115] The to-be-sent group message of the embodiment of the present disclosure includes one or more multimedia messages such as text, pictures, audio, video, emoticons, etc. Usually, the to-be-sent group message is a text message. Optionally, pictures, audio, video, emoticons, etc. can all be used as the to-be-sent group message. Based on the semantic understanding of multimedia data by the big model technology, the semantic content of the to-be-sent group message can be parsed from one or more of the pictures, audio, video, and emoticons of the to-be-sent group message. Therefore, the similarity of the topic is matched with the target group based on the semantic content.
[0116] The disclosed embodiment proposes a message sending control method, which responds to a message sending instruction for a target group, obtains a to-be-sent group message, and provides message data to prevent the message from being sent by mistake; determines the target topic according to the content of the to-be-sent group message, and obtains the topic type of the target topic; based on the matching degree between the target topic and the historical topic of the target group, sends the to-be-sent group message to the target group, and automatically completes the matching degree verification between the target topic and the target group. The user efficiency and user experience of preventing the message from being sent by mistake are improved, and the occurrence of the message being sent by mistake is fundamentally avoided.
[0117] Corresponding to the methods provided in the above-mentioned embodiments, the present disclosure also provides a message sending control device. Since the device provided in the embodiments of the present disclosure corresponds to the methods provided in the above-mentioned embodiments, the implementation method of the method is also applicable to the device provided in this embodiment and will not be described in detail in this embodiment.
[0118] Fig. 9 FIG. 9 is a schematic diagram of a message sending control device 900 according to an embodiment of the present disclosure. Fig. 9 As shown, the message sending control device includes:
[0119] An acquisition module 910 is used to acquire a to-be-sent group message in response to a message sending instruction for a target group;
[0120] A determination module 920, configured to determine a target topic according to the content of the to-be-sent group message;
[0121] The confirmation module 930 is used to send a to-be-sent group message to the target group based on the matching degree between the target topic and the historical topics of the target group.
[0122] In some embodiments, the confirmation module 930 is used to:
[0123] Get historical topics of the target group;
[0124] Determine the topic matching degree between the target topic and the historical topic through a topic matching algorithm;
[0125] Based on the topic matching degree, determine whether the group message to be sent is a false trigger message;
[0126] If the to-be-sent group message is a false trigger message, the to-be-sent group message is sent to the target group according to the user confirmation instruction.
[0127] In some embodiments, the confirmation module 930 sends the to-be-sent group message to the target group according to the user confirmation instruction in the following manner:
[0128] Get user confirmation instructions;
[0129] If the user confirms that the instruction is to confirm sending, the group message to be sent is sent to the target group;
[0130] If the user confirms that the instruction is to abandon sending, sending the pending group message to the target group is abandoned.
[0131] In some embodiments, the determination module 920 is configured to:
[0132] Converting the content of the to-be-sent group message into structured message data, wherein the structured message data includes a topic list of the to-be-sent group message, wherein the topic list includes at least one topic, and the topic list includes a topic category and a confidence level;
[0133] The target topic is determined according to the topic category and confidence of the structured message.
[0134] In some embodiments, the confirmation module 930 determines the topic matching degree between the target topic and the historical topic through a topic matching algorithm in the following manner:
[0135] Determine whether the confidence and topic proportion of the first topic in the first topic list are greater than or equal to corresponding thresholds, the first topic list is a topic list of the to-be-sent group message, and the topic proportion is the percentage of the number of characters in the first topic used to indicate the topic category to the total number of characters in the to-be-sent group message content;
[0136] If the confidence of the first topic list is greater than or equal to the first confidence threshold, and the topic weight of the first topic list is greater than or equal to the first topic weight threshold, the topic matching degree is determined according to the topic list of historical topics and the topic category of the first topic list.
[0137] In some embodiments, the confirmation module 930 determines the topic matching degree according to the topic list of historical topics and the topic category of the first topic list in the following manner:
[0138] The second topic list is traversed, and the second topic list is a topic list of historical topics; if the second topic list and the first topic list meet the preset conditions, it is determined that the topic match is successful, and the preset conditions are: the topic category of the first topic exists in the topic category of the second topic list, and the topic frequency of the second topic list is greater than or equal to the preset topic frequency threshold, and the topic proportion of the second topic list is greater than or equal to the second topic proportion threshold, and the topic frequency is the number of times the first topic appears in the second topic list.
[0139] In some embodiments, after sending the to-be-sent group message to the target group, the confirmation module 930 is further configured to:
[0140] Traverse the first topic list to determine whether the topic category of the first topic exists in the second topic list;
[0141] If the topic category of the first topic exists in the second topic list, updating the second topic list based on the first topic frequency and the second topic weight determined based on the confidence level of the first topic;
[0142] If the topic category of the first topic does not exist in the second topic list, the first topic is added to the second topic list.
[0143] In summary, through the message sending control device, in response to the message sending instruction for the target group, the to-be-sent group message is obtained; according to the content of the to-be-sent group message, the target topic is determined; the matching degree between the target topic and the historical topic of the target group is determined, and the to-be-sent group message is sent to the target group. This device solves the problem of reduced user efficiency and user experience in preventing the mis-sending of messages in the related art, and improves the user efficiency and user experience in preventing the mis-sending of messages.
[0144] In the above embodiments provided by the present disclosure, the methods and devices provided by the embodiments of the present disclosure are introduced. In order to implement the functions in the methods provided by the above embodiments of the present disclosure, the electronic device may include a hardware structure and a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. One of the above functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.
[0145] Fig.10 is a block diagram of an electronic device 1000 for implementing the above-mentioned message sending control method according to an exemplary embodiment.
[0146] For example, the electronic device 1000 may be a mobile phone, a computer, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0147] Reference Fig.10 , the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .
[0148] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0149] The memory 1004 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0150] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1000.
[0151] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0152] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0153] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0154] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display and keypad of the electronic device 1000, and the sensor assembly 1014 can also detect the position change of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of user contact with the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0155] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (NewRadio) or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0156] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the electronic device 1000 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0158] The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the message sending control method described in the above embodiments of the present disclosure.
[0159] An embodiment of the present disclosure further provides a computer program product, including a computer program, which executes the message sending control method described in the above embodiment of the present disclosure when a processor executes the computer program.
[0160] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0161] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0162] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0163] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0164] It should be understood that the various parts of the embodiments of the present disclosure can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0165] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0166] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0167] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A message sending control method, It is characterized in that The method comprises: In response to a message sending instruction for a target group, obtaining a to-be-sent group message; Determining a target topic according to the content of the to-be-sent group message; The to-be-sent group message is sent to the target group based on a matching degree between the target topic and a historical topic of the target group.
2. The method according to claim 1, It is characterized in that The determining the matching degree between the target topic and the historical topics of the target group, and sending the to-be-sent group message to the target group, comprises: Obtaining historical topics of the target group; Determining the topic matching degree between the target topic and the historical topic through a topic matching algorithm; Based on the topic matching degree, determining whether the to-be-sent group message is a false trigger message; If the to-be-sent group message is the false trigger message, the to-be-sent group message is sent to the target group according to a user confirmation instruction.
3. The method according to claim 2, It is characterized in that The sending the to-be-sent group message to the target group according to the user confirmation instruction includes: If the user confirmation instruction is to confirm sending, sending the to-be-sent group message to the target group; If the user confirmation instruction is to give up sending, then giving up sending the to-be-sent group message to the target group.
4. The method according to claim 1, It is characterized in that The step of determining a target topic according to the content of the to-be-sent group message includes: Converting the content of the to-be-sent group message into structured message data, wherein the structured message data includes a topic list of the to-be-sent group message, wherein the topic list includes at least one topic, and the topic includes a topic category and a confidence level; The target topic is determined according to the topic category and confidence of the structured message.
5. The method according to claim 3, It is characterized in that Determining the topic matching degree between the target topic and the historical topic by using a topic matching algorithm includes: Determine whether the confidence and topic proportion of the first topic in the first topic list are greater than or equal to corresponding thresholds, the first topic list is a topic list of the to-be-sent group message, and the topic proportion is the percentage of the number of characters in the first topic used to represent the topic category to the total number of characters in the to-be-sent group message content; If the confidence of the first topic is greater than or equal to a first confidence threshold, and the topic weight of the first topic is greater than or equal to a first topic weight threshold, the topic matching degree is determined according to the topic list of the historical topics and the topic category of the first topic.
6. The method according to claim 5, It is characterized in that The determining the topic matching degree according to the topic list of the historical topics and the topic category of the first topic includes: A second topic list is traversed, where the second topic list is a topic list of the historical topics. If the second topic list and the first topic list meet preset conditions, it is determined that the topic match is successful. The preset conditions are: the topic category of the first topic exists in the topic category of the second topic list, and the topic frequency of the second topic list is greater than or equal to the preset topic frequency threshold, and the topic weight of the second topic list is greater than or equal to the second topic weight threshold, and the topic frequency is the number of times the first topic appears in the second topic list.
7. The method according to claim 6, It is characterized in that After sending the to-be-sent group message to the target group, the method further includes: Traversing the first topic list to determine whether a topic category of the first topic exists in the second topic list; If the topic category of the first topic exists in the second topic list, updating the second topic list based on the first topic frequency and the second topic weight determined based on the confidence of the first topic; If the topic category of the first topic does not exist in the second topic list, the first topic is added to the second topic list.
8. The method according to any one of claims 1 to 7, It is characterized in that The to-be-sent group message includes one or more multimedia messages such as text, picture, audio, video, emoticon, etc.
9. A message sending control device, It is characterized in that The device comprises: An acquisition module, configured to acquire a to-be-sent group message in response to a message sending instruction for a target group; A determination module, used to determine a target topic according to the content of the to-be-sent group message; A confirmation module is used to send the to-be-sent group message to the target group based on the matching degree between the target topic and the historical topics of the target group.
10. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
12. A computer program product, It is characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Multimedia processing method and device and server
CN104244112A
Message sending control method, terminal and computer readable storage medium
CN108039995A
Method and device for preventing wrong message sending, server and client
CN110391973A
Method and device for classifying group messages into group topics
CN110413770A
Session message processing method and device
CN110717011A
