Training method, cheating detection method, device and electronic equipment of large model

By constructing a labeled training set and iteratively training a large model, the problems of poor cheat detection performance and insufficient interpretability in existing technologies are solved, achieving high accuracy and robust cheat detection.

CN123179182APending Publication Date: 2026-11-27SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510687171.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies lack effective and robust solutions for cheat detection, and they also lack interpretability, making it difficult to clearly identify the specific reasons why a player is judged to be using cheats, which affects user trust and operational efficiency.

Method used

By acquiring labeled training samples, a first training set is constructed. The large model is then used for multiple rounds of iterative training to obtain preset prompt words, guide the model to judge game operation behavior sequences, output the judgment results and reasoning ideas, and construct a large anomaly detection model.

Benefits of technology

It achieves high accuracy in cheat detection, the judgment results are interpretable, it can detect various cheating techniques, and it has high robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179182A_ABST
    Figure CN123179182A_ABST
Patent Text Reader

Abstract

The method comprises: obtaining a training set comprising a plurality of training samples with labels, wherein the training sample comprises a game operation behavior sequence of a sample object in a game match, and the label is a discrimination result of whether the sample object has cheating behavior in the game match and an inference thought of obtaining the discrimination result; obtaining a preset first prompt word, the first prompt word is used to indicate that the training sample is analyzed to obtain the discrimination result and the inference thought, and the abnormal detection large model to be trained is trained through multiple rounds of iteration of the first training set and the prompt word to obtain the trained abnormal detection large model. The abnormal detection large model trained by the method has high accuracy in cheating detection and the discrimination result is interpretable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and more specifically, to a method for training large models, anomaly detection methods, apparatus, electronic devices, computer-readable storage media, and computer program products. Background Technology

[0002] In online games, cheat programs often disrupt game rules and normal order by tampering with client logic and simulating player actions, severely impacting the gaming experience of ordinary players and damaging the reputation and economic interests of game operators. Therefore, anti-cheat detection technology has become an important research direction in the field of game security.

[0003] However, existing technologies lack effective and robust solutions for detecting cheats, and existing methods generally lack interpretability, making it difficult to clearly point out the specific reasons why a player is judged to be using cheats, resulting in difficulties for user appeals and affecting player trust and operational efficiency. Summary of the Invention

[0004] This disclosure provides a method for training large models, a method for detecting cheating, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product to address the technical problems of existing technologies being unable to cope with constantly evolving cheating technologies, insufficient detection robustness, and a lack of interpretability in cheating detection.

[0005] According to one aspect of the present disclosure, a method for training a large model is provided, the method comprising: Obtain a first training set, which includes multiple labeled training samples. Each training sample includes a sequence of game operation behaviors of a sample object in a game. The label of each training sample includes a reference judgment result of whether the sample object corresponding to the training sample has cheating behavior in the game, and a reference reasoning idea for obtaining the reference judgment result. Obtain a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. Based on the first training set and the first prompt word, the large-scale anomaly detection model to be trained undergoes multiple rounds of iterative training; each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. The model parameters of the large model are adjusted according to the differences between the labels of each training sample and the corresponding model output.

[0006] According to another aspect of the present disclosure, a cheating detection method is provided, the method comprising: Obtain the sequence of game operation behaviors of the object to be detected in the target game; Obtain a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. The first prompt word, the game operation behavior sequence, and the discrimination strategy set are input into the anomaly detection model to obtain the model output of the anomaly detection model. The model output includes the discrimination result corresponding to the object to be detected and the reasoning logic of the discrimination result. The anomaly detection model is trained using any of the large model training methods provided in the embodiments of this disclosure.

[0007] According to another aspect of the present disclosure, a training apparatus for a large model is provided, the apparatus comprising: The training set acquisition module is used to acquire a first training set, which includes multiple training samples with labels. Each training sample includes a sequence of game operation behaviors of a sample object in a game. The label of each training sample includes a reference judgment result of whether the sample object corresponding to the training sample has cheating behavior in the game and a reference reasoning idea for obtaining the reference judgment result. The prompt word acquisition module is used to acquire a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object in the input model, to determine whether the object has cheating behavior, and to provide the reasoning logic for obtaining the discrimination result. The model training module is used to perform multiple rounds of iterative training on the large anomaly detection model to be trained based on the first training set and the first prompt word; wherein each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. The model parameters of the large model are adjusted according to the differences between the labels of each training sample and the corresponding model output.

[0008] As an optional embodiment of this disclosure, for each training sample in the first training set, the label of the training sample is obtained by the training set acquisition module in the following manner: Obtain the second prompt word, which is used to instruct the large inference model to analyze whether the object has cheating behavior based on the game operation behavior sequence and discrimination strategy set of an object in the input model and to provide an analysis approach. The second prompt word, the game operation behavior sequence in the training sample, and the discrimination strategy set are input into the reasoning model. The reasoning model is used to obtain the analysis results of whether the sample object corresponding to the training sample has cheating behavior, as well as the analysis ideas for obtaining the analysis results. Based on the analysis results and analysis approach corresponding to the training sample, the label of the training sample is obtained.

[0009] As an optional embodiment of this disclosure, when the training set acquisition module obtains the label of the training sample based on the analysis results and analysis ideas corresponding to the training sample, it is specifically used for: Obtain a preset third prompt word, which is used to instruct the simplified large model to summarize the content of the input model; The third prompt word and the analysis approach corresponding to the training sample are input into the simplified large model. The simplified large model summarizes the analysis approach to obtain the reasoning approach corresponding to the training sample. The analysis result corresponding to the training sample is used as the reference discrimination result corresponding to the training sample, and the reasoning idea corresponding to the training sample obtained through the simplified large model is used as the reference reasoning idea corresponding to the training sample.

[0010] As an optional embodiment of this disclosure, the training set acquisition module, when used to acquire the first training set, is specifically used for: Acquire game-related data for each of the multiple game objects. The game-related data for each game object includes the object attribute information of the game object in the game application, and the game-related data of the game object in a game match. For each game object, the game-related data of the game object is input into a trained anomaly detection model, and the probability that the game object has cheating behavior in the corresponding game is obtained through the anomaly detection model; For each game object, if the probability corresponding to the game object is greater than or equal to a preset threshold, then the game object is used as a sample object, and the game operation behavior sequence of the game object in the corresponding game match is obtained.

[0011] As an optional embodiment of this disclosure, for each sample object in the training samples, the sequence of game operation behaviors of the sample object in a game is obtained by the training set acquisition module in the following way: Obtain a preset set of operation behaviors, wherein the set of operation behaviors includes multiple game operation behaviors, and the multiple game operation behaviors include at least one first operation behavior, wherein the first operation behavior is a game operation behavior related to obtaining game rewards; The game operation behavior data of the sample object in the game is obtained. Based on the game operation behavior data, the initial behavior sequence corresponding to the sample object and other game objects associated with each game operation behavior in the initial behavior sequence are obtained. The initial behavior sequence includes each game operation behavior belonging to the operation behavior set that occurs sequentially by the sample object in the game and the game parameters corresponding to each game operation behavior. Based on the other game objects associated with each game operation in the initial behavior sequence, the initial behavior sequence is divided into at least one subsequence, wherein each subsequence corresponds to one other game object; For each subsequence, if the first operation does not exist in the subsequence, then the subsequence is deleted; Based on the retained subsequences, the game operation behavior sequence of the sample object is determined.

[0012] As an optional embodiment of this disclosure, the training set acquisition module, when used to determine the game operation behavior sequence of the sample object based on the retained sub-sequences, is specifically used for: For each retained subsequence, if the time difference between the occurrence of two adjacent game actions in the subsequence is greater than a preset time interval, the subsequence is divided between the two adjacent game actions to obtain multiple sequence segments of the subsequence. For each retained subsequence, if there are sequence segments in each sequence fragment of the subsequence that do not include the first operation, then delete the sequence segments in the subsequence that do not include the first operation and merge the retained sequence segments to obtain the updated subsequence. Based on the updated subsequences, the game operation behavior sequence of the sample object is obtained.

[0013] As an optional embodiment of this disclosure, for each sample object in the training samples, the sequence of game operation behaviors of the sample object in a game is obtained by the training set acquisition module in the following way: Obtain game log data for each game object in the game match, wherein each game object includes the sample object; By replaying the game logs of each game object in the game, the game operation behavior data of the sample object in the game is obtained; Based on the game operation behavior data of the sample object in the game, the sequence of game operation behavior of the sample object in the game is obtained.

[0014] As an optional embodiment of this disclosure, the model training module is also used for: Obtain a second training set, which includes multiple positive samples and multiple negative samples. The positive samples include game-related data of a game in which the sample object has cheating behavior, and the negative samples include game-related data of a game in which the sample object has cheating behavior. The sample object corresponding to the positive sample is the object that has cheating behavior, and the sample object corresponding to the negative sample is the object that does not have cheating behavior. Based on the second training set, perform multiple training operations on the anomaly detection model to be trained to obtain the trained anomaly detection model.

[0015] As an optional embodiment of this disclosure, the multiple training operations include multiple training operations in a first stage and multiple training operations in a second stage. Each training operation in the first phase includes: Select positive and negative samples in the second training set at a ratio of the first ratio as the training subset for the current training operation. Based on the training subset, train the anomaly detection model to obtain the anomaly detection model for the next training operation. Each training operation in the second phase includes: Select positive and negative samples in the second training set at a ratio of 2, and input each selected sample into the anomaly detection model targeted by the current training operation to obtain the probability that the sample object corresponding to each sample is an object with cheating behavior. For each selected sample, the probability interval to which each sample belongs is determined according to the probability corresponding to each sample and multiple preset probability intervals, and the samples in each probability interval are taken as a sample subset. For each of the sample subsets, a negative sample is selected based on the number of positive samples in that subset, with a ratio of the number of positive samples to the third ratio. All positive samples in each sample subset and the negative samples selected from each sample subset are used as the training subset for the current training operation. The anomaly detection model is trained using the training subset to obtain the anomaly detection model for the next training operation. The third ratio is greater than the second ratio and the third ratio is greater than the first ratio.

[0016] As an optional embodiment, for each training sample, the game operation behavior sequence in the training sample includes multiple game operation behaviors and game parameters corresponding to each game operation behavior. The training sample also includes game screens with timestamps corresponding to each game operation behavior in the game game corresponding to the training sample. Wherein, the game operation behavior in the game operation behavior sequence of each training sample is the game operation behavior in the preset operation behavior set; The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence of an object in the input model, the game screen corresponding to each game operation behavior in the game operation behavior sequence, and the discrimination strategy set to determine whether the object has cheating behavior, to give the reasoning logic for obtaining the discrimination result, and when the discrimination result is that cheating behavior exists, to give the time information of the occurrence of cheating behavior in the game.

[0017] According to another aspect of the present disclosure, a cheating detection device is provided, the device comprising: The first acquisition module is used to acquire the sequence of game operation behaviors of the object to be detected in the target game. The second acquisition module is used to acquire a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. The detection module is used to input the first prompt word, the game operation behavior sequence, and the discrimination strategy set into the anomaly detection big model to obtain the model output of the anomaly detection big model. The model output includes the discrimination result corresponding to the object to be detected and the reasoning logic of the discrimination result. The anomaly detection big model is trained using any of the big model training methods provided in the embodiments of this disclosure.

[0018] According to another aspect of the embodiments of this application, an electronic device is provided, the electronic device including a memory, a processor and a computer program stored in the memory, the processor executing the computer program to implement the above-described large model training method and cheat detection method.

[0019] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the above-described large model training method and cheating detection method.

[0020] According to another aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described large model training method and cheating detection method.

[0021] The beneficial effects of the technical solutions provided in this disclosure are: By acquiring game operation behaviors of multiple sample objects in a game, the judgment results of whether the sample objects have cheated in the corresponding game, and the reasons for determining whether cheating has occurred, training samples and labels for training the model were obtained. A first training set was constructed using the training samples and labels, and the model was trained based on the first training set. By acquiring preset first prompt words and introducing a set of discrimination strategies, it is beneficial to guide the large language model to analyze game operation behaviors according to the set of discrimination strategies based on the first prompt words, and obtain discrimination results and reasoning ideas. By using the large language model as the initial model to be trained, it is possible to obtain an anomaly detection model with high cheat detection accuracy and interpretable discrimination results based on the text understanding and reasoning capabilities of the large language model. Furthermore, cheat detection is performed through game operation behavior sequences, and it can detect any type of cheating technology used by the player, demonstrating high detection robustness. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments of this disclosure will be briefly introduced below.

[0023] Figure 1 A schematic diagram of a system architecture provided for an embodiment of this disclosure; Figure 2 A flowchart illustrating a training method for a large model provided in this embodiment of the disclosure; Figure 3 A schematic diagram illustrating the training of a large-scale anomaly detection model provided in an embodiment of this disclosure; Figure 4 A schematic diagram illustrating the training of a large-scale anomaly detection model provided in an embodiment of this disclosure; Figure 5This is a schematic diagram illustrating the determination of training samples according to an embodiment of the present disclosure; Figure 6 A schematic diagram of the model structure of an anomaly detection model provided in this embodiment of the disclosure; Figure 7 A schematic diagram illustrating a training anomaly detection model provided in an embodiment of this disclosure; Figure 8 A schematic diagram illustrating the determination of negative samples provided in an embodiment of this application; Figure 9 This is a schematic diagram illustrating the determination of an interactive object according to an embodiment of the present disclosure; Figure 10 A schematic diagram illustrating the determination of behavior weights according to an embodiment of this disclosure; Figure 11 A schematic diagram illustrating the determination of undiscovered behavior provided in an embodiment of this disclosure; Figure 12 A schematic diagram illustrating the determination of a sequence of game operation behaviors according to an embodiment of this disclosure; Figure 13 A schematic diagram illustrating a large-scale anomaly detection model provided in an embodiment of this disclosure; Figure 14 A schematic diagram illustrating another large-scale anomaly detection model provided in an embodiment of this disclosure; Figure 15 A schematic flowchart of a cheating detection method provided in an embodiment of this disclosure; Figure 16 A schematic diagram illustrating a cheat detection method provided in an embodiment of this disclosure; Figure 17 A schematic diagram of a cheating detection method provided in an embodiment of this disclosure; Figure 18 A schematic diagram of a cheating detection method provided in an embodiment of this disclosure; Figure 19 A schematic diagram of the structure of a training device for a large model provided in an embodiment of this disclosure; Figure 20 This is a schematic diagram of the structure of a cheating detection device provided in an embodiment of the present disclosure; Figure 21 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0024] The embodiments of this disclosure are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this disclosure, and do not constitute a limitation on the technical solutions of the embodiments of this disclosure.

[0025] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this disclosure mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element are connected through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term, for example, “A and / or B” or “A, B” indicates implementation as “A,” or implementation as “B,” or implementation as “A and B.”

[0026] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0027] To make the objectives, technical solutions, and advantages of this disclosure clearer, the embodiments of this disclosure will be described in further detail below with reference to the accompanying drawings.

[0028] First, the technical terms used in this disclosure will be introduced and explained: Artificial intelligence (AI) is a technology that simulates human intelligent behavior through computer systems, aiming to enable machines to possess abilities such as perception, understanding, reasoning, learning, and decision-making. AI systems typically rely on algorithmic models, big data, and computing power, and can be used in various application scenarios such as image recognition, speech recognition, natural language processing, autonomous driving, and intelligent control. In recent years, with the development of deep learning technology, AI has achieved significant breakthroughs in semantic understanding and text generation, becoming one of the important foundational technologies driving intelligent services and automated processing.

[0029] Large Language Models (LLMs) are a class of natural language processing models trained on massive corpora using deep learning techniques. They typically have billions or even hundreds of billions of parameters and are capable of understanding and generating natural language text. These models learn linguistic patterns and contextual dependencies within the corpus, possessing strong language understanding and generation capabilities, and are widely used in tasks such as dialogue generation, machine translation, text summarization, and question answering systems. Representative large language models include the GPT series, BERT, and T5. The size of a large model is usually measured by the number of parameters, often described using the unit "billion." For example, a "large model with seven billion parameters" means that the model contains approximately seven billion trainable parameters. The larger the number of parameters, the stronger the model's expressive and reasoning abilities generally are.

[0030] Game cheats refer to programs or software developed to help players gain unfair advantages in games. These programs typically bypass or modify the game's original settings to achieve abnormal gameplay, such as auto-aiming, teleportation, amplified damage, and enhanced vision, allowing players to far surpass ordinary players in operational efficiency, reaction speed, or resource acquisition. Cheats usually interfere with the behavior of the game client or server through code injection, simulated input, and tampering with memory data, thereby undermining the fairness and balance of the game. Using cheats can not only harm the gaming experience of other players but also seriously impact the reputation and revenue of game operators.

[0031] Existing game cheats come in various forms, typically aiming to enhance player efficiency, attack accuracy, and information perception capabilities, thereby disrupting game balance. Common types of cheats mainly include the following: Wallhack: By modifying the graphics card's rendering mechanism, walls, ground, or other obstructions in the game become semi-transparent, allowing players to easily observe enemies or objects hidden behind obstacles. This cheat is common in first-person shooter games and can significantly enhance the predictive abilities of cheat users, disrupting the fair competitive environment.

[0032] Aimbots: Primarily used in shooting games, these cheat programs automatically lock the crosshair onto the target after detecting an enemy, eliminating the need for manual aiming by the player. Some aimbots also offer automatic firing, significantly improving shooting efficiency and accuracy, especially advantageous in fast-paced competitive scenarios.

[0033] Recoil-free cheat: This cheat modifies the recoil mechanism of items with damage attributes in the game, making the item almost completely still when fired, resulting in highly concentrated bullet trajectories. This cheat is usually used in conjunction with aimbots, allowing users to maintain an extremely high hit rate even at long range or in bursts of fire, severely interfering with the normal shooting experience.

[0034] Anti-cheat detection is a key technology for maintaining game fairness and player experience. It prevents cheats from disrupting game balance, harming player interests, and damaging the reputation of game operators. Existing technical solutions fall into two categories: hardware-based detection and image detection methods that examine game visuals to detect cheating elements.

[0035] Because cheat development is highly profitable, once a version of a cheat is identified and banned, the development team or individual will quickly upgrade their technology to circumvent existing detection systems, thus continuing their cheating activities. Therefore, anti-cheat measures are a continuous and dynamically evolving technological game.

[0036] Existing hardware detection solutions need to be constantly adapted to new cheats, facing the dual challenges of recognition capability and update efficiency; image detection methods rely on capturing and analyzing the player's game screen, which often requires high system privileges, raising user concerns about privacy.

[0037] Furthermore, current mainstream detection methods generally suffer from insufficient interpretability. After identifying suspected cheating behavior, the system usually bans the player account directly, but it is difficult to clearly point out the specific basis for the violation, which not only affects the player's appeal experience but also causes trouble for the operator's management and communication.

[0038] The large model training method, cheating detection method, device, electronic device, computer-readable storage medium, and computer program product disclosed herein are intended to solve at least one of the above-mentioned technical problems of the prior art.

[0039] The following description of several exemplary embodiments illustrates the technical solutions of this disclosure and the technical effects produced by these solutions. It should be noted that the following embodiments can be referenced, learned from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0040] Figure 1This is a schematic diagram of a system architecture provided in an embodiment of the present disclosure. This system architecture can be used to implement detection methods for large models and cheating detection methods. The system includes multiple terminals 10, an application server 20, a database server 30, a cheating detection server 40, and a model training server 50. Each terminal 10 interacts with the application server 20. Terminal 10 can be a client of a game application, and the application server 20 is the backend server of that game application. Users (also known as game players) can open the game application and start a game through terminal 10. The application server can obtain the user's game operation behavior sequence during the game and send the game operation behavior sequence to the database server 30, where the database server 30 stores the game operation behavior sequence. Application server 20 can interact with cheat detection server 40. To detect whether a user is cheating during a game, application server 20 can send a cheat detection request to cheat detection server. Cheating detection server 40 deploys an anomaly detection model and stores preset prompt words and a set of discrimination strategies for cheat detection. After receiving the detection request, cheat detection server 40 sends a request to database server 30 for the user's game operation sequence, obtains the data returned by database server 30, and sends the obtained game operation sequence, first prompt word, and cheat strategy set to anomaly detection model. Based on its own text understanding and reasoning ability, anomaly detection model provides a cheat detection result and the reason for the result.

[0041] In this system, the large-scale anomaly detection model deployed in the cheat detection server is trained on the model training server 50. The application server 20 and the cheat detection server 40 can both send model training requests to the model training server 50. The cheat detection server 40 can interact with the database server 30. The database server 30 also stores training samples and labels used to construct the training set. These training samples and labels can be obtained through experts. Specifically, experts analyze the historical game behavior data of different users to determine whether a user engaged in cheating during a game, and the specific reasons for such cheating. The user's historical game behavior data can serve as training samples, and the corresponding judgment results and specific reasons for cheating can serve as labels. The model training server 50 can pre-deploy the initial large model to be trained and store the aforementioned prompt words and discrimination strategy set. After receiving a training request, the model training server sends a data acquisition request to the database server 30 to obtain the training samples and labels stored in the database server, constructs a training set, and trains the initial large model based on the training set, prompt words, and discrimination force gauge to obtain the trained anomaly detection large model.

[0042] In addition, the model training server can update the large anomaly detection model at preset time intervals, and the training samples and labels stored in the database server can also be continuously updated over time to achieve continuous model optimization and enhanced detection capabilities.

[0043] In some embodiments, terminal 10 can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, in-vehicle terminal, or other terminal that can serve as a game application client, but is not limited thereto. Those skilled in the art will understand that the number of terminals can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds, or even more, terminals. This disclosure does not limit the number or type of terminals.

[0044] In some embodiments, the application server 20, database server 30, cheat detection server 40, and model training server 50 may be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0045] For example, the training method for the large model in this embodiment of the disclosure can be provided by... Figure 1 The model training server in the middle completes the task, and the cheating detection method can be performed by... Figure 1 The cheat detection is performed by a cheat detection server. The solution in the embodiments of this disclosure is described below.

[0046] This disclosure provides a method for training a large model, such as... Figure 2 As shown, the method includes: S201. Obtain the first training set, which includes multiple training samples with labels.

[0047] Each training sample includes a sequence of game operation behaviors of a sample object in a game match. The label of each training sample includes a reference judgment result of whether the sample object corresponding to the training sample has cheating behavior in the game match, and a reference reasoning idea for obtaining the reference judgment result.

[0048] A game is an interactive entertainment system executed by a computer program, allowing players to operate through a client and interact with a virtual environment via a graphical interface. Games typically include a system of rules, goal settings, and feedback mechanisms to evaluate player performance or achievement. During gameplay, when players or third-party organizations bypass normal interaction paths and use special programs to interfere with or manipulate the game system in order to gain advantages in in-game resources, improve rankings, or achieve economic gains, these programs are known as cheats or hacks.

[0049] In this embodiment of the disclosure, to detect whether a player is using cheats in a game, a large model is trained by acquiring a first training set to obtain an anomaly detection model. The first training set includes multiple labeled training samples. Each training sample is a sequence of game actions performed by a sample object in a game. The label corresponding to the training sample is a reference judgment result indicating whether the sample object in the game engaged in cheating (i.e., using cheats), and a reference reasoning logic for that judgment result. The sample object can be a game player. The game action sequence of the player in a game can be obtained to determine whether the player engaged in cheating or not, and reasons can be given for the existence or absence of cheating, thus obtaining the training sample and its corresponding label.

[0050] Optionally, experts or technicians can analyze the game to determine a reference judgment result regarding whether the sample subject engaged in cheating during the game, as well as the corresponding reasoning process for obtaining the reference judgment result. Alternatively, feedback information provided by other players in the game can be obtained to determine whether the sample subject engaged in cheating and the corresponding reasons.

[0051] In this embodiment, the game operation behavior sequence can be obtained by sorting the game operation behavior data of the sample object in a game match according to time. Multiple game operation behaviors for cheat detection can be preset, and relevant data when the sample object exhibits the preset game operation behaviors in a game match can be obtained as game operation behavior data. All game operation behavior data corresponding to the sample object are then sorted by time to obtain the game operation behavior sequence.

[0052] The preset game operation behaviors can differ depending on the type of game. Because different types of games have different gameplay mechanics, operation methods, and behavioral characteristics, the game operation behaviors that need to be monitored during cheat detection also need to be preset according to the specific game.

[0053] For example, in shooting games, the main operations include movement, aiming, shooting, changing equipment, crouching, and jumping. Cheating behaviors may manifest as: abnormally accurate aiming, excessively fast reaction speed, or hitting targets outside the line of sight. In card strategy games, the pace of gameplay is slower, focusing primarily on card-playing logic and game strategy. Cheating behaviors may manifest as: always playing the optimal card, extremely short time intervals, and excessively high consistency in consecutive actions.

[0054] Taking first-person shooter (FPS) games as an example, this type of game involves controlling a character to shoot and fight from the player's subjective perspective. The first-person perspective enhances immersion, allowing players to directly experience the weapons, environment, and combat dynamics within the character's field of vision. Game actions in this type of game can include at least one of the following: firing, killing, attacking, aiming at invisible enemies, finding enemies, not finding enemies, and crosshair movement. The game action data for each action is as follows: Firing action: timestamp, enemy IDs at the time of firing, distance and angle from the observed player; Kill action: timestamp, killed enemy ID, distance from the observed player, item used by the observed player; Knockdown action: timestamp, knocked-down enemy ID, distance from the observed player, item used by the observed player; Aim action: timestamp, aimding enemy ID, distance from the observed player; Enemy detection action: timestamp, detected enemy ID, distance and angle from the observed player; Undetected enemy action: timestamp, all undetected enemy IDs, distance and angle from the observed player; Crosshair movement action: timestamp, movement speed, movement acceleration, item used by the observed player.

[0055] In this embodiment of the disclosure, by using the sequence of game operation behaviors of the sample object in a game as the training sample, and using the reference discrimination result and reference reasoning as the label, the trained anomaly detection model can output the corresponding discrimination result and reasoning based on the input game operation behavior sequence, making the cheating detection result interpretable.

[0056] As an optional embodiment, for each sample object in the training sample, the sequence of game operation behaviors of the sample object in a game is obtained in the following way: Obtain game log data for each game object in the game, wherein each game object includes the sample object; By replaying the game logs of each game object in the game, the game operation behavior data of the sample object in the game is obtained; Based on the game operation behavior data of the sample object in the game, the sequence of game operation behavior of the sample object in the game is obtained.

[0057] In this embodiment of the disclosure, the game log data of each game object is stored in a replay file. The replay file is a video file generated during the game and saves the game log data of all players, including the input commands (such as movement and attack) at each time stamp of the player, status changes (such as health and position), event triggers (such as skill release), etc. This global recording enables the complete restoration of the game during replay.

[0058] The data in the replay file can be stored in structured binary or compressed format. By parsing the replay file, the game progress can be reconstructed, supporting features such as perspective switching and playback speed adjustment. As an optional implementation, the game operation behavior data of the sample object during the game can be extracted by parsing the replay file. Based on the timestamps corresponding to each game operation behavior data point, the game operation behavior data is arranged in chronological order of occurrence to obtain the game operation behavior data.

[0059] In this embodiment of the disclosure, the game operation behavior data includes game operation behavior identifiers and game parameters corresponding to each game operation behavior. The game parameters may include the ID of the observed game player, the ID of the game player interacting with the observed game player, the distance between the observed game player and other game players, and the items currently used by the observed game player.

[0060] It should be noted that playback files can record global operations through event protocols. When generating playback files, events that need to be recorded can be marked based on event protocol tags.

[0061] Taking shooting games as an example, the controls include: Basic operations: moving coordinates, pointing the gun; Combat behavior: firing timestamp, item ID, bullet trajectory, target coordinates; Environmental interaction: picking up items, terrain collision, skill release parameters.

[0062] In this embodiment, the game operation data for the preset game operations can all be obtained through replay technology. This replay technology records and reproduces the player's game process and can obtain game operation data through calculation. For example, the distance between players can be directly obtained from their coordinates, and a ray casting algorithm can be used to determine if there is any occlusion between players.

[0063] This embodiment of the disclosure, based on replay technology, collects players' game operation behavior data from game matches. Compared with obtaining the user's actual game match screen, collecting game operation behavior data does not require calling the operating system-level screenshot permission, achieving zero contact with privacy data and avoiding the risk of user privacy leakage that may be caused by traditional screenshot methods.

[0064] S202. Obtain the preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object in the input model, to determine whether the object has cheating behavior, and to give the reasoning idea for obtaining the discrimination result.

[0065] In this embodiment, the first prompt is a natural language instruction used to guide the model's behavior. This prompt may include a task description, such as: "Below is a sequence of game actions and a set of discrimination strategies for a player in a game. Please analyze the sequence of actions based on the discrimination strategy set, determine whether the player cheated in the game, and explain your reasoning." The discrimination strategy set is a pre-defined set of strategies or rules used to assist in determining whether a player is cheating, with each strategy or rule serving as a discrimination strategy. This discrimination strategy set can be described in the form of logical rules or conditional judgments, combining the game action data from the pre-defined sequence of game actions to describe the patterns of cheating behavior that a certain type of game action might correspond to under specific conditions.

[0066] Taking a shooting game as an example, the decision strategy set can include the following strategies: 1. Check if the player has aimed at the target at least once from a distance of 40 meters or more before the target is first detected (find). This is called wallhack. 2. Check if the player has aimed or found the target at least twice at a medium range of 20 meters or more before the target is first discovered (find). This is called wallhack. 3. Check if a player moves towards an undetected player more than 3 times consecutively; this is a case of wallhacks. 4. Checking if a player quickly switches between targets A and B, which are more than 50 meters apart, within 2 seconds is considered aimbot. 5. Check if a player has more than 5 headshot kills; this is headshot lock-on. 6. Check that the player's crosshair movement acceleration is consistently less than 10, indicating no recoil; 7. A sequence that violates any one or more of rules 1-6 is considered a cheating sequence; 8. Summarize the analysis of multiple behavior sequences. If there are two or more cheating sequences, it is judged as cheating, and no further checks are needed. 9. If there are only 0 or 1 cheat sequences, output "No cheating" without needing to check again.

[0067] It should be noted that, considering that game operation behavior sequences are too long and difficult for large models to understand, the game operation behavior sequences can be divided into multiple subsequences. Therefore, in the discrimination strategy, the number of existing cheating sequences can be compared with a preset value. When there are a few cheating sequences, it is considered that there is no cheating behavior. When there is only one game operation behavior sequence, it is considered that there is one cheating sequence and cheating behavior exists.

[0068] In this embodiment of the disclosure, the discrimination strategy set can serve as auxiliary information for the first prompt word, helping the large anomaly detection model to perform cheating detection and improving the accuracy and interpretability of the output results of the large anomaly detection model.

[0069] S203. Based on the first training set and the prompt word, perform multiple rounds of iterative training on the large anomaly detection model to be trained.

[0070] Each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. Based on the differences between the labels of each training sample and the corresponding model output, the model parameters of the large model are adjusted.

[0071] In this embodiment of the disclosure, the large-scale anomaly detection model to be trained can be an initial large-scale model to be trained, or an anomaly detection large-scale model that needs to be updated. The large-scale anomaly detection model can be trained iteratively in multiple rounds until a preset termination condition is met, resulting in a trained large-scale anomaly detection model. The preset termination condition may include at least one of the following: The number of training iterations reaches the preset value; the accuracy of the trained anomaly detection model on the validation set is higher than the preset value; the loss function converges.

[0072] When using a validation set to verify whether training has ended, the validation set includes multiple labeled validation samples, and the data structure of the validation samples is consistent with that of the samples in the training set. The ratio of the number of training samples in the first training set to the number of training and validation samples in the validation set can be a preset ratio, for example, the ratio of the number of training samples to the number of validation samples is 8:2.

[0073] In this embodiment of the disclosure, during each round of iterative training, for each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output. The model output includes the discrimination result corresponding to the training sample and the corresponding reasoning logic. The model output corresponds to the label of the training sample, and the loss function can be calculated based on the difference between the label of each training sample and the model output to adjust the model parameters of the large model.

[0074] Optionally, the loss function in this embodiment may include two parts: discrimination accuracy loss and inference accuracy loss. The discrimination accuracy loss is calculated based on the difference between the reference discrimination result provided in the training sample labels and the discrimination result output by the model. Cross-entropy loss can be used to evaluate the classification result (treating the presence or absence of cheating behavior as the classification result), thereby measuring the model's accuracy in detecting cheating behavior.

[0075] The reasoning accuracy loss is calculated based on the difference between the reference reasoning ideas provided in the training sample labels and the reasoning text output by the model. Language model loss (such as token-level cross-entropy) or a semantic similarity evaluation metric can be used to assess the semantic consistency between the model's output reasoning content and the reference reasoning ideas.

[0076] In this embodiment, by acquiring the game operation behavior of multiple sample objects in a game, the judgment result of whether the sample objects have cheated in the corresponding game, and the reason for determining whether cheating has occurred, training samples and labels for training the model are obtained. A first training set is constructed using the training samples and labels, and the model is trained based on the first training set. By acquiring a preset first prompt word and introducing a discrimination strategy set, it is beneficial to guide the large language model to analyze the game operation behavior according to the discrimination strategy set based on the first prompt word, and obtain the discrimination result and reasoning logic. By using the large language model as the initial model to be trained, it is possible to obtain an anomaly detection large model with high cheat detection accuracy and interpretable discrimination results based on the text understanding and reasoning capabilities of the large language model. Furthermore, cheat detection is performed through game operation behavior sequences, and it can detect any type of cheating technology used by the player, demonstrating high detection robustness.

[0077] As an optional implementation, the training label for each training sample can be determined in the following way: Obtain the second clue word, which is used to instruct the large inference model to analyze whether the object has cheating behavior based on the game operation behavior sequence and discrimination strategy set of an object in the input model, and provide an analysis approach. The second prompt word, the game operation behavior sequence in the training sample, and the discrimination strategy set are input into the inference model. The inference model is used to obtain the analysis results of whether the sample object corresponding to the training sample has cheating behavior, as well as the analysis ideas for obtaining the analysis results. Based on the analysis results and analysis approach corresponding to the training sample, the label of the training sample is obtained.

[0078] In this embodiment of the disclosure, the label corresponding to each training sample in the first training set can be determined by technicians or experts through analysis of game matches. To further improve the efficiency of obtaining labels, the game operation behavior data can be analyzed based on the inference big model to obtain the reference discrimination results and reference logic ideas in the label.

[0079] The model parameters of the inference model can be larger than those of the anomaly detection model. Directly using the inference model for cheat detection is slow due to its large model parameters. However, it's possible to obtain labels for training the larger model through the inference model, thus enabling the anomaly detection model trained on a smaller model to possess the inference capabilities of the inference model.

[0080] Large-scale inference models can be very large, such as having 671B (billions) of parameters, which results in high deployment costs. Such a large-scale inference model takes 1-2 minutes to identify a game. To reduce deployment costs and improve recognition efficiency, the inference capabilities of the large-scale inference model can be distilled into a smaller-scale model, such as a model with 7B parameters, through data distillation.

[0081] like Figure 3 As shown, Figure 3 This diagram illustrates the training of a large-scale anomaly detection model provided in an embodiment of this disclosure. When a specification is required, the circles and numbers in the accompanying drawings of this disclosure represent serial numbers such as "...". "", The symbols ", ", etc., are used to indicate the order of execution of steps. By collecting and mining game operation behavior data, a game operation behavior sequence is obtained. This sequence is sent to the inference model, which outputs reference discrimination results and reference inference ideas (i.e., reference results and reference ideas in the diagram). Labels for training the anomaly detection model are then obtained. The game operation behavior sequence is output to the anomaly detection model again, yielding its own discrimination results and inference ideas (i.e., the result ideas in the diagram). The differences between the reference discrimination results, the reference inference ideas, and the inference ideas themselves are used to calculate the training loss. The model parameters of the anomaly detection model are adjusted based on this loss. By repeating these steps, the anomaly detection model is trained. It should be noted that in actual training, the process of obtaining reference discrimination results and reference inference ideas through the inference model can be pre-executed. That is, before training the anomaly detection model, the steps of generating reference discrimination results and reference inference ideas by the inference model are performed to obtain the corresponding labels for the training samples in advance.

[0082] In this embodiment of the disclosure, a second prompt word can be obtained. This second prompt word is used to prompt the reasoning model to analyze whether the object has cheating behavior based on the game operation behavior sequence and discrimination strategy set of the input model, and to give the analysis results.

[0083] When generating labels based on the large inference model, the second prompt word, the discrimination strategy set, and the game operation behavior sequence in the training samples can be input into the large inference model to obtain the analysis results and analysis ideas output by the large inference model.

[0084] Optionally, the second cue word can be the same as or different from the first cue word. Because the large inference model has significantly stronger text understanding and reasoning capabilities than the initial large model to be trained, the second cue word can provide more detailed information than the first cue word.

[0085] In this embodiment of the disclosure, the analysis results output by the large inference model are used as reference discrimination results, and the analysis ideas output by the large inference model are used as reference logical ideas, thus obtaining the labels corresponding to the training samples.

[0086] In this embodiment of the disclosure, the labels of training samples are obtained by a large reasoning model with powerful reasoning capabilities, which can improve the efficiency and accuracy of label acquisition. The large anomaly detection model is trained based on these labels, which helps the large anomaly detection model to acquire the reasoning capabilities of the large reasoning model through training, thereby improving the accuracy of the final output judgment results and reasoning ideas.

[0087] To improve the efficiency of the large anomaly detection model's output, the analysis approach of the large inference model's output can be simplified, and the simplified analysis approach can be used as a reference inference approach.

[0088] As an optional embodiment, the label of the training sample is obtained based on the analysis results and analysis ideas corresponding to the training sample obtained through the large inference model, including: Obtain a preset third prompt word, which is used to instruct the simplified large model to summarize the content of the input model; The third prompt word and the analysis approach corresponding to the training sample are input into the simplified large model. The simplified large model summarizes the analysis approach to obtain the reasoning approach corresponding to the training sample. The analysis result corresponding to the training sample is used as the reference discrimination result corresponding to the training sample, and the reasoning idea corresponding to the training sample obtained through the simplified large model is used as the reference reasoning idea corresponding to the training sample.

[0089] In this embodiment of the disclosure, the simplified large model can be a large model with generalization capabilities. In order to summarize the analysis ideas through the simplified large model, a third prompt word can be preset. Based on the third prompt word, the simplified large model is instructed to summarize the content of the input model.

[0090] Specifically, for each training sample, the analysis result of the large inference model corresponding to the training sample is used as the reference discrimination result of the training sample, and the inference idea of ​​the training sample obtained by the simplified large model is used as the reference inference idea of ​​the training sample.

[0091] like Figure 4 As shown, Figure 4 This diagram illustrates the training of a large-scale anomaly detection model according to an embodiment of this disclosure. By outputting game action sequences to a large-scale inference model, the analysis results and analytical approaches output by the large-scale inference model are obtained. These analytical approaches are then input to a conventional large-scale model, which can be a model with generalization capabilities. This conventional large-scale model is used as a simplified large-scale model. Based on the generalization capabilities of the simplified large-scale model, a simplified analytical approach is obtained, which serves as the simplified approach. The analysis results and the simplified approach are used as labels for training samples. By inputting game action sequences to the large-scale anomaly detection model, the discrimination results and inference approaches output by the anomaly detection model are obtained. Based on the differences between the analysis results and the discrimination results, and the differences between the simplified approach and the inference approach, the training loss is calculated. The model parameters of the large-scale anomaly detection model are adjusted based on the training loss to achieve training of the large-scale anomaly detection model.

[0092] For example, the third prompt could be, "Please help me organize the following text according to the following rules, and return the simplified version you have completed:" Rule 1: If the content contains examples of sequences, please delete these information and keep the text content of the analysis; Rule 2: You need to first give the conclusion of whether the player cheated, and then output the judgment and reason for each sequence starting from Sequence 1 and Sequence 2 in the original content format! ## Output format: This player is cheating / not cheating. Sequence 1 Normal / Cheat reason: Sequence 2 Normal / Cheat reason: ... Summary: This player had XX cheat sequences, resulting in a judgment of / not using cheats. ##enter:".

[0093] In this embodiment of the disclosure, the analytical approach output by the large inference model is summarized to obtain a summarized analytical approach, which serves as a reference inference approach in the label. When the opinion detection large model trained based on this label outputs, it only needs to output a concise inference approach, thus improving output efficiency.

[0094] Furthermore, considering that the proportion of games with cheating behavior among the large number of games generated daily is very small, when obtaining training samples, games can be screened first to retain those that may have cheating behavior.

[0095] Therefore, as an optional embodiment, obtaining the first training set includes: Acquire game-related data for each of the multiple game objects. The game-related data for each game object includes the object attribute information of the game object in the game application, and the game-related data of the game object in a game match. For each game object, the game-related data of the game object is input into a trained anomaly detection model, and the probability that the game object has cheating behavior in the corresponding game is obtained through the anomaly detection model; For each game object, if the probability corresponding to the game object is greater than or equal to a preset threshold, then the game object is used as a sample object, and the game operation behavior sequence of the game object in the corresponding game match is obtained.

[0096] In this embodiment of the disclosure, a pre-trained anomaly detection model can be obtained. This anomaly detection model can be an existing machine learning model for anomaly detection based on game-related data, or it can be a model obtained by training an initial machine learning model using game-related data as training data.

[0097] Specifically, game-related data for multiple game objects can be obtained from historical game matches. For each game object, this data can include object attribute information within the game application and match-related information from a specific game match. The object attribute information can be the game object's personal attributes related to the game, while the match-related information can include at least one of the following: the value of a match performance evaluation metric generated after the game, the physical parameters of the tools used during the match, and a sequence of historical match performance evaluation metric values.

[0098] Taking shooting games as an example, game-related data may include: Player information: game age, game gender, game level, city / region, payment preferences, social preferences; Active paying users: Number of active days in the last 7 days, amount paid, number of active days in the last 30 days, amount paid, total historical activity, amount paid, number of matches played in the season; Match performance: kills, accuracy, headshot rate, survival time, damage dealt, number of reports received; Device environment: game platform, device type, device permissions; Authorities' action sequence: bullet damage sequence, bullet flight distance sequence, bullet recoil sequence, bullet velocity sequence; Historical match sequence: ranking sequence for each match, kills sequence for each match, headshot rate sequence for each match, and hit rate sequence for each match.

[0099] Among them, player information, active payment and device environment are the object attribute information of the game object, and game performance, current behavior sequence and historical game sequence are game-related data.

[0100] In this embodiment of the disclosure, each game object may include multiple game-related data. For each game-related data corresponding to multiple game objects, the game-related data is output to a trained anomaly detection model to obtain the output result of the anomaly detection model. The output result of the anomaly detection model is the probability that the game object corresponding to the game-related data has cheating behavior in the corresponding game match. When the probability is greater than or equal to a preset threshold, the game object corresponding to the game-related data is used as a sample object, and the game operation behavior sequence of the sample object in the corresponding game match is obtained to obtain a training sample.

[0101] Optionally, the preset threshold can be set based on experience so that the number of game objects that actually exhibit cheating behavior among the screened potentially cheating game objects is roughly equal to the number of game objects that do not actually exhibit cheating behavior. This is used to ensure that the training samples include a sufficient number of game operation behavior sequences that exhibit cheating behavior and a sufficient number of game operation behavior sequences that do not exhibit cheating behavior when training a large model.

[0102] like Figure 5 As shown, Figure 5 This is a schematic diagram illustrating a method for determining training samples according to an embodiment of this disclosure. As shown in the figure, after a player engages in a game, game-related data corresponding to that player and the game is obtained. This game-related data is input into an anomaly detection model, namely the deep sequence model in the figure. Based on the anomaly detection model, the probability of the player engaging in cheating is output, determining whether the player is a normal player or a suspicious player. When the player is a suspicious player, game replays are used to collect and mine data to obtain the player's game operation behavior sequence related to that game.

[0103] In this embodiment of the disclosure, the anomaly detection model can be a trained Deep Factorization Machine (DeepFM) model. Optionally, a Transformer layer for processing sequence data can be added to the DeepFM model, and the improved DeepFM can be used as the anomaly detection model.

[0104] like Figure 6 As shown, Figure 6 This is a schematic diagram of the model structure of an anomaly detection model provided in an embodiment of this disclosure. The model includes two embedding layers for feature extraction of object attribute information and game-related information, respectively; a Transformer layer for processing sequence data; a multi-layer fully connected network (DNN); and a factorization machine (FM) network layer. The DNN layer includes multiple activation functions, and the FM layer includes addition and inner product operations. Finally, the outputs of the FM and DNN layers are processed by the Sigmoid function to obtain the output result.

[0105] In this embodiment, game-related data of multiple game objects are acquired to predict whether cheating behavior exists in a game based on an anomaly detection model. The probability of cheating behavior is obtained, and game objects and game matches are filtered based on the probability of cheating behavior. After determining the game objects and game matches, the game objects are used as sample objects, and the game operation behavior sequence of the sample objects in the game match is obtained. This is used to obtain a sufficient number of training samples with cheating behavior for training the large anomaly detection model. This prevents the problem that the number of training samples with cheating behavior is too small, or the difference between the number of training samples with cheating behavior and the number of training samples without cheating behavior is large, which would lead to poor training effect of the large anomaly detection model.

[0106] As an optional implementation, the anomaly detection model can be trained through the following steps: Obtain a second training set, which includes multiple positive samples and multiple negative samples. The positive samples include game-related data of a game in which the sample object has cheating behavior, and the negative samples include game-related data of a game in which the sample object has cheating behavior. The sample object corresponding to the positive sample is the object that has cheating behavior, and the sample object corresponding to the negative sample is the object that does not have cheating behavior. Based on the second training set, perform multiple training operations on the anomaly detection model to be trained to obtain the trained anomaly detection model.

[0107] In this embodiment, the anomaly detection model can be the improved DeepFM model described above. Optionally, the Transformer layer of the improved DeepFM model can be replaced with deep sequence networks such as LSTM or GRU. Alternatively, the anomaly detection model can also be other deep sequence classification models, such as the XGBoost model.

[0108] The anomaly detection model can be trained by acquiring a second dataset. This second training set includes multiple positive and multiple negative samples with labels. Each sample includes game-related data for a sample object, which has the same meaning as the game-related data mentioned earlier.

[0109] Optionally, when acquiring the second dataset, it is possible to identify historically banned players and the game matches in which those banned players engaged in cheating. This allows the acquisition of the player's object attribute information and match-related information for that game, serving as positive samples. For negative samples, multiple game objects can be selected from historically unbanned players. For each game object, at least one corresponding game match can be identified. Based on the game object and its corresponding match, the game object's object attribute information and match-related information for that game match can be acquired, resulting in negative samples.

[0110] In this embodiment, the anomaly detection model to be trained can be supervised based on a second training set. The output of the anomaly detection model is the probability that a sample object engages in cheating behavior in a game. The label can be either 0 or 1, where 0 indicates that the sample object does not cheat, and 1 indicates that the sample object does cheat. Based on the difference between the label and the probability output by the model, a training loss is calculated. The parameters of the anomaly detection model are adjusted according to the training loss to train the anomaly detection model.

[0111] Alternatively, the Focal Loss function can be used as the loss function. This Focal Loss function can shift the focus of model optimization from the "simple majority class" to the "difficult minority class" through a dynamic weighting mechanism, thus handling model training in class imbalance scenarios.

[0112] In this embodiment of the disclosure, a second dataset is obtained, and supervised training of the anomaly detection model is achieved based on the second dataset. This enables the trained anomaly detection model to output more accurate detections of whether game objects are engaging in cheating behavior, thereby obtaining training samples for training a large model more accurately based on the anomaly detection model.

[0113] As an optional embodiment, to further improve the accuracy of cheat detection in the trained anomaly detection model, a multi-stage training method can be used. This multi-stage training operation includes multiple training operations in the first stage and multiple training operations in the second stage. Each training operation in the first phase includes: Select positive and negative samples in the second training set at a ratio equal to the first ratio as the training subset for the current training operation. Based on this training subset, train the anomaly detection model to obtain the anomaly detection model for the next training operation. Each training operation in the second phase includes: Select positive and negative samples in the second training set at a ratio of 2, and input each selected sample into the anomaly detection model targeted by the current training operation to obtain the probability that the sample object corresponding to each sample is an object with cheating behavior. For each selected sample, the probability interval to which each sample belongs is determined according to the probability corresponding to each sample and multiple preset probability intervals, and the samples in each probability interval are taken as a sample subset. For each subset of samples, select negative samples that are in a third proportion to the number of positive samples in the subset. All positive samples in each sample subset, and negative samples selected from each sample subset, are used as the training subset for the current training operation. The anomaly detection model is trained using this training subset to obtain the anomaly detection model for the next training operation. The third proportion is greater than the second proportion, and the third proportion is greater than the first proportion.

[0114] In this embodiment, cheaters in games typically exhibit certain characteristics due to the risk of account bans, such as being predominantly new accounts, rarely paying for content, and having a high kill count per game. If normal players are randomly selected to construct negative samples, the model, during training, may mistakenly identify some novice players as cheaters because they share similar characteristics with cheaters, leading to false positives (identifying novice players as cheaters) and low accuracy in cheat detection. Therefore, in this embodiment, the anomaly detection model undergoes two stages of training. The first stage trains an initial detection model, and the second stage, based on the model trained in the first stage, selects difficult negative samples to train a more refined model. For ease of description, the model obtained in the first stage is referred to as the coarse-grained deep sequence model, and the model obtained in the second stage is referred to as the fine-grained deep sequence model.

[0115] In this embodiment of the disclosure, the first stage may include at least one training operation. For each training operation, positive samples and negative samples with a first ratio can be obtained from the second training set, wherein the first ratio can be 1:5, as a training subset. The initial anomaly detection model is trained based on the training subset to obtain the initial anomaly detection model corresponding to the next training operation.

[0116] The anomaly detection model obtained from the first stage of training is called the coarse-scale deep sequence model.

[0117] In this embodiment of the disclosure, in each training operation of the second stage, positive samples and negative samples with a ratio of 1:10 are selected from the second training set. The second ratio can be smaller than the first ratio to obtain a larger number of negative samples for screening.

[0118] The obtained positive and negative samples are input into the anomaly detection model obtained from the previous training to obtain the probability of cheating behavior for each sample object. It should be noted that the anomaly detection model corresponding to the first training operation in the second stage is the model obtained from the first stage training.

[0119] For each sample, based on the sample's corresponding probability and multiple preset probability intervals, a probability interval corresponding to each sample is determined. The samples in each probability interval are considered as a subset of samples. Optionally, the probabilities can be divided using preset values; for example, using 0.1 as the preset value would yield 10 probability intervals. Furthermore, if the number of samples is large, more probability intervals can be obtained using smaller preset values.

[0120] In this embodiment of the disclosure, for each sample subset corresponding to a probability interval, the number of positive samples in the sample subset can be determined. Then, negative samples are selected from the sample subset at a ratio of 1:2 to the number of positive samples, where the 3rd ratio can be 1:2. All positive samples and the selected negative samples from each sample subset can be used as the training subset for the current training operation. Based on this training subset, the anomaly detection model is trained to obtain the training subset for the next training operation.

[0121] For ease of explanation, the model obtained from each training operation in the second stage can be called the fine-grained depth sequence model. When the model needs to be trained again, the fine-grained depth sequence model is used as the coarse-grained depth sequence model for the next training operation.

[0122] like Figure 7 As shown, Figure 7 This is a schematic diagram illustrating a training anomaly detection model provided in an embodiment of this disclosure. Training the anomaly detection model may include the following steps: S1. Randomly select negative and positive samples from the second training set to form a coarse training set. The number of negative samples should be N times that of positive samples, such as a 5:1 ratio. S2. Use the coarse training set to train a coarse deep sequence model. S3. Randomly select negative and positive samples from the second training set to form a candidate set. The number of negative samples can be much larger than that of positive samples, such as a 10:1 ratio. S4. Use the coarse deep sequence model to predict the candidate set and obtain the score for each sample in the candidate set. S5. Construct a fine-grained training set. S6. Use the fine-grained training set to train a fine-grained deep sequence model. S7. After obtaining the fine-grained deep sequence model, it can replace the coarse deep sequence model, and S3 to S6 can be repeated to obtain a more refined deep sequence model. An evaluation set can be set, and the appropriate number of iterations can be determined based on the accuracy of the fine-grained deep sequence model on the evaluation set.

[0123] The refined training set is the training subset in the second stage. For example... Figure 8 As shown, Figure 8 This is a schematic diagram of determining negative samples according to an embodiment of the present disclosure. The samples in the candidate dataset are divided into multiple categories according to the probability corresponding to each sample in the candidate dataset and a preset probability interval. Among them, samples whose corresponding probabilities belong to a probability interval are divided into one category. For each category, the number of positive samples and the number of negative samples in the category are determined. According to the number of positive samples and a third preset ratio (1:2), the target number of negative samples is determined. If the number of negative samples in the category is greater than the target number, the target number of negative samples are selected from the negative samples in the category as hard negative samples. If the number of negative samples is not greater than the target number, no processing is performed on the category.

[0124] Optionally, based on the number of positive samples in the candidate set, a fourth preset ratio (1:3) of negative samples can be selected from the second training set or other negative samples in the candidate set (excluding difficult negative samples) as reference negative samples. This makes the ratio of positive samples, difficult negative samples, and reference negative samples in the refined training set 1:2:3, meaning that the ratio of positive samples to negative samples in the second stage can be the same as the ratio in the first stage.

[0125] Optionally, when selecting the third proportion of negative samples, negative samples can be selected from the probability range where the probability exceeds the preset value, in order to obtain difficult negative samples that the model believes are more likely to exist but actually do not.

[0126] This embodiment of the disclosure, by screening positive and negative samples, can be used in scenarios where the distribution ratio of positive and negative samples differs greatly, and by mining difficult negative samples, the accuracy of model classification can be improved.

[0127] As an optional embodiment, for each sample object, the sequence of game actions of the sample object in a game is obtained in the following way: Obtain a preset set of operation behaviors, wherein the set of operation behaviors includes multiple game operation behaviors, and the multiple game operation behaviors include at least one first operation behavior, which is a game operation behavior related to obtaining game rewards; The game operation behavior data of the sample object in the game is obtained. Based on the game operation behavior data, the initial behavior sequence corresponding to the sample object and other game objects associated with each game operation behavior in the initial behavior sequence are obtained. The initial behavior sequence includes each game operation behavior belonging to the operation behavior set that occurs sequentially by the sample object in the game and the game parameters corresponding to each game operation behavior. Based on the other game objects associated with each game operation in the initial behavior sequence, the initial behavior sequence is divided into at least one subsequence, where each subsequence corresponds to one other game object; For each subsequence, if the first operation does not exist in the subsequence, then delete the subsequence; Based on the retained subsequences, the game operation behavior sequence of the sample object is determined.

[0128] In this embodiment of the disclosure, for all game operation behavior data of the sample object in the game, all game operation behavior data are arranged according to the timestamp of the occurrence of the game operation behavior to obtain a behavior sequence, which is used as the initial behavior sequence.

[0129] Optionally, each game action data can be processed into a unified preset data structure to improve the large model's ability to understand each game action data in the sequence.

[0130] In this embodiment of the disclosure, a set of game operation behaviors can be preset, which includes multiple game operation behaviors. Taking a shooting game as an example, the game operation behaviors can be firing, killing, aiming, etc., and the first operation behavior can be killing or knocking down. The specific game operation behaviors and the first operation behavior can be preset according to the specific game.

[0131] In this embodiment, game operation behavior can be the interaction behavior between the sample object and other game players. That is, each game operation behavior of the sample object corresponds to an interaction object with the sample object, and the game operation behavior data can include the identifier of the interaction object. It should be noted that the interaction object of the sample object with respect to the game operation behavior can be determined based on the game replay. Optionally, when there are multiple interaction objects of the sample object with respect to the game operation behavior, the most relevant interaction object can be determined from the multiple interaction objects as the target interaction object, and the target interaction object is recorded in the game operation data. For ease of description, the game operation behavior with multiple interaction objects is referred to as the second operation behavior. It should be noted that if the game operation behavior corresponds to only one interaction object, such as the kill behavior where the player kills only one enemy, then that interaction object is the target interaction object.

[0132] Taking shooting games as an example, the behavioral data corresponding to the firing action in game operations is the data corresponding to the sample object when performing the firing action in the game. Since there may be multiple other players in the game screen when the sample object fires, the identifiers and positions of other players in the game screen can be obtained through game replays. Therefore, the firing action can be a second operation action. It is necessary to determine the firing target (i.e., the most relevant interaction object) corresponding to the firing action from each game player. Optionally, the target interaction object corresponding to the second operation action can be determined based on the target interaction object of the adjacent game operation actions. Furthermore, different weights can be set for different game operation actions, and the target interaction object of the second operation action can be determined based on the weights of adjacent game operation actions and the target interaction object.

[0133] like Figure 9 As shown, Figure 9 This is a schematic diagram illustrating the determination of an interaction object according to an embodiment of the present disclosure. The target interaction object corresponding to the firing action can be determined through the following process: S1. Identify the enemy with the smallest angle to the observed enemy when firing, as shown in candidate 2 in the image. Players usually fire straight ahead, so the angle between the target and the observed enemy will be relatively small; S2. Using this enemy as the center, select enemies within an angle range of N degrees as candidates. For example, in the illustration, N is set to 5, and enemy 1 and enemy 2 are selected as candidates. Battlefield situations are complex, and the enemy with the smallest angle may not be the actual firing target. Therefore, all enemies within a certain angle range are selected as candidates. S3. Traverse the player's behavior sequence and calculate the player's behavior weight towards each candidate enemy before and after firing; S4. Sum the action weights of each candidate enemy and select the candidate enemy with the highest weight as the target to fire at that timestamp. In the figure, the first target to fire is assigned to candidate 2.

[0134] like Figure 10 As shown, Figure 10 This is a schematic diagram illustrating the determination of behavior weights according to an embodiment of this disclosure.

[0135] When traversing the behavior sequence in S3, the weight of the behavior at each timestamp can be propagated to nearby timestamps in the following manner.

[0136] S31. Determine the time window, such as selecting 2 seconds before and after each action as the window; S32. Propagate the weight of the action at the current timestamp to nearby timestamps. The action factor measures the importance of different actions. Specific weights can be determined based on the specific game settings. Taking a game as an example, the first action could be a kill or attack, used to obtain game rewards, and is more important than other actions; its action factor weight can be set to 3. The impact of find / nofind / aim is small and can be set to 1. Furthermore, the further away from the current action, the smaller the time decay factor. For example, within the same second, the time decay factor is 3. One second before and after, the time decay factor is 2, decreasing with increasing distance. Optionally, two identical second actions... In this embodiment of the disclosure, the obtained behavioral data of undetected behaviors can also be filtered. It's important to understand that a common behavior of players using wallhacks is moving towards undetected enemies. In a normal game, if enemies are obscured by obstacles, the observed player cannot see them. However, because of a wallhack, the observed player can see these enemies and thus moves towards them. However, it's not accurate to simply conclude that a player is using a wallhack based on the continuously decreasing distance between the observed player and undetected enemies. This is because a normal player might also be moving towards undetected enemies.

[0137] like Figure 11 As shown, Figure 11 This diagram illustrates a method for determining undiscovered behavior according to an embodiment of this disclosure. In this embodiment, the definition of undiscovered enemies can be restricted, recording only enemies within an N-degree range of the observed player (e.g., 5 degrees in the diagram). Furthermore, the enemy must remain within this range for M seconds to be considered as moving towards an undiscovered enemy. In the diagram, M is set to 4, and the observed player is determined to be moving towards undiscovered candidate enemy 1. At this point, an undiscovered behavior is obtained, and the interaction object of this undiscovered behavior is candidate enemy 1.

[0138] After processing the data of each game operation behavior, all behavior data can be processed into a unified preset format, such as timestamp, behavior name, behavior object ID (interaction object), distance|acceleration, [item] (optional). For example, "140, kill, 0, 50, SCAR-L assault rifle" means that at 140 seconds, the target 0 at a distance of 50 meters was killed with a SCAR-L assault rifle. By processing the behavior data into a unified format, the feature extraction deviation caused by the data format disorder can be avoided.

[0139] In this embodiment of the disclosure, after acquiring the game operation behavior data of the sample in a game match, the game operation behavior data can be arranged according to the time sequence of the behavior to obtain an initial behavior sequence, and other game objects (i.e., target interaction objects) associated with each game operation behavior in the initial behavior sequence can be determined. The initial behavior sequence includes each game operation behavior belonging to the set of operation behaviors that occurs sequentially in the game match, and the game parameters corresponding to each game operation behavior. These game parameters can be timestamps, interaction object IDs, and game-related descriptive information, such as the distance between players and the items used by players, as specified in the preset format.

[0140] After identifying the other game objects associated with each game operation in the initial behavior sequence, the initial behavior sequence can be divided into at least one subsequence according to the game object corresponding to the behavior, so that each subsequence corresponds to another game object.

[0141] For each subsequence corresponding to other game objects, if the first action does not exist in the subsequence, then the subsequence is deleted. It should be understood that the first action is the action that can generate game rewards in the game. Taking shooting games as an example, the first action can be the action of killing or knocking down. After killing other game objects, you can get the equipment or virtual gold rewards of other game objects. This is often the reason why players use cheats. Therefore, retaining the subsequence of the first action is beneficial to reduce the sequence length and reduce the interference of large models on irrelevant data.

[0142] Based on the retained sub-sequences, a game operation behavior sequence for the sample object is obtained. Optionally, each sub-sequence can be used as a game operation behavior sequence for the sample object; that is, this embodiment of the disclosure may include at least one game operation behavior sequence.

[0143] In this embodiment of the disclosure, by obtaining the subsequences of the sample object with respect to each other game object, the large-scale anomaly detection model or inference model can analyze the interaction relationship between the sample object and a certain game object, thereby obtaining more accurate cheating detection behavior.

[0144] As an optional embodiment, determining the game operation behavior sequence of the sample object based on the retained sub-sequences includes: For each retained subsequence, if the time difference between the occurrence of two adjacent game actions in the subsequence is greater than a preset time interval, the subsequence is divided between the two adjacent game actions to obtain multiple sequence segments of the subsequence. For each retained subsequence, if there are sequence segments in each sequence fragment of the subsequence that do not include the first operation, then delete the sequence segments in the subsequence that do not include the first operation and merge the retained sequence segments to obtain the updated subsequence. Based on the updated subsequences, the game operation behavior sequence of the sample object is obtained.

[0145] In this embodiment, for each retained subsequence, each subsequence corresponds to another game object. In a game, the sample object and another game object may interact once at regular intervals. To obtain each interaction, the subsequence corresponding to the other game object is segmented according to a preset time interval. That is, if the interval between two adjacent game operations in a subsequence is greater than the preset time interval, these two game operations can be segmented. This operation can obtain a sequence fragment. It should be noted that if there is no interval greater than the preset time interval between the game operations in a subsequence, then that subsequence is considered as a sequence fragment.

[0146] Optionally, the sliding window technique can be used to segment the subsequence. By dividing the subsequence into multiple sequence segments, it is possible to preserve the local continuous operations of the sample object in the game (such as continuous shooting) while isolating non-coherent actions (such as pausing after moving), which is more adaptable to the dynamic nature of the combat rhythm than fixed-length segmentation.

[0147] In this embodiment, for each retained subsequence, it is determined whether a first operation behavior exists in each sequence segment corresponding to that subsequence, in order to filter out the sequence segments used for cheat detection and filter out the sequence segments that affect cheat detection, so that the model's attention is focused on the core combat interaction and the interference of invalid data is reduced. By concatenating the retained sequence segments, a more refined subsequence of the sample object with respect to other sample objects can be obtained, and each updated subsequence is used as a game operation behavior sequence of that sample object.

[0148] As an optional implementation, for subsequences of other objects, they can also be segmented according to time intervals before determining whether a first operation exists in the sequence segment, such as... Figure 12 As shown, Figure 12This is a schematic diagram illustrating a method for determining a sequence of game operation behaviors according to an embodiment of this disclosure. To further reduce the difficulty of judging large models, the behavior sequence can be segmented according to the following process: S1. Sort all behaviors according to time to obtain the complete behavioral sequence of the observed person; S2. Based on the behavior object, divide the entire sequence into N sequences, where N is the number of different objects; S3. Set a time interval T seconds to divide each sequence into different behavior segments, as shown in the example where T is 2 seconds; S4. Remove behavior segments that do not contain attack or kill actions.

[0149] Finally, by concatenating the behaviors within each behavior segment using the "|" operator, a sequence of behaviors of the observed player is obtained. Below are three behavior sequences of a particular observed player: 94,find,0,7|94,aim,0,5|95,find,0,4|95,fire,0,4|95,attack,0,3,SCAR-L assault rifle; 148, aim, 2, 36 | 148, fire, 2, 36 | 149, find, 2, 35 | 149, fire, 2, 35 | 150, attack, 2, 34, SCAR-L assault rifle hits head; 472,nofind,7,49|473,nofind,7,42|474,nofind,7,27|475,nofind,7,24|476,find,7,2|478,fire,7,4|479,attack,7,4,AKM assault rifle hits head.

[0150] The prompt words are output to the anomaly detection model or the reasoning model. The final answer output by the model can be in the following form: Conclusion: Cheating Reason: At 148 seconds, the player made two 36-meter aim and fire maneuvers before target 2 was first found, which meets the rule 2 for wallhack cheating. At 472 seconds, the player continuously moved towards the undetected player 7 more than 3 times, which meets the rule 3 for wallhack cheating.

[0151] In this embodiment of the disclosure, multiple game operation behavior sequences are obtained according to the interaction object and whether the target game operation behavior exists. Each game operation behavior sequence corresponds to an interaction object of the sample object, so that the large model can obtain the interaction process between the sample object and each interaction object, which is beneficial for cheat detection based on the interaction process.

[0152] As an optional embodiment of this disclosure, for each training sample, the game operation behavior sequence in the training sample includes multiple game operation behaviors and game parameters corresponding to each game operation behavior. The training sample also includes game screens with timestamps corresponding to each game operation behavior in the game game corresponding to the training sample. Wherein, the game operation behavior in the game operation behavior sequence of each training sample is the game operation behavior in the preset operation behavior set; The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence of an object in the input model, the game screen corresponding to each game operation behavior in the game operation behavior sequence, and the discrimination strategy set to determine whether the object has cheating behavior, to give the reasoning logic for obtaining the discrimination result, and when the discrimination result is that cheating behavior exists, to give the time information of the occurrence of cheating behavior in the game.

[0153] In this embodiment, the game log data of each game object in the game can be used to replay the game and obtain a replay video. A screenshot of the time information corresponding to each game operation in the replay video can be taken to obtain the game screen (i.e., video screenshot) corresponding to the time information, which serves as the associated game screen for the game operation. When inputting the first prompt word and the discrimination strategy set into the anomaly detection model, the associated game screen and its corresponding timestamp can be input simultaneously, so that the anomaly detection model can refer to the input game screen and corresponding timestamp to obtain the discrimination result and discrimination approach. Optionally, when inputting the associated game screen, it can include an identifier for the associated game screen, which may include a timestamp and the name or description of the game operation corresponding to the associated game screen.

[0154] When the input model data includes related game footage, the first prompt word is also used to prompt the large model to reference the input model's game footage and event points in the game replay, outputting the judgment result and reasoning logic regarding whether the game object exhibits cheating behavior. It can also be required that, when the judgment result indicates cheating behavior exists, the reasoning logic should include the timestamp of the cheating behavior. By outputting the timestamp of the cheating behavior, screenshots can be taken from the replay video based on the timestamp, presenting a visual explanation of the cheating behavior.

[0155] It is important to understand that if the labels of the training anomaly detection model are obtained by using a large inference model, then the second prompt word can also be set to include the timestamp of the cheating behavior in the reasoning logic if cheating behavior is suspected, thus maintaining the consistency of the reasoning logic structure.

[0156] Taking shooting games as an example, the first prompt word could be as follows: ## Role You are a security expert in the gaming field. I will provide you with a player's behavioral sequence and screenshots from a single game. Please read each line of input data and each screenshot completely, and make a judgment based on the provided rules and the screenshots. Finally, simply state whether cheating occurred, and then provide your reasons for each conclusion. Please... <answer>< / answer> The conclusion and reasons are given in the middle.

[0157] ## background 1. Each player action is concatenated using |, and different sequences are represented by […]. (Newline character) concatenation; 2. The format for each action is: Time, Action, Object, Distance|Acceleration, [Item] (if present); 4. In the game, you can see enemies within 400 meters, hear enemy script sounds within 40 meters, and see enemy footsteps within 20 meters. 5. "Find" refers to enemies visible within the player's field of vision. Once the "find" action occurs, it is assumed that the player knows the enemy's location. 6. "Nofind" refers to enemies that are not visible to normal players but can be seen by players using wallhacks. 7. Aim refers to the player aiming at an invisible enemy. It is more reasonable for "aim" or "close-range aim" to appear after "find"; 8. "Fire" refers to the player firing a shot in the direction of the target. 9. "Attack" refers to knocking down a target, "kill" refers to killing a target, and "crosshair" refers to moving the crosshair. 10. The screenshot is taken within 2 seconds before and after the player knocks down / kills an enemy; ## Output Format The Xth sequence Describe player actions based on the sequence. Analyze player actions based on rules ... <answer> in conclusion:... Reason: At xxx seconds,... < / answer> ## Input As an optional embodiment, audio data corresponding to game matches can also be obtained, and audio data can be extracted according to the time period corresponding to the game operation sequence to obtain audio segments. The audio segments are then input into the anomaly detection model, so that the anomaly detection model can refer to the audio segments to perform cheat detection.

[0158] Optionally, the large anomaly detection model in this embodiment may be a large language model with at least one of image recognition capability or audio recognition capability.

[0159] Optionally, when obtaining clue words through the inference model, at least one of the game screen or audio clip can be used as input, so that the inference model can refer to the game screen or audio clip to perform cheat detection.

[0160] When the input includes an audio segment, the user can enter the name of the audio segment. This name can include an identifier corresponding to the audio segment, which can include the corresponding timestamp (start time and end time) and the name or description of the corresponding game operation behavior data.

[0161] In this embodiment of the disclosure, a large model with a large number of model parameters can be used as the inference model. To improve the efficiency of determining the label, only the sequence of game operation behaviors can be used as the model input, and the corresponding second prompt word can be as follows: ## Role You are a security expert in the gaming field. I will provide you with a sequence of a player's actions in a single game. Please read each line of input data completely and make your judgment based on the provided rules. Finally, simply state whether cheating occurred, followed by your reasons. Please... <answer>< / answer> The conclusion and reasons are given in the middle.

[0162] ## background 1. Each player action is concatenated using |, and different sequences are represented by […]. (Newline character) concatenation; 2. The format for each action is: Time, Action, Object, Distance|Acceleration, [Props]; 4. In the game, you can see enemies within 400 meters, hear enemy script sounds within 40 meters, and see enemy footsteps within 20 meters. 5. "Find" refers to enemies visible within the player's field of vision. Once the "find" action occurs, it is assumed that the player knows the enemy's location. 6. "Nofind" refers to enemies that are not visible to normal players but can be seen by players using wallhacks. 7. Aim refers to the player aiming at an invisible enemy. It is more reasonable for "aim" or "close-range aim" to appear after "find"; 8. "Fire" refers to the player firing a shot in the direction of the target. 9. "Attack" refers to knocking down a target, "kill" refers to killing a target, and "crosshair" refers to moving the crosshair. ## Output Format The Xth sequence Describe player actions based on the sequence. Analyze player actions based on rules ... <answer> in conclusion:... Reason: At xxx seconds,... < / answer> ## Input like Figure 13 As shown, Figure 13 This diagram illustrates a method for training a large-scale anomaly detection model according to an embodiment of this disclosure. By outputting a sequence of game actions to a large-scale inference model, the analysis results and reasoning logic output by the inference model are obtained. This reasoning logic is then input into a conventional large-scale model, which can be a model with generalization capabilities. This conventional large-scale model is used as a simplified model. Based on the generalization capabilities of the simplified model, a simplified analysis logic is obtained, which serves as the simplified logic. The analysis results and the simplified logic are used as labels for training samples. By inputting the game action sequence and video screenshots into the anomaly detection model, the model can refer to the video screenshots to obtain the discrimination results and reasoning logic output by the anomaly detection model. Based on the differences between the analysis results and the discrimination results, and the differences between the simplified logic and the reasoning logic, the training loss is calculated. The model parameters of the anomaly detection model are adjusted based on the training loss to train the large-scale anomaly detection model.

[0163] like Figure 14 As shown, Figure 14 This is a schematic diagram illustrating another method for training a large-scale anomaly detection model provided in this embodiment. The training process of the large-scale model may include training the anomaly detection model, i.e., training the deep sequence model shown in the diagram. Using the trained deep sequence model, suspicious games are recalled. Based on the behavioral sequences of sample objects regarding suspicious games, the analytical approach of the reasoning large-scale model is obtained. Based on the simplified large-scale model, a simplified approach is obtained, and a multimodal risk control large-scale model (i.e., the anomaly detection large-scale model in this embodiment) is trained. This enables the multimodal risk control large-scale model to, in practical applications, obtain the reason for cheating and the screenshot of cheating based on the input behavioral sequence and video screenshot.

[0164] The large model training method provided in this disclosure can be applied to game cheat detection scenarios. It can detect game cheats based on the trained anomaly detection large model. Taking a first-person shooter game as an example, the large model training method provided in this disclosure can include the following parts: Part 1: Training the Anomaly Detection Model S301. Obtain the second training set, which includes multiple positive samples and multiple negative samples. The positive samples are game-related data of game matches in which players who were banned in the past engaged in cheating. The negative samples are game-related data of any game match in the game pool for players who were not banned. The game-related data for shooting games can include player information, game payment information, activity level, device environment, tool usage in game matches, indicator values ​​of game evaluation indicators, and sequence of indicator values ​​of game evaluation indicators in historical matches. S302. Perform multiple training operations on the anomaly detection model in the first stage: Select positive and negative samples with a ratio of 1:5 from the second training set as the training subset for the current training operation. Based on the training subset, train the anomaly detection model to obtain the anomaly detection model for the next training operation. S303. Perform multiple training operations on the anomaly detection model in the second stage: S3031. Select positive and negative samples from the second training set at a ratio of 1:10. Input each selected sample into the anomaly detection model targeted by the current training operation to obtain the probability that the sample object corresponding to each sample is an object with cheating behavior. S3032. For each selected sample, determine the probability interval to which each sample belongs according to the probability corresponding to each sample and the preset multiple probability intervals, and take the samples in each probability interval as a sample subset. S3033. For each sample subset, based on the number of positive samples in the sample subset, select negative samples with a ratio of the number of positive samples to the number of positive samples of the third ratio (1:2); S3034. Determine the number of all positive samples in each sample subset, and obtain negative samples of the fourth ratio (1:3) from the second training set as reference negative samples. S3035. Take all positive samples in each sample subset, as well as the negative samples and reference negative samples selected from each sample subset, as the training subset for the current training operation. Use this training subset to train the anomaly detection model and obtain the anomaly detection model for the next training operation.

[0165] Part Two: Obtaining Training Samples for a Large-Scale Anomaly Detection Model S304. Obtain game-related data for each of the multiple game objects; S305. For each game object, input the game-related data of the game object into the trained anomaly detection model, and obtain the probability that the game object has cheating behavior in the corresponding game match through the anomaly detection model. S306. For each game object, if the probability corresponding to the game object is greater than or equal to a preset threshold, then the game object is used as a sample object. S307. Obtain the game log data of each game object in the game match corresponding to the sample object, where each game object includes the sample object. S308. Obtain a preset set of operation behaviors. In shooting games, the game operation behaviors may include firing behavior, aiming behavior, knockdown behavior, etc. S309. Based on the game log data of each game object, replay the game match and obtain the game operation behavior data of the sample object in the game match based on the replay video; for example, the behavior data of firing behavior is firing behavior (fire): timestamp, identification of the firing target, distance from the observed player, and angle. S310. Based on the game operation behavior data, obtain the initial behavior sequence corresponding to the sample object, and other game objects associated with each game operation behavior in the initial behavior sequence; S311. Based on the other game objects associated with each game operation in the initial behavior sequence, divide the initial behavior sequence into at least one subsequence, wherein each subsequence corresponds to one other game object; S312. For each subsequence, if there is no game operation behavior for obtaining game rewards in the set of operation behaviors in the subsequence, then delete the subsequence. S313. Based on the retained subsequences, determine the game operation behavior sequence of the sample object.

[0166] Part Three: Obtaining Labels for Training Samples of the Large-Scale Anomaly Detection Model S314. Obtain the second prompt word, which is used to instruct the reasoning model to analyze whether the object has cheating behavior based on the game operation behavior sequence and discrimination strategy set of an object in the input model and to provide an analysis approach. S315. Input the second prompt word, the game operation behavior sequence in the training sample, and the discrimination strategy set into the reasoning model, and obtain the analysis result of whether the sample object corresponding to the training sample has cheating behavior through the reasoning model, as well as the analysis idea of ​​obtaining the analysis result. S316. Obtain the preset third prompt word, which is used to instruct the simplified large model to summarize the content of the input model; S317. Input the third prompt word and the analysis ideas corresponding to the training sample into the simplified large model. The simplified large model summarizes the analysis ideas to obtain the reasoning ideas corresponding to the training sample. S318. The analysis result corresponding to the training sample is used as the reference discrimination result corresponding to the training sample, and the reasoning idea corresponding to the training sample obtained through the simplified large model is used as the reference reasoning idea corresponding to the training sample. S319. Use the reference discrimination results and reference reasoning ideas corresponding to the training samples as the labels of the training samples; Part Four: Training a Large-Scale Anomaly Detection Model S320. Construct the first training set based on the obtained training samples and their labels; S321. Obtain a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. S322. Based on the first training set and the first prompt word, perform multiple rounds of iterative training on the large anomaly detection model to be trained; wherein each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. Based on the differences between the labels of each training sample and the corresponding model output, the model parameters of the large model are adjusted.

[0167] This disclosure also provides a cheating detection method, such as... Figure 15 As shown, the method includes: S401. Obtain the sequence of game operation behaviors of the object to be detected in the target game; S402. Obtain the preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. S403. Input the first prompt word, the game operation behavior sequence, and the discrimination strategy set into the anomaly detection model to obtain the model output of the anomaly detection model. The model output includes the discrimination result corresponding to the object to be detected and the reasoning logic of the judgment result.

[0168] In this embodiment of the disclosure, cheating detection can be performed using an anomaly detection large model obtained based on any embodiment of the large model training method described above. The method for obtaining the game operation behavior sequence of the target object in the target game can refer to the method for obtaining the game operation behavior sequence of the sample object in a game game described above.

[0169] Optionally, obtaining the sequence of game actions of the object to be detected in the target game may include: The game-related information of the target object regarding the target game is input into the trained anomaly detection model. The anomaly detection model obtains the probability that the game object has cheated in the corresponding game. If the probability is greater than a preset threshold, the game operation behavior sequence of the target object in the target game is obtained.

[0170] like Figure 16 As shown, Figure 16This is a schematic diagram of a cheat detection method provided in an embodiment of this disclosure. For a game player, after engaging in an abnormal game, game-related data is generated for that player. This data is input into an anomaly detection model (i.e., the deep sequence model in the diagram). Based on the cheating probability output by the deep sequence model, the player is determined to be either a normal player or a suspicious player. If the player is suspected, their game log data is obtained. Game replays are performed based on this log data, and game operation behavior data is collected and mined to obtain a data operation behavior sequence. This sequence is input into a large-scale anomaly detection model, which performs cheat detection. The model outputs a judgment result and reasoning logic. Based on the judgment result, the game target is determined to be either a normal player or a cheater. If the player is cheating, their account can be banned, and the reasoning logic is sent to the player's terminal as the reason for the ban. Optionally, Figure 16 The large anomaly detection model in the text can also be the large inference model mentioned earlier.

[0171] Optionally, at least one of the game footage or audio clips can be input into the anomaly detection model. The specific content of the first prompt word for obtaining the game footage and audio clips can be found in the previous explanation.

[0172] like Figure 17 As shown, Figure 17 This diagram illustrates a cheat detection method provided in an embodiment of this disclosure. In this diagram, the game screen is used as the input to an anomaly detection big data model. Since the input to the big data model includes multimodal data such as game operation behavior sequences and game screen data, the anomaly detection big data model can also be called a multi-model risk control big data model.

[0173] like Figure 18 As shown, Figure 18 This diagram illustrates a cheat detection method provided in an embodiment of this disclosure. In this embodiment, multimodal data of a player during a game can be acquired, including at least one of audio data, text data, or images. The text data can be at least one of game-related data and game operation behavior sequences. The multimodal data can be processed based on an anomaly detection model or a large anomaly detection model. The anomaly detection model is the deep learning model shown in the diagram, and the large anomaly detection model is the large model shown in the diagram. The method of using the large model for processing has been described above. When processing multimodal data using an anomaly detection model, feature extraction can be performed on the multimodal data, and classification can be performed based on the feature extraction results to obtain the detection result.

[0174] The cheat detection method provided in this disclosure can be applied to cheat detection scenarios in games. Taking a shooting game as an example, the cheat detection method may include the following steps: S501. Obtain the detection information of the target object, which includes the target object's personal attribute information about the target game (the player's game age and other attribute information, the player's payment information, and the device environment used by the player), the game attribute information generated after the target object plays a game of the target game, and the index value sequence of the target object's historical game performance evaluation index. The game attribute information includes the index value of the game performance evaluation index and the physical parameter information of the tools used during the game. S502. Input the detection information of the object to be detected into the pre-trained anomaly detection model to obtain the probability output by the anomaly detection model that the object to be detected has cheating behavior when playing the game. S503. If the probability is less than the preset threshold, determine that the object to be detected is operating normally when playing the game; if the probability is greater than the preset value, execute S504-S511. S504. Based on the game log data of each game object, replay the game match and obtain the game operation behavior data of the preset game operation behavior of the object to be detected in the game match according to the replay video; for example, the behavior data of firing behavior is firing behavior (fire): timestamp, identification of the firing target, distance from the observed player, and angle. S505. Based on the game operation behavior data, obtain the initial behavior sequence corresponding to the object to be detected, and other game objects associated with each game operation behavior in the initial behavior sequence; S506. Based on the other game objects associated with each game operation in the initial behavior sequence, divide the initial behavior sequence into at least one subsequence, wherein each subsequence corresponds to one other game object; S507. For each subsequence, if there is no game operation behavior for obtaining game rewards in the set of operation behaviors in the subsequence, then delete the subsequence. S508. Based on the retained sub-sequences, determine the game operation behavior sequence of the object to be detected.

[0175] S509. Determine the timestamp corresponding to each game operation based on the replay video, and extract the video frames of the timestamp and the preset number of frames before and after the timestamp from the replay video to obtain the game screen. S510. Input the game operation sequence and game screen into a pre-trained anomaly detection model, obtain the recognition result output by the anomaly detection model, and the logical approach to obtaining the judgment result. S511. If the judgment result indicates that the object to be detected has cheating behavior, the logic includes the time information of the time when the object to be detected has cheating behavior. The video frame with the time and the preset number of frames before and after the time information is extracted from the playback video to obtain the game screen.

[0176] This disclosure provides a training apparatus for a large model, such as... Figure 19 As shown, the training device for this large model may include: a training set acquisition module 801, a prompt word acquisition module 802, and a model training module 803, wherein, The training set acquisition module 801 is used to acquire a first training set, which includes multiple training samples with labels. Each training sample includes a sequence of game operation behaviors of a sample object in a game. The label of each training sample includes a reference judgment result of whether the sample object corresponding to the training sample has cheating behavior in the game, and a reference reasoning idea for obtaining the reference judgment result. The prompt word acquisition module 802 is used to acquire a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. The model training module 803 is used to perform multiple rounds of iterative training on the large anomaly detection model to be trained based on the first training set and the prompt word; wherein each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. Based on the differences between the labels of each training sample and the corresponding model output, the model parameters of the large model are adjusted.

[0177] This disclosure provides a cheating detection device, such as... Figure 20 As shown, the cheating detection device may include: a first acquisition module 901, a second acquisition module 902, and a detection module 903, wherein, The first acquisition module 901 is used to acquire the sequence of game operation behaviors of the object to be detected in the target game. The second acquisition module 902 is used to acquire a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. The detection module 903 is used to input the first prompt word, the game operation behavior sequence and the discrimination strategy set into the anomaly detection big model to obtain the model output of the anomaly detection big model. The model output includes the discrimination result corresponding to the object to be detected and the reasoning logic of the judgment result. The anomaly detection big model is trained using any embodiment of the big model training method.

[0178] The apparatus of this disclosure embodiment can execute the method provided in this disclosure embodiment, and its implementation principle is similar, and it has corresponding technical effects. The actions performed by each module in the apparatus of each embodiment of this disclosure correspond to the steps in the method of each embodiment of this disclosure. For a detailed functional description of each module of the apparatus, please refer to the description in the corresponding method shown above, and it will not be repeated here.

[0179] This disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the method provided in any optional embodiment of this disclosure. Compared with the prior art, it can achieve the following: by acquiring the game operation behavior of multiple sample objects in a game, the judgment result of whether the sample objects have cheating behavior in the corresponding game, and the reason for determining whether cheating behavior exists, training samples and labels for training the model are obtained. A first training set is constructed using the training samples and labels, and the model is trained based on the first training set. By acquiring a preset first prompt word and introducing a discrimination strategy set, it is beneficial to guide the large language model to analyze the game operation behavior according to the discrimination strategy set based on the first prompt word, and obtain the discrimination result and reasoning idea. By using the large language model as the initial model to be trained, it is possible to obtain an anomaly detection large model with high cheating detection accuracy and interpretable discrimination results based on the text understanding and reasoning ability of the large language model.

[0180] In one alternative embodiment, an electronic device is provided, such as Figure 21 As shown, Figure 21 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this disclosure.

[0181] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with this disclosure. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0182] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 21 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0183] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0184] The memory 4003 is used to store computer programs that execute embodiments of the present disclosure, and is controlled by the processor 4001 to execute them. The processor 4001 is used to execute the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0185] The electronic devices include, but are not limited to, terminals and servers. In some embodiments, the terminal may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, in-vehicle terminal, or other terminal that can serve as a game application client, but is not limited thereto. Those skilled in the art will understand that the number of the aforementioned terminals may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This disclosure does not limit the number or type of terminals.

[0186] In some embodiments, the server may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0187] This disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0188] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0189] It should be understood that although arrows indicate various operation steps in the flowcharts of the embodiments of this disclosure, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of the embodiments of this disclosure, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured as required, and the embodiments of this disclosure do not limit this.

[0190] The above description is only an optional implementation method for some implementation scenarios of this disclosure. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this disclosure without departing from the technical concept of this disclosure also fall within the protection scope of the embodiments of this disclosure.

Claims

1. A training method for a large model, characterized in that, include: Obtain a first training set, which includes multiple labeled training samples. Each training sample includes a sequence of game operation behaviors of a sample object in a game. The label of each training sample includes a reference judgment result of whether the sample object corresponding to the training sample has cheating behavior in the game, and a reference reasoning idea for obtaining the reference judgment result. Obtain a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. Based on the first training set and the first prompt word, the large-scale anomaly detection model to be trained undergoes multiple rounds of iterative training; each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. The model parameters of the large model are adjusted according to the differences between the labels of each training sample and the corresponding model output.

2. The method according to claim 1, characterized in that, For each training sample in the first training set, the label of the training sample is obtained in the following way: Obtain the second prompt word, which is used to instruct the large inference model to analyze whether the object has cheating behavior based on the game operation behavior sequence and discrimination strategy set of an object in the input model and to provide an analysis approach. The second prompt word, the game operation behavior sequence in the training sample, and the discrimination strategy set are input into the reasoning model. The reasoning model is used to obtain the analysis results of whether the sample object corresponding to the training sample has cheating behavior, as well as the analysis ideas for obtaining the analysis results. Based on the analysis results and analysis approach corresponding to the training sample, the label of the training sample is obtained.

3. The method according to claim 2, characterized in that, The step of obtaining the label of the training sample based on the analysis results and analysis approach corresponding to the training sample includes: Obtain a preset third prompt word, which is used to instruct the simplified large model to summarize the content of the input model; The third prompt word and the analysis approach corresponding to the training sample are input into the simplified large model. The simplified large model summarizes the analysis approach to obtain the reasoning approach corresponding to the training sample. The analysis result corresponding to the training sample is used as the reference discrimination result corresponding to the training sample, and the reasoning idea corresponding to the training sample obtained through the simplified large model is used as the reference reasoning idea corresponding to the training sample.

4. The method according to claim 1, characterized in that, The acquisition of the first training set includes: Acquire game-related data for each of the multiple game objects. The game-related data for each game object includes the object attribute information of the game object in the game application, and the game-related data of the game object in a game match. For each game object, the game-related data of the game object is input into a trained anomaly detection model, and the probability that the game object has cheating behavior in the corresponding game is obtained through the anomaly detection model; For each game object, if the probability corresponding to the game object is greater than or equal to a preset threshold, then the game object is used as a sample object, and the game operation behavior sequence of the game object in the corresponding game match is obtained.

5. The method according to claim 1, characterized in that, For each of the sample objects, the sequence of game actions performed by that sample object in a single game session is obtained as follows: Obtain a preset set of operation behaviors, wherein the set of operation behaviors includes multiple game operation behaviors, and the multiple game operation behaviors include at least one first operation behavior, wherein the first operation behavior is a game operation behavior related to obtaining game rewards; The game operation behavior data of the sample object in the game is obtained. Based on the game operation behavior data, the initial behavior sequence corresponding to the sample object and other game objects associated with each game operation behavior in the initial behavior sequence are obtained. The initial behavior sequence includes each game operation behavior belonging to the operation behavior set that occurs sequentially by the sample object in the game and the game parameters corresponding to each game operation behavior. Based on the other game objects associated with each game operation in the initial behavior sequence, the initial behavior sequence is divided into at least one subsequence, wherein each subsequence corresponds to one other game object; For each subsequence, if the first operation does not exist in the subsequence, then the subsequence is deleted; Based on the retained subsequences, the game operation behavior sequence of the sample object is determined.

6. The method according to claim 5, characterized in that, The sequence of game operation behaviors for the sample object, determined based on the retained sub-sequences, includes: For each retained subsequence, if the time difference between the occurrence of two adjacent game actions in the subsequence is greater than a preset time interval, the subsequence is divided between the two adjacent game actions to obtain multiple sequence segments of the subsequence. For each retained subsequence, if there are sequence segments in each sequence fragment of the subsequence that do not include the first operation, then delete the sequence segments in the subsequence that do not include the first operation and merge the retained sequence segments to obtain the updated subsequence. Based on the updated subsequences, the game operation behavior sequence of the sample object is obtained.

7. The method according to any one of claims 1 to 6, characterized in that, For each of the sample objects, the sequence of game actions performed by that sample object in a single game session is obtained as follows: Obtain game log data for each game object in the game, where each game object includes the sample object; By replaying the game logs of each game object in the game, the game operation behavior data of the sample object in the game is obtained; Based on the game operation behavior data of the sample object in the game, the sequence of game operation behavior of the sample object in the game is obtained.

8. The method according to claim 4, characterized in that, The trained anomaly detection model is obtained through the following steps: Obtain a second training set, which includes multiple positive samples and multiple negative samples. The positive samples include game-related data of a game in which the sample object has cheating behavior, and the negative samples include game-related data of a game in which the sample object has cheating behavior. The sample object corresponding to the positive sample is the object that has cheating behavior, and the sample object corresponding to the negative sample is the object that does not have cheating behavior. Based on the second training set, perform multiple training operations on the anomaly detection model to be trained to obtain the trained anomaly detection model.

9. The method according to claim 8, characterized in that, The multiple training operations include multiple training operations in the first phase and multiple training operations in the second phase. Each training operation in the first phase includes: Select positive and negative samples in the second training set at a ratio of the first ratio as the training subset for the current training operation. Based on the training subset, train the anomaly detection model to obtain the anomaly detection model for the next training operation. Each training operation in the second phase includes: Select positive and negative samples in the second training set at a ratio of 2, and input each selected sample into the anomaly detection model targeted by the current training operation to obtain the probability that the sample object corresponding to each sample is an object with cheating behavior. For each selected sample, the probability interval to which each sample belongs is determined according to the probability corresponding to each sample and multiple preset probability intervals, and the samples in each probability interval are taken as a sample subset. For each of the sample subsets, a negative sample is selected based on the number of positive samples in that subset, with a ratio of the number of positive samples to the third ratio. All positive samples in each sample subset and the negative samples selected from each sample subset are used as the training subset for the current training operation. The anomaly detection model is trained using the training subset to obtain the anomaly detection model for the next training operation. The third ratio is greater than the second ratio and the third ratio is greater than the first ratio.

10. The method according to claim 1, characterized in that, For each training sample, the sequence of game operation behaviors in the training sample includes multiple game operation behaviors and game parameters corresponding to each game operation behavior. The training sample also includes game screens with timestamps corresponding to each game operation behavior in the game match corresponding to the training sample. Wherein, the game operation behavior in the game operation behavior sequence of each training sample is the game operation behavior in the preset operation behavior set; The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence of an object in the input model, the game screen corresponding to each game operation behavior in the game operation behavior sequence, and the discrimination strategy set to determine whether the object has cheating behavior, to give the reasoning logic for obtaining the discrimination result, and when the discrimination result is that cheating behavior exists, to give the time information of the occurrence of cheating behavior in the game.

11. A cheating detection method, characterized in that, include: Obtain the sequence of game operation behaviors of the object to be detected in the target game; Obtain a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. The first prompt word, the game operation behavior sequence, and the discrimination strategy set are input into the anomaly detection model to obtain the model output of the anomaly detection model. The model output includes the discrimination result corresponding to the object to be detected and the reasoning logic of the discrimination result. The anomaly detection model is trained using the method described in any one of claims 1-10.

12. A training device for a large model, characterized in that, include: The training set acquisition module is used to acquire a first training set, which includes multiple training samples with labels. Each training sample includes a sequence of game operation behaviors of a sample object in a game. The label of each training sample includes a reference judgment result of whether the sample object corresponding to the training sample has cheating behavior in the game and a reference reasoning idea for obtaining the reference judgment result. The prompt word acquisition module is used to acquire a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object in the input model, to determine whether the object has cheating behavior, and to provide the reasoning logic for obtaining the discrimination result. The model training module is used to perform multiple rounds of iterative training on the large anomaly detection model to be trained based on the first training set and the first prompt word; wherein each round of iterative training includes the following steps: For each training sample, the first prompt word, the training sample, and the discrimination strategy set are input into the large model to obtain the model output corresponding to the training sample. The model output includes the discrimination result corresponding to the training sample and the reasoning logic of the discrimination result. The model parameters of the large model are adjusted according to the differences between the labels of each training sample and the corresponding model output.

13. A cheating detection device, characterized in that, include: The first acquisition module is used to acquire the sequence of game operation behaviors of the object to be detected in the target game. The second acquisition module is used to acquire a preset first prompt word. The first prompt word is used to indicate that the anomaly detection big model is based on the game operation behavior sequence and discrimination strategy set of an object of the input model, to determine whether the object has cheating behavior, and to give the reasoning idea of ​​obtaining the discrimination result. The detection module is used to input the first prompt word, the game operation behavior sequence, and the discrimination strategy set into the anomaly detection big model to obtain the model output of the anomaly detection big model. The model output includes the discrimination result corresponding to the object to be detected and the reasoning logic of the discrimination result. The anomaly detection big model is trained by the method described in any one of claims 1-10.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the method according to any one of claims 1-11.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-11.