Information identification method and device and electronic equipment
Through abnormal identification and risk assessment of game account speech data, the problem of minors being induced to third-party platforms in games is solved, providing a safe gaming environment and improving user experience.
Patent Information
- Application Number
- CN202410619524.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
AI Technical Summary
There are criminal elements in popular games that induce minors to commit illegal acts on third-party platforms, leading to damage to the game's reputation and loss of users. In addition, overseas markets have strict protection of privacy and personal information, making it difficult for game companies to obtain evidence.
By obtaining the speech data of game accounts, we can identify abnormal content, use preset models to conduct risk assessment and abnormal identification, and save relevant information to provide a safe gaming environment.
It improves the user's gaming experience, enhances the safety of minors in the game, and ensures that gaming companies can identify and deal with abnormal behavior.
Smart Images

Figure CN118557973A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an information identification method, device and electronic equipment. Background Art
[0002] In some popular games, some criminals have lured minors to third-party platforms to commit illegal acts, which has had a negative impact on the games, seriously damaged their reputation, and led to user loss. However, overseas markets have strict requirements for privacy and personal information protection. Overseas game companies cannot obtain user identity information, nor do they have the right to arbitrarily review user speech records; secondly, criminals often lure minors to third-party platforms, making it difficult to retain evidence of illegal activities, making it impossible for game companies to obtain sufficient clues. Summary of the invention
[0003] The purpose of the present invention is to provide an information identification method, device and electronic device to utilize the user's behavior data and speech content to perform risk assessment and anomaly identification, thereby providing the user with a safe gaming environment to improve the user's gaming experience.
[0004] In a first aspect, the present invention provides an information identification method, the method comprising: obtaining first speech data corresponding to a first game account in a target game, and performing abnormal content identification processing on the first speech data to obtain an identification result; if the identification result indicates that the first speech data contains abnormal content, saving the first speech data to a preset database, and obtaining the account information of the first game account, associating the account information of the first game account with the first speech data and saving them in the preset database; inputting the account information of the first game account in the preset database into a pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account; if the probability corresponding to the first output result is greater than a preset probability threshold, inputting the first speech data in the preset database into a pre-trained second model to obtain a second output result; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
[0005] In a second aspect, the present invention provides an information identification device, which includes: a data acquisition module, which is used to obtain first speech data corresponding to a first game account in a target game, and perform abnormal content identification processing on the first speech data to obtain an identification result; an information storage module, which is used to save the first speech data to a preset database if the identification result indicates that the first speech data contains abnormal content, and obtain the account information of the first game account, and associate the account information of the first game account with the first speech data and save it in the preset database; a first identification module, which is used to input the account information of the first game account in the preset database into a pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account; a second identification module, which is used to input the first speech data in the preset database into a pre-trained second model to obtain a second output result if the probability corresponding to the first output result is greater than a preset probability threshold; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
[0006] In a third aspect, the present invention provides an electronic device, which includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned information identification method.
[0007] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned information identification method.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The present invention provides an information identification method, device and electronic device. First, the first speech data corresponding to the first game account in the target game is obtained, and the first speech data is processed for abnormal content identification to obtain an identification result; if the identification result indicates that the first speech data contains abnormal content, the first speech data is saved to a preset database, and the account information of the first game account is obtained, and the account information of the first game account is associated with the first speech data and saved to the preset database; then the account information of the first game account in the preset database is input into a pre-trained first model to obtain a first output result, and the first output result is used to indicate the probability that the first game account is an abnormal account; if the probability corresponding to the first output result is greater than a preset probability threshold, the first speech data in the preset database is input into a pre-trained second model to obtain a second output result, and the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information. This method uses the account information and speech data of the game account to perform risk assessment and abnormality identification on the game account, which can provide a safe gaming environment for users and help improve the user's gaming experience.
[0010] Other features and advantages of the present invention will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present invention.
[0011] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 A flowchart of an information identification method provided by an embodiment of the present invention;
[0014] Figure 2 A flowchart of information identification provided by an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of the structure of an information identification device provided by an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0018] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] In some popular games, some criminals have lured minors to third-party platforms to commit illegal acts, which has had a negative impact on the games, seriously damaged their reputation, and led to user loss. However, overseas markets have strict requirements for privacy and personal information protection. Overseas game companies cannot obtain user identity information, nor do they have the right to arbitrarily review user speech records; moreover, criminals often lure minors to third-party platforms, making it difficult to retain evidence of illegal acts, making it impossible for game companies to obtain sufficient clues.
[0020] Based on the above problems, the embodiments of the present invention provide an information identification method, device and electronic device. The technology can be applied to any game information identification scenario, especially to the information identification scenario of illegal game accounts.
[0021] In order to facilitate understanding of the embodiment of the present invention, firstly, an information identification method disclosed in the embodiment of the present invention is described in detail. Figure 1 As shown, the method comprises the following specific steps:
[0022] Step S102, obtaining first speech data corresponding to a first game account in a target game, and performing abnormal content recognition processing on the first speech data to obtain a recognition result.
[0023] In specific implementation, the above-mentioned target game can be any game, and the above-mentioned first game account can also be any game account registered in the target game. The first speech data corresponding to the first game account includes all speech data sent by the user in the target game through the first game account, and the speech data includes game comments, conversations within the game or game messages, etc.
[0024] In actual applications, when a user sends speech data in a target game through a first game account, the speech data will be immediately acquired, and abnormal content recognition processing will be performed on the speech data to obtain a recognition result corresponding to the speech data, and the recognition result is used to indicate that the speech data contains abnormal content or that the speech data does not contain abnormal content. Specifically, when performing abnormal content recognition on the speech data, the speech data can be compared with keywords in a preset keyword library. When the speech data hits the keywords in the keyword library, the recognition result indicates that the speech data contains abnormal content; the speech data can also be matched with a preset regular expression. If the two match, the recognition result indicates that the speech data contains abnormal content.
[0025] Step S104, if the recognition result indicates that the first speech data contains abnormal content, the first speech data is saved to a preset database, and the account information of the first game account is obtained, and the account information of the first game account is associated with the first speech data and saved to the preset database.
[0026] In specific implementation, if the recognition result indicates that the first speech data does not contain abnormal content, no processing will be performed on the first speech data. If the recognition result indicates that the first speech data contains abnormal content, the first speech data will not be saved in the preset database for further manual review and model analysis processing. While saving the first speech data in the preset database, it is also necessary to determine whether the preset database contains the account information of the first game account corresponding to the first speech data. If the account information of the first game account is contained, it means that the preset database already contains the speech data corresponding to the first game account, so the first speech data is directly associated with the account information of the first game account and saved in the preset database; if the preset database does not contain the account information of the first game account, it is necessary to obtain the account information of the first game account from the target game, and associate the account information of the first game account with the first speech data and save them in the preset database.
[0027] Specifically, the preset database can be a MySQL database, a relational database or a DB database, etc., which can be determined according to research and development needs. The account information of the first game account includes at least one of the following information: the number of speeches of the first game account in the friend channel, the number of speeches in the stranger private message channel, the number of speeches in the team channel, the number of speeches in the room channel, the number of speeches in other channels, the number of games, the number of blocked words hit, the number of people added to the blacklist, the number of people added to the blacklist, the number of friends applied for, the number of friends deleted, the number of friends deleted, the number of people removed from the blacklist, the number of friend applications accepted, the number of penalties, the account creation time, and the number of IPs used by the account.
[0028] Step S106, inputting the account information of the first game account in the preset database into the pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account.
[0029] When the account information of the first game account is stored in the preset database, the account information of the first game account needs to be input into the pre-trained first model, and the first model can capture the behavioral characteristics of the user who uses the first game account based on the account information of the first game account, so that the first model can predict the probability that the first game account is an abnormal account. The training process of the first model will be described in the subsequent embodiments.
[0030] Step S108, if the probability corresponding to the first output result is greater than the preset probability threshold, the first speech data in the preset database is input into the pre-trained second model to obtain a second output result; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
[0031] In specific implementation, the above-mentioned preset probability threshold can be determined according to research and development needs, for example, the preset probability threshold can be set to 80% or 90%, etc. When the probability corresponding to the first output result of the first model is not greater than the preset probability threshold, it means that the first game account is a normal game account, and no processing is performed on the first game account; when the probability corresponding to the first output result is greater than the preset probability threshold, it means that the first game account is an abnormal account, so it is necessary to input all speech data corresponding to the first game account in the preset database into the second model, and the second model can perform natural language recognition on the input speech data, thereby extracting text features from the input speech data, so as to determine whether the input speech data is abnormal speech through text features, and when the input speech data is abnormal speech, obtain one or more of abnormal information, contact information and user identity information from the input speech data.
[0032] The above user identity information can be used to indicate whether the user using the first game account is a minor, or whether the speech data involves minors. In actual applications, based on the second output result, abnormal content in the speech data can be determined, and the classified content can be blocked, thereby providing a safer language environment and game environment for minors and ensuring the safety of minors in the game.
[0033] An information identification method provided by an embodiment of the present invention utilizes the account information and speech data of a game account to perform risk assessment and anomaly identification on the game account, thereby providing a safe gaming environment for users and helping to enhance the user's gaming experience.
[0034] The following embodiments are used to describe the method for abnormal identification of speech data.
[0035] Specifically, the specific process of performing abnormal content identification processing on the first speech data to obtain an identification result includes at least one of the following:
[0036] First, match the first speech data with a preset regular expression library to obtain a first matching result, and determine the first matching result as the identification result corresponding to the first speech data; wherein, if the first speech data matches the regular expression in the regular expression library, the first matching result indicates that the first speech data contains abnormal content.
[0037] In specific implementation, the regular expressions in the regular expression library are preset according to R & D requirements, and each regular expression can have multiple variants of keywords that can be matched. For example, the regular expression " / 住.*? / " can match variants of keywords such as "住哪儿" and "住在哪里", so that the coverage of keyword matching using regular expressions is wider.
[0038] Second, match the first speech data with a preset keyword library to obtain a second matching result, and determine the second matching result as the identification result corresponding to the first speech data; wherein, if the first speech data hits the keyword in the keyword library, the second matching result indicates that the first speech data contains abnormal content.
[0039] The above keyword library contains a large number of keywords, and the keyword can be determined according to R & D requirements. For example, the keyword can be sex, 去哪儿, etc. In specific implementation, if the first speech data includes the keyword in the keyword library or contains a preset number of keywords, it is determined that the first speech data hits the keyword in the keyword library.
[0040] In a specific embodiment, in order to cover more scenarios and accelerate matching without affecting the user experience, the present invention can perform abnormal matching using the regular expression library and the keyword library simultaneously. As Figure 2 shown in the flowchart of information identification provided by the embodiment of the present invention, Figure 2The process of matching the regular keyword library in can include: when the user sends speech data in the target game, the speech data will pass through the regular matching module and the keyword retrieval module in the SDK (Software Development Kit) at the same time, wherein the regular matching module uses the regular expression library to match the speech data, and the keyword retrieval module uses the keyword library to match the speech data, wherein the regular matching module can increase the coverage of keywords, and the keyword retrieval module is responsible for quickly retrieving abnormal content, so that this method can quickly and efficiently intercept known risk signals (the risk signal is equivalent to speech data containing abnormal content); finally, the suspected abnormal speech data is saved in the preset database for further manual review and model analysis; wherein, the suspected abnormal speech data is speech data that matches the regular expression in the regular expression library or speech data that hits the keyword in the keyword library.
[0041] Specifically, the algorithm complexity of keyword retrieval is low (O(1)), and it can quickly match known abnormal content. It directly looks up the table without complex pattern matching, so the retrieval speed is extremely fast and can effectively cover those abnormal scenarios with clear intentions. For example, the keyword sex can match the specified abnormal scenario. It is not enough to rely solely on the keyword library because it is difficult to cover all variants and obscure abnormal terms. To this end, the present invention introduces a regular expression library to make up for the shortcomings of the keyword library.
[0042] In an optional embodiment, the method provided by the present invention is used on the server side, but in order to prevent the user from perceiving the search match, the regular matching module of the SDK can be deployed on the game client, and the keyword module can be deployed on the server side for retrieval. Therefore, by deploying the regular matching module on the game client corresponding to the target game, the first speech data is matched with the preset regular expression library to obtain the first matching result, and the first matching result is sent to the server side. In addition, the regular matching module can intercept the message that the user clicks to send in the target game but is not sent out, so as to obtain more speech data.
[0043] The above method can quickly and accurately identify whether the speech data contains abnormal content, so as to further judge the game account corresponding to the speech data containing abnormal content to determine whether the game account is an abnormal account.
[0044] The following embodiments are used to describe the training method of the first model.
[0045] Specifically, the first model is trained through the following steps 10-14:
[0046] Step 10, obtaining a first training set, wherein the first training set includes a plurality of first training samples, wherein the first training samples include: first preset account information and a first label corresponding to the first preset account information, wherein the first label is used to indicate that the first preset account information is abnormal information.
[0047] In a specific implementation, the first training sample in the above-mentioned first training set comes from user data that has been reported and verified to be true, that is, the user data is the account information corresponding to the game account that has been reported and verified to have abnormal behavior. The user data is equivalent to the above-mentioned first preset account information. Since the user data is the account information of the game account with abnormal behavior, the first label corresponding to the first preset account information is used to indicate that the first preset account information is abnormal information.
[0048] Step 11: train the initial model based on the first training set to obtain an intermediate model.
[0049] In a specific implementation, first, a target first training sample can be selected from the first training set, and the first preset account information in the target first training sample can be input into the initial model to obtain a model output result. Then, the model parameters of the initial model can be adjusted by the model output result and the first label in the target first training sample to obtain an initial model after parameter adjustment. The step of selecting the target first training sample from the first training set is continued until the initial model after parameter adjustment converges, and the converged initial model is determined as the intermediate model. Each first training sample in the first training set can participate in model training as a target first training sample.
[0050] Step 12: Obtain a second training set, wherein the second training set includes a plurality of second training samples, and the second training samples include second preset account information.
[0051] The second training sample included in the second training set is the second preset account information without a label, and the second preset account information can be the account information of any game account obtained from the target game. That is, the second preset account information is the account information that has not been verified to be the abnormal account, so it is impossible to automatically set a label for the second preset account information.
[0052] Step 13, input the second training sample in the second training set into the intermediate model to obtain the model output result, and set a second label for the second training sample based on the model output result, and the second label is used to indicate the probability that the second preset account information in the second training sample is abnormal information.
[0053] In the specific implementation, since the amount of user data that has been reported and verified is small, in order to build a high-quality model that can well capture the essential laws of user behavior characteristics and have good generalization capabilities for unseen data, we can use pseudo-labeling technology to make full use of the acquired behavior feature data to set labels for the second training set.
[0054] In practical applications, the second training sample in the second training set can be input into the intermediate model to obtain the model output result, and then the model output result can be used as the second label of the second training sample, or the product of the model output result and the preset weight can be used as the second label of the second training sample.
[0055] Step 14: Based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set, train the intermediate model to obtain the first model.
[0056] In a specific implementation, the intermediate model can be trained based on all the first training samples in the first training set, part or all of the second training samples in the second training set, and the second labels corresponding to the second training samples to obtain the first model.
[0057] In an optional embodiment, a second training sample whose second label is greater than a preset value can be selected from the second training set, and the selected second training sample and the second label corresponding to the selected second training sample are used as the third training sample; the intermediate model is trained based on the third training set and the first training set to obtain the first model. The above preset value can be determined according to research and development requirements, for example, the preset value can be 80% or 90%, etc.
[0058] In another optional embodiment, the second training samples may be sorted in descending order of probability corresponding to the second labels, and a specified number of second training samples with the highest sorting and the second labels corresponding to the second training samples are used as third training samples.
[0059] In a specific embodiment, the initial model may be a machine learning model or a neural network model, for example, the initial model may be an XGBoost model, wherein the XGBoost model has a parallelization feature and can generate an excellent model quickly and efficiently.
[0060] In another optional embodiment, since a single initial model may overfit the training data, the adaptability to new and unseen data is reduced. Therefore, the initial model in the present invention may include multiple sub-models; thereby, each sub-model is trained based on the first training set to obtain multiple intermediate sub-models; then, the second training sample in the second training set is input into each intermediate sub-model to obtain the output result of each intermediate sub-model, and the second label of the second training sample is determined based on the output result of each intermediate sub-model; then, based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set, each intermediate sub-model is trained to obtain multiple intermediate sub-models after training, and the multiple intermediate sub-models after training are determined as the first model. Among them, the training method of each sub-model in the initial model is the same, and different sub-models are trained separately.
[0061] In a specific implementation, the specific process of determining the second label of the second training sample based on the output result of each intermediate sub-model may include the following:
[0062] The first method is to determine the mean of the output results of each intermediate sub-model as the second label of the second training sample. For example, if there are three intermediate sub-models, the second label of the second training sample is: the sum of the output results of the three intermediate sub-models divided by 3.
[0063] The second method is to determine the second label of the second training sample based on the output result of each intermediate sub-model and the output weight corresponding to each intermediate sub-model; wherein the output weight corresponding to the intermediate sub-model is determined based on the second preset account information in the second training sample.
[0064] In specific implementation, the information content corresponding to the second preset account information is different, and the output weight corresponding to each intermediate sub-model will also be different. Moreover, which information content in the second preset account information will affect the output weight corresponding to the intermediate sub-model is pre-set. For example, the number of intermediate sub-models is three. When the number of speeches in the friend channel in the second preset account information is large, the output weight corresponding to the first intermediate sub-model is higher, and the output weights corresponding to the other two intermediate sub-models are lower; when the number of deleted friends is large, the output weight corresponding to the second intermediate sub-model is higher, etc.
[0065] In a specific embodiment, Figure 2The initial model shown includes three boosting models: XGBoost, CatBoost and LightGBM. The first training set is then used to train the three sub-models to obtain the intermediate sub-models corresponding to the three sub-models. Then, the three intermediate sub-models are initially applied to a large number of unlabeled data samples (equivalent to the second training set mentioned above) to predict and pseudo-label them. Next, from these pseudo-labeled data (equivalent to the second training sample and the second label corresponding to the second training sample), a part with the highest model prediction probability value is selected, and they are regarded as additional labeled samples (equivalent to the third training set mentioned above) and added to the first training set, so that the three intermediate sub-models are trained based on the third training set and the first training set, respectively, to obtain three trained intermediate sub-models.
[0066] In addition, in order to further enhance the robustness of the model, a large amount of sample data expanded by pseudo-labeling technology can be trained in parallel on three different boosting tree models: XGBoost, CatBoost, and LightGBM, using a 5-fold cross validation (5-fold CV) method. Finally, the output probabilities of the three models on the 5-fold validation were stacked, that is, the output probabilities of the three models were used as new features, and these probability features were integrated to obtain the final prediction probability (equivalent to the second label mentioned above).
[0067] Based on the above description, the pre-trained first model includes multiple trained intermediate sub-models; the specific process of inputting the account information of the first game account in the preset database into the pre-trained first model to obtain the first output result may include: inputting the account information of the first game account in the preset database into the multiple trained intermediate sub-models respectively to obtain the output result corresponding to each trained intermediate sub-model; determining the mean of the output results corresponding to each trained intermediate sub-model as the first output result; or, determining the first output result based on the output results corresponding to each trained intermediate sub-model and the output weights corresponding to each trained intermediate sub-model; wherein the output weights corresponding to the trained intermediate sub-models are determined based on the information contained in the account information of the first game account.
[0068] Through the above self-training method, the scale and diversity of the training set were successfully expanded, making the data distribution seen by the model during training closer to the actual situation, thereby effectively improving the model's generalization and adaptability to unseen data.
[0069] The following embodiments are used to describe the training method of the second model.
[0070] Specifically, the above-mentioned second model is trained in the following manner: obtaining a fourth training set, the fourth training set containing multiple fourth training samples, the fourth training samples including preset speech data and fourth labels corresponding to the preset speech data; wherein the fourth label is used to indicate: whether the preset speech data is abnormal speech, and if the preset speech is abnormal speech, it contains at least one of the following information: abnormal information corresponding to the preset speech data, contact information and user identity information; based on the fourth training set and the preset dynamic learning rate scheduling strategy, the second model is trained to obtain the trained second model.
[0071] In specific implementation, the preset speech data in the fourth training sample in the fourth training set is the speech data in the game corresponding to the user data reported and verified as abnormal. The number of training samples included in the fourth training set can be determined according to the research and development needs. For example, the number of training samples can be 1000 or 800. After obtaining the preset speech data in the fourth training sample, it is necessary to manually annotate the preset speech data to obtain the fourth label corresponding to the preset speech data, wherein the fourth label is used to indicate whether the preset speech data is abnormal speech, and if the preset speech is abnormal speech, it contains at least one of the following information: abnormal information, contact information and user identity information corresponding to the preset speech data.
[0072] In a specific embodiment, during manual annotation, four types of annotations can be performed on the preset speech data, namely, related to the specified user identity, related to abnormal scenarios, including contact information, and normal content (equivalent to the above speech is not abnormal). Since the meaning of certain words or phrases in the preset speech data often needs to be combined with the context to be accurately understood, the annotation work is also closely integrated with the contextual information. For example, for the Japanese phrase "やる?" (Do it? Or play?), depending on the context before and after, the fourth label set for the annotation result will also be different.
[0073] In the specific implementation, in order to improve the convergence speed and fitting ability of the model during the training process, the second model can be optimized and adjusted based on LORA. First, the learning rate parameters of each layer of the network of the second model can be set separately based on LORA technology, instead of uniformly using the global learning rate. In this way, different layers can adopt different learning rates according to their own characteristics, making the network parameter update more refined and targeted. Secondly, the present invention introduces a dynamic learning rate scheduling strategy to monitor the changes in the loss function during the training process in real time and automatically adjust the learning rate of each layer. When the loss function tends to be flat, the learning rate is appropriately increased to accelerate convergence; when the loss function fluctuates violently, the learning rate is reduced to avoid oscillation and divergence. This dynamic adjustment mechanism helps to capture the optimal convergence point and greatly improves the convergence efficiency of the second model within a limited number of training steps.
[0074] In the specific implementation, the above-mentioned second model can adopt a large language model (also known as an LLM model), and can also adopt other neural network models, which can be determined according to the research and development needs. Among them, the present invention can adopt the llama2 large model in the LLM model, which is a general large model that can recognize 150 languages such as Japanese, Chinese, and English. During the training process, 3 data need to be input: Prompt is a prompt word, and the content is "You are an effective language assistant, able to identify abnormal speech, please judge the following data, the label is normal, user identity information, contact information, abnormal information, user identity information + abnormal information, user identity information + contact information, user identity information + abnormal information + contact information, abnormal information + contact information", and text is "Hello, I am xxx, do you want to make friends with me? I am a 16-year-old student, where are you from, hey, do you want to play together?", output is "user identity information + contact information"; wherein, the user identity information here can be a user identity whose age is less than the preset age threshold, and the preset age threshold can be determined according to the research and development needs.
[0075] In an optional embodiment, the preset speech data included in the fourth training sample is obtained by segmenting the original speech data through a sliding window, and when the original speech data is segmented, there is an overlapping part between the first segment of speech data and the second segment of speech data after segmentation.
[0076] In the specific implementation, the present invention performs reasonable segmentation processing on the labeled training samples. Experiments show that if the text segment (equivalent to the preset speech data) is too long or too short, it will affect the correct recognition and understanding of the text content by the large language model (equivalent to the above-mentioned second model). To this end, the present invention adopts a sliding window method to segment the preset speech data. The length of the sliding window has been appropriately adjusted. On the one hand, it maintains a sufficient text length, and on the other hand, it expands the contextual field of view as much as possible, so that the second model can better capture contextual information and improve the learning ability of the text content. Secondly, in order to avoid the understanding deviation caused by the loss of context, the overlap mechanism is introduced, that is, to maintain a certain degree of overlapping area between two adjacent sliding windows, so that the previous segment of speech data and the next segment of speech data after segmentation have overlapping parts, ensuring that key contextual information can exist in adjacent windows at the same time.
[0077] In an optional embodiment, in order to enable the second model to be smoothly deployed on the server, the second model can be compressed and combined. Specifically, the trained second model can be fine-tuned to obtain a fine-tuned second model; the fine-tuned second model can be compressed and combined to obtain a final second model, so that the final second model can be used to predict speech data.
[0078] In the specific implementation, the traditional LORA fine-tuning process only updates a small number of bias and attention parameters in the second model, while keeping most of the parameters in the pre-trained second model unchanged. Although this method can speed up training and save memory, it is still necessary to load the model parameters of the complete pre-trained second model in the inference stage, and the additional storage and computing overhead is large. Therefore, QLORA technology can be used to compress and combine the parameters after LORA fine-tuning to generate a dedicated "inference weight". The specific process is as follows:
[0079] 1. Based on the small amount of bias and attention parameters updated by LoRa, derive and calculate the equivalent full parameter matrix.
[0080] 2. Compress these full parameter matrices, such as reducing parameter dimensions and storage occupancy through matrix decomposition, quantization and other technologies.
[0081] 3. Combine the compressed parameters with the original parameters of the pre-trained second model to generate a new inference weight tensor.
[0082] The above method comprehensively utilizes the user's account information and speech data to conduct risk assessment and anomaly identification. Through intelligent modeling and big data analysis, it is possible to efficiently detect suspected abnormal users. In response to the specific needs of protecting minors, this method combines a small amount of annotated corpus and large language model technology to successfully train a high-precision multi-label language classification model, which greatly saves labor costs. The model can accurately identify inappropriate content in various languages and provide a safer language environment for minors.
[0083] Corresponding to the above method embodiment, the embodiment of the present invention also provides an information identification device, such as Figure 3 As shown, the device comprises:
[0084] The data acquisition module 30 is used to acquire the first speech data corresponding to the first game account in the target game, and perform abnormal content recognition processing on the first speech data to obtain a recognition result.
[0085] The information saving module 31 is used to save the first speech data to a preset database if the recognition result indicates that the first speech data contains abnormal content, obtain the account information of the first game account, and associate the account information of the first game account with the first speech data and save them in the preset database.
[0086] The first identification module 32 is used to input the account information of the first game account in the preset database into the pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account.
[0087] The second recognition module 33 is used to input the first speech data in the preset database into the pre-trained second model to obtain the second output result if the probability corresponding to the first output result is greater than the preset probability threshold, wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
[0088] The above-mentioned information identification device utilizes the account information and speech data of the game account to conduct risk assessment and anomaly identification on the game account, which can provide users with a safe gaming environment and help improve the user's gaming experience.
[0089] Specifically, the above-mentioned data acquisition module 30 is used to: match the first speech data with a preset regular expression library to obtain a first matching result, and determine the first matching result as the recognition result corresponding to the first speech data; wherein, if the first speech data matches the regular expression in the regular expression library, the first matching result indicates that the first speech data contains abnormal content; and / or, match the first speech data with a preset keyword library to obtain a second matching result, and determine the second matching result as the recognition result corresponding to the first speech data; wherein, if the first speech data hits the keyword in the keyword library, the second matching result indicates that the first speech data contains abnormal content.
[0090] In specific implementation, the above method is applied to the server; the above device data acquisition module 30 is also used to: match the first speech data with a preset regular expression library through a regular matching module deployed in a game client corresponding to the target game, obtain a first matching result, and send the first matching result to the server.
[0091] Furthermore, the above-mentioned device also includes a first model training module, which is used to: obtain a first training set, the first training set includes multiple first training samples, the first training sample includes: first preset account information and a first label corresponding to the first preset account information, the first label is used to indicate that the first preset account information is abnormal information; train the initial model based on the first training set to obtain an intermediate model; obtain a second training set, the second training set includes multiple second training samples, the second training sample includes second preset account information; input the second training sample in the second training set into the intermediate model to obtain a model output result, set a second label for the second training sample based on the model output result, and the second label is used to indicate the probability that the second preset account information in the second training sample is abnormal information; train the intermediate model based on the first training set, the second training set, and the second labels corresponding to the second training samples in the second training set to obtain the first model.
[0092] In a specific implementation, the above-mentioned first model training module is also used to: select a second training sample whose second label is greater than a preset value from the second training set, and use the selected second training sample and the second label corresponding to the selected second training sample as the third training sample; train the intermediate model based on the third training set and the first training set to obtain the first model.
[0093] In an optional embodiment, the initial model includes multiple sub-models; the first model training module is further used to: train each sub-model based on the first training set to obtain multiple intermediate sub-models; input the second training samples in the second training set into each intermediate sub-model to obtain the output result of each intermediate sub-model, and determine the second label of the second training sample based on the output result of each intermediate sub-model; train each intermediate sub-model based on the second label corresponding to the second training sample in the first training set, the second training set and the second training set to obtain multiple trained intermediate sub-models, and determine the multiple trained intermediate sub-models as the first model.
[0094] Furthermore, the above-mentioned determination of the second label of the second training sample based on the output result of each intermediate sub-model includes the following: determining the mean of the output result of each intermediate sub-model as the second label of the second training sample; determining the second label of the second training sample based on the output result of each intermediate sub-model and the output weight corresponding to each intermediate sub-model; wherein the output weight corresponding to the intermediate sub-model is determined based on the second preset account information in the second training sample.
[0095] In a specific implementation, the first model includes multiple trained intermediate sub-models; the first identification module 32 is used to: input the account information of the first game account in the preset database into the multiple trained intermediate sub-models respectively to obtain the output results corresponding to each trained intermediate sub-model; determine the mean of the output results corresponding to each trained intermediate sub-model as the first output result; or, determine the first output result based on the output results corresponding to each trained intermediate sub-model and the output weights corresponding to each trained intermediate sub-model; wherein the output weights corresponding to the trained intermediate sub-models are determined based on the information contained in the account information of the first game account.
[0096] Furthermore, the above-mentioned device also includes a second model training module, which is used to: obtain a fourth training set, the fourth training set includes multiple fourth training samples, the fourth training samples include preset speech data and a fourth label corresponding to the preset speech data; wherein the fourth label is used to indicate: whether the preset speech data is an abnormal speech, and if the preset speech is an abnormal speech, it contains at least one of the following information: abnormal information corresponding to the preset speech data, contact information and user identity information; based on the fourth training set and the preset dynamic learning rate scheduling strategy, train the second model to obtain the trained second model.
[0097] In an optional embodiment, the preset speech data included in the fourth training sample is obtained by segmenting the original speech data through a sliding window, and when the original speech data is segmented, there is an overlapping part between the first segment of speech data and the second segment of speech data after segmentation.
[0098] Furthermore, the above-mentioned device also includes a model compression module, which is used to: fine-tune the trained second model to obtain a fine-tuned second model; compress and combine the fine-tuned second model to obtain a final second model, so as to use the final second model to predict speech data.
[0099] The information identification device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0100] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, the electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned information recognition method.
[0101] Specifically, the above-mentioned information identification method includes: obtaining first speech data corresponding to a first game account in a target game, and performing abnormal content identification processing on the first speech data to obtain an identification result; if the identification result indicates that the first speech data contains abnormal content, saving the first speech data to a preset database, and obtaining the account information of the first game account, associating the account information of the first game account with the first speech data and saving them in the preset database; inputting the account information of the first game account in the preset database into a pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account; if the probability corresponding to the first output result is greater than a preset probability threshold, inputting the first speech data in the preset database into a pre-trained second model to obtain a second output result; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
[0102] The above-mentioned information identification method can utilize the account information and speech data of the game account to conduct risk assessment and anomaly identification of the game account, which can provide users with a safe gaming environment and help enhance the user's gaming experience.
[0103] In an optional embodiment, the above-mentioned step of performing abnormal content identification processing on the first speech data to obtain an identification result includes at least one of the following: matching the first speech data with a preset regular expression library to obtain a first matching result, and determining the first matching result as the identification result corresponding to the first speech data; wherein, if the first speech data matches the regular expression in the regular expression library, the first matching result indicates that the first speech data contains abnormal content; matching the first speech data with a preset keyword library to obtain a second matching result, and determining the second matching result as the identification result corresponding to the first speech data; wherein, if the first speech data hits the keyword in the keyword library, the second matching result indicates that the first speech data contains abnormal content.
[0104] In an optional embodiment, the above method is applied to the server; the above method also includes: matching the first speech data with a preset regular expression library through a regular matching module deployed in a game client corresponding to the target game, obtaining a first matching result, and sending the first matching result to the server.
[0105] In an optional embodiment, the first model is trained in the following manner: obtaining a first training set, the first training set containing multiple first training samples, the first training sample including: first preset account information and a first label corresponding to the first preset account information, the first label is used to indicate that the first preset account information is abnormal information; training an initial model based on the first training set to obtain an intermediate model; obtaining a second training set, the second training set containing multiple second training samples, the second training sample including second preset account information; inputting the second training sample in the second training set into the intermediate model to obtain a model output result, setting a second label for the second training sample based on the model output result, the second label is used to indicate the probability that the second preset account information in the second training sample is abnormal information; training the intermediate model based on the first training set, the second training set, and the second labels corresponding to the second training samples in the second training set to obtain the first model.
[0106] In an optional embodiment, the above-mentioned step of training the intermediate model based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set to obtain the first model includes: selecting a second training sample with a second label greater than a preset value from the second training set, and using the selected second training sample and the second label corresponding to the selected second training sample as the third training sample; training the intermediate model based on the third training set and the first training set to obtain the first model.
[0107] In an optional embodiment, the above-mentioned initial model includes multiple sub-models; the above-mentioned step of training the initial model based on the first training set to obtain the intermediate model includes: training each sub-model separately based on the first training set to obtain multiple intermediate sub-models; inputting the second training sample in the second training set into the intermediate model to obtain the model output result, and setting the second label for the second training sample based on the model output result includes: inputting the second training sample in the second training set into each intermediate sub-model separately to obtain the output result of each intermediate sub-model, and determining the second label of the second training sample based on the output result of each intermediate sub-model; based on the second label corresponding to the second training sample in the first training set, the second training set and the second training set, the step of training the intermediate model to obtain the first model includes: based on the second label corresponding to the second training sample in the first training set, the second training set and the second training set, training each intermediate sub-model separately to obtain multiple trained intermediate sub-models, and determining the multiple trained intermediate sub-models as the first model.
[0108] In an optional embodiment, the above-mentioned step of determining the second label of the second training sample based on the output result of each intermediate sub-model includes the following: determining the mean of the output result of each intermediate sub-model as the second label of the second training sample; determining the second label of the second training sample based on the output result of each intermediate sub-model and the output weight corresponding to each intermediate sub-model; wherein the output weight corresponding to the intermediate sub-model is determined based on the second preset account information in the second training sample.
[0109] In an optional embodiment, the above-mentioned first model includes multiple trained intermediate sub-models; the above-mentioned step of inputting the account information of the first game account in the preset database into the pre-trained first model to obtain the first output result includes: inputting the account information of the first game account in the preset database into the multiple trained intermediate sub-models respectively to obtain the output result corresponding to each trained intermediate sub-model; determining the mean of the output results corresponding to each trained intermediate sub-model as the first output result; or, determining the first output result based on the output results corresponding to each trained intermediate sub-model and the output weights corresponding to each trained intermediate sub-model; wherein the output weights corresponding to the trained intermediate sub-models are determined based on the information contained in the account information of the first game account.
[0110] In an optional embodiment, the second model is trained in the following manner: obtaining a fourth training set, the fourth training set comprising a plurality of fourth training samples, the fourth training samples comprising preset speech data and a fourth label corresponding to the preset speech data; wherein the fourth label is used to indicate whether the preset speech data is an abnormal speech, and if the preset speech is an abnormal speech, at least one of the following information is included: abnormal information, contact information and user identity information corresponding to the preset speech data; based on the fourth training set and a preset dynamic learning rate scheduling strategy, the second model is trained to obtain a trained second model.
[0111] In an optional embodiment, the preset speech data included in the fourth training sample is obtained by segmenting the original speech data through a sliding window, and when the original speech data is segmented, there is an overlapping part between the first segment of speech data and the second segment of speech data after segmentation.
[0112] In an optional embodiment, the above method also includes: fine-tuning the trained second model to obtain a fine-tuned second model; compressing and combining the fine-tuned second model to obtain a final second model, so as to use the final second model to predict speech data.
[0113] Further, Figure 4The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0114] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0115] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 101 or the instruction in the form of software. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.
[0116] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned information identification method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0117] Specifically, the above-mentioned information identification method includes: obtaining first speech data corresponding to a first game account in a target game, and performing abnormal content identification processing on the first speech data to obtain an identification result; if the identification result indicates that the first speech data contains abnormal content, saving the first speech data to a preset database, and obtaining the account information of the first game account, associating the account information of the first game account with the first speech data and saving them in the preset database; inputting the account information of the first game account in the preset database into a pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account; if the probability corresponding to the first output result is greater than a preset probability threshold, inputting the first speech data in the preset database into a pre-trained second model to obtain a second output result; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
[0118] The above-mentioned information identification method can utilize the account information and speech data of the game account to conduct risk assessment and anomaly identification of the game account, which can provide users with a safe gaming environment and help enhance the user's gaming experience.
[0119] In an optional embodiment, the above-mentioned step of performing abnormal content identification processing on the first speech data to obtain an identification result includes at least one of the following: matching the first speech data with a preset regular expression library to obtain a first matching result, and determining the first matching result as the identification result corresponding to the first speech data; wherein, if the first speech data matches the regular expression in the regular expression library, the first matching result indicates that the first speech data contains abnormal content; matching the first speech data with a preset keyword library to obtain a second matching result, and determining the second matching result as the identification result corresponding to the first speech data; wherein, if the first speech data hits the keyword in the keyword library, the second matching result indicates that the first speech data contains abnormal content.
[0120] In an optional embodiment, the above method is applied to the server; the above method also includes: matching the first speech data with a preset regular expression library through a regular matching module deployed in a game client corresponding to the target game, obtaining a first matching result, and sending the first matching result to the server.
[0121] In an optional embodiment, the first model is trained in the following manner: obtaining a first training set, the first training set containing multiple first training samples, the first training sample including: first preset account information and a first label corresponding to the first preset account information, the first label is used to indicate that the first preset account information is abnormal information; training an initial model based on the first training set to obtain an intermediate model; obtaining a second training set, the second training set containing multiple second training samples, the second training sample including second preset account information; inputting the second training sample in the second training set into the intermediate model to obtain a model output result, setting a second label for the second training sample based on the model output result, the second label is used to indicate the probability that the second preset account information in the second training sample is abnormal information; training the intermediate model based on the first training set, the second training set, and the second labels corresponding to the second training samples in the second training set to obtain the first model.
[0122] In an optional embodiment, the above-mentioned step of training the intermediate model based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set to obtain the first model includes: selecting a second training sample with a second label greater than a preset value from the second training set, and using the selected second training sample and the second label corresponding to the selected second training sample as the third training sample; training the intermediate model based on the third training set and the first training set to obtain the first model.
[0123] In an optional embodiment, the above-mentioned initial model includes multiple sub-models; the above-mentioned step of training the initial model based on the first training set to obtain the intermediate model includes: training each sub-model separately based on the first training set to obtain multiple intermediate sub-models; inputting the second training sample in the second training set into the intermediate model to obtain the model output result, and setting the second label for the second training sample based on the model output result includes: inputting the second training sample in the second training set into each intermediate sub-model separately to obtain the output result of each intermediate sub-model, and determining the second label of the second training sample based on the output result of each intermediate sub-model; based on the second label corresponding to the second training sample in the first training set, the second training set and the second training set, the step of training the intermediate model to obtain the first model includes: based on the second label corresponding to the second training sample in the first training set, the second training set and the second training set, training each intermediate sub-model separately to obtain multiple trained intermediate sub-models, and determining the multiple trained intermediate sub-models as the first model.
[0124] In an optional embodiment, the above-mentioned step of determining the second label of the second training sample based on the output result of each intermediate sub-model includes the following: determining the mean of the output result of each intermediate sub-model as the second label of the second training sample; determining the second label of the second training sample based on the output result of each intermediate sub-model and the output weight corresponding to each intermediate sub-model; wherein the output weight corresponding to the intermediate sub-model is determined based on the second preset account information in the second training sample.
[0125] In an optional embodiment, the above-mentioned first model includes multiple trained intermediate sub-models; the above-mentioned step of inputting the account information of the first game account in the preset database into the pre-trained first model to obtain the first output result includes: inputting the account information of the first game account in the preset database into the multiple trained intermediate sub-models respectively to obtain the output result corresponding to each trained intermediate sub-model; determining the mean of the output results corresponding to each trained intermediate sub-model as the first output result; or, determining the first output result based on the output results corresponding to each trained intermediate sub-model and the output weights corresponding to each trained intermediate sub-model; wherein the output weights corresponding to the trained intermediate sub-models are determined based on the information contained in the account information of the first game account.
[0126] In an optional embodiment, the second model is trained in the following manner: obtaining a fourth training set, the fourth training set comprising a plurality of fourth training samples, the fourth training samples comprising preset speech data and a fourth label corresponding to the preset speech data; wherein the fourth label is used to indicate whether the preset speech data is an abnormal speech, and if the preset speech is an abnormal speech, at least one of the following information is included: abnormal information, contact information and user identity information corresponding to the preset speech data; based on the fourth training set and a preset dynamic learning rate scheduling strategy, the second model is trained to obtain a trained second model.
[0127] In an optional embodiment, the preset speech data included in the fourth training sample is obtained by segmenting the original speech data through a sliding window, and when the original speech data is segmented, there is an overlapping part between the first segment of speech data and the second segment of speech data after segmentation.
[0128] In an optional embodiment, the above method also includes: fine-tuning the trained second model to obtain a fine-tuned second model; compressing and combining the fine-tuned second model to obtain a final second model, so as to use the final second model to predict speech data.
[0129] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0130] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0131] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An information identification method, characterized in that: The method comprises: Acquire first speech data corresponding to a first game account in a target game, and perform abnormal content recognition processing on the first speech data to obtain a recognition result; If the recognition result indicates that the first speech data contains abnormal content, the first speech data is saved in a preset database, and the account information of the first game account is obtained, and the account information of the first game account is associated with the first speech data and saved in the preset database; Inputting the account information of the first game account in the preset database into a pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account; If the probability corresponding to the first output result is greater than a preset probability threshold, the first speech data in the preset database is input into a pre-trained second model to obtain a second output result; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
2. The method according to claim 1, characterized in that The step of performing abnormal content recognition processing on the first speech data to obtain a recognition result includes at least one of the following: Matching the first speech data with a preset regular expression library to obtain a first matching result, and determining the first matching result as a recognition result corresponding to the first speech data; wherein, if the first speech data matches a regular expression in the regular expression library, the first matching result indicates that the first speech data contains abnormal content; The first speech data is matched with a preset keyword library to obtain a second matching result, and the second matching result is determined as the recognition result corresponding to the first speech data; wherein, if the first speech data hits a keyword in the keyword library, the second matching result indicates that the first speech data contains abnormal content.
3. The method according to claim 2, characterized in that: The method is applied to the server; the method also includes: By deploying a regular matching module on a game client corresponding to the target game, the first speech data is matched with a preset regular expression library to obtain a first matching result, and the first matching result is sent to the server.
4. The method according to claim 1, characterized in that: The first model is trained in the following way: Acquire a first training set, wherein the first training set includes a plurality of first training samples, wherein the first training samples include: first preset account information and a first label corresponding to the first preset account information, wherein the first label is used to indicate that the first preset account information is abnormal information; Training an initial model based on the first training set to obtain an intermediate model; Acquire a second training set, wherein the second training set includes a plurality of second training samples, and the second training samples include second preset account information; Inputting a second training sample in the second training set into the intermediate model to obtain a model output result, and setting a second label for the second training sample based on the model output result, wherein the second label is used to indicate a probability that the second preset account information in the second training sample is abnormal information; The intermediate model is trained based on the first training set, the second training set, and a second label corresponding to a second training sample in the second training set to obtain the first model.
5. The method according to claim 4, characterized in that The step of training the intermediate model based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set to obtain the first model includes: Selecting a second training sample whose second label is greater than a preset value from the second training set, and using the selected second training sample and the second label corresponding to the selected second training sample as a third training sample; The intermediate model is trained based on the third training set and the first training set to obtain the first model.
6. The method according to claim 5, characterized in that The initial model includes a plurality of sub-models; The step of training the initial model based on the first training set to obtain an intermediate model comprises: training each of the sub-models based on the first training set to obtain a plurality of intermediate sub-models; The step of inputting the second training sample in the second training set into the intermediate model to obtain a model output result, and setting a second label for the second training sample based on the model output result comprises: inputting the second training sample in the second training set into each of the intermediate sub-models respectively to obtain an output result of each of the intermediate sub-models, and determining the second label of the second training sample based on the output result of each of the intermediate sub-models; The step of training the intermediate model based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set to obtain the first model includes: training each of the intermediate sub-models based on the first training set, the second training set, and the second label corresponding to the second training sample in the second training set to obtain multiple intermediate sub-models after training, and determining the multiple intermediate sub-models after training as the first model.
7. The method according to claim 6, characterized in that The step of determining the second label of the second training sample based on the output result of each of the intermediate sub-models includes one of the following: Determine the mean of the output results of each of the intermediate sub-models as the second label of the second training sample; Based on the output results of each of the intermediate sub-models and the output weights corresponding to each of the intermediate sub-models, determine the second label of the second training sample; wherein the output weights corresponding to the intermediate sub-models are determined based on the second preset account information in the second training sample.
8. The method according to claim 1, characterized in that The first model includes a plurality of trained intermediate sub-models; The step of inputting the account information of the first game account in the preset database into the pre-trained first model to obtain a first output result includes: Inputting the account information of the first game account in the preset database into the multiple trained intermediate sub-models respectively to obtain the output result corresponding to each trained intermediate sub-model; Determine the first output result as the mean of the output results corresponding to each trained intermediate sub-model; or, determine the first output result based on the output results corresponding to each trained intermediate sub-model and the output weights corresponding to each trained intermediate sub-model; wherein the output weights corresponding to the trained intermediate sub-models are determined based on the information contained in the account information of the first game account.
9. The method according to claim 1, characterized in that: The second model is trained by the following method: Obtain a fourth training set, wherein the fourth training set includes a plurality of fourth training samples, wherein the fourth training samples include preset speech data and a fourth label corresponding to the preset speech data; wherein the fourth label is used to indicate whether the preset speech data is an abnormal speech, and if the preset speech is an abnormal speech, at least one of the following information is included: abnormal information, contact information, and user identity information corresponding to the preset speech data; Based on the fourth training set and a preset dynamic learning rate scheduling strategy, the second model is trained to obtain a trained second model.
10. The method according to claim 9, characterized in that The preset speech data included in the fourth training sample is obtained by segmenting the original speech data through a sliding window, and when the original speech data is segmented, there is an overlapping part between the first segment of speech data and the second segment of speech data after segmentation.
11. The method according to claim 9, characterized in that The method further comprises: Fine-tune the trained second model to obtain a fine-tuned second model; The fine-tuned second model is compressed and combined to obtain a final second model, so as to use the final second model to predict speech data.
12. An information recognition device, characterized in that: The device comprises: A data acquisition module, used to acquire first speech data corresponding to a first game account in a target game, and perform abnormal content recognition processing on the first speech data to obtain a recognition result; an information saving module, configured to save the first speech data to a preset database if the recognition result indicates that the first speech data contains abnormal content, obtain account information of the first game account, associate the account information of the first game account with the first speech data and save them to the preset database; a first identification module, configured to input the account information of the first game account in the preset database into a pre-trained first model to obtain a first output result; wherein the first output result is used to indicate the probability that the first game account is an abnormal account; The second recognition module is used to input the first speech data in the preset database into a pre-trained second model to obtain a second output result if the probability corresponding to the first output result is greater than a preset probability threshold; wherein the second output result includes at least one of the following information: normal speech, abnormal information corresponding to the first speech data, contact information and user identity information.
13. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the information identification method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the information identification method according to any one of claims 1 to 11.
Citation Information
Cited By
Method, device, and computer program for training artificial intelligence model for predicting blood flow data
WO2026106364A1
