Method and system for evaluating technical and tactical skills in football matches

Through the standardized processing of youth football game data and the generation of visual rhythm diagrams, combined with the use of pre-training models, the problem of unobjective and low-efficiency evaluation in the existing technology is solved, and a comprehensive and automated assessment of football game skills and tactics is achieved.

CN118485353BActive Publication Date: 2024-09-10NANJING ARTIFICIAL INTELLIGENCE CHIPS RES INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410949180.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-10
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The existing technical and tactical evaluation methods of youth football teams mainly rely on the subjective observation of coaches. There are problems such as inconsistent evaluation standards and non-objective processes. Moreover, traditional methods cannot fully display the characteristics and potential of the team, and the data processing efficiency is low.

Method used

A football game technical and tactical evaluation method is proposed. By obtaining game data, extracting event data and tracking data, performing standardization and alignment processing, building a fusion data set, identifying ball possession time periods, generating visual rhythm maps, and calling the success rate of pre-training Predictive models for tactical pattern recognition and assessment.

Benefits of technology

It achieves rapid processing of video data and tracking data, improves the efficiency of automated extraction of key events, provides a comprehensive and objective assessment of a single game, and helps coaches and players understand the team's performance and problems more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118485353B
    Figure CN118485353B
Patent Text Reader

Abstract

The present invention discloses a method and system for evaluating football match tactics and techniques, which includes obtaining match data of a predetermined number of matches, extracting event data and tracking data from the match data, performing standardization and alignment processing, and integrating to form a fused data set; identifying the start and end time points of each ball possession time period, segmenting the match ball possession time period, and extracting video frames of each ball possession time period; constructing a pass graph structure, calculating the metric features of the pass graph structure and generating a visual rhythm graph, and generating a prediction result; reading the actual goal result and comparing it with the prediction result, extracting and analyzing the offensive segments whose predicted success probability is higher than a preset threshold but actually failed; obtaining a visual rhythm graph, extracting the team formation and the pass network, and performing tactical pattern recognition and evaluation. The present invention realizes the rapid processing of video data and tracking data, and improves the efficiency of automatic extraction of key events.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of football performance analysis and discloses a football game technique and tactics evaluation method and system. Background Art

[0002] In the field of sports competition, especially in ball sports such as football, the technical and tactical evaluation of young players has always been an important and challenging task. For young players, they are in the growth and development stage, and there are great differences in their technical level, physical fitness and cognitive ability, so a systematic evaluation tool is needed to help them improve their technical and tactical level.

[0003] The traditional method of evaluating the skills and tactics of a youth team in a single game mainly relies on the subjective observation and experience of the coach, and there are problems such as inconsistent evaluation standards and non-objective evaluation process. In addition, the evaluation methods commonly used in some existing youth team skills and tactics evaluations mainly measure the team's skills and tactics performance through some coarse-grained and superficial indicators, such as running volume, number of passes, number of shots, heart rate, etc. However, these methods are often relatively simple and subjective, with low data processing efficiency, and cannot fully demonstrate the characteristics and potential of the team. A system is needed that can comprehensively consider the various aspects of the youth team's capabilities and objectively and quantitatively evaluate its skills and tactics. Summary of the invention

[0004] The purpose of the invention is to provide a method and system for evaluating football match skills and tactics to solve the above-mentioned problems existing in the prior art.

[0005] Technical solution, a method for evaluating football game skills and tactics, comprising the following steps:

[0006] S1. Obtain the match data of the scheduled matches, extract event data and tracking data from the match data, perform standardization and alignment, and integrate the aligned event data and tracking data to form a fused data set;

[0007] S2. Based on the fused data set, identify the start and end time points of each ball possession time period, segment the ball possession time periods of the game, and extract the video frames of each ball possession time period;

[0008] S3, read the video frame, construct the passing graph structure, calculate the metric features of the passing graph structure and generate a visual rhythm graph based on the metric features, call the pre-trained success rate prediction model, obtain the prediction success probability based on the visual rhythm graph, and generate a prediction result;

[0009] S4, reading the actual goal result and comparing it with the predicted result, and based on the comparison result, extracting and analyzing the attacking segments whose predicted success probability is higher than a preset threshold but actually failed;

[0010] S5. Obtain visual rhythm maps, extract team formations and passing networks, and perform tactical pattern recognition and evaluation.

[0011] Football game technical and tactical evaluation system, including:

[0012] at least one processor; and,

[0013] a memory communicatively connected to at least one of the processors; wherein,

[0014] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the football match technical and tactical evaluation method described in any of the above technical solutions.

[0015] Beneficial effects: The present invention realizes the rapid processing of video data and tracking data, improves the efficiency of automatic extraction of key events, and provides a comprehensive and objective evaluation of a single game through multi-dimensional data mining and analysis, helping coaches and players to more accurately and comprehensively understand the team's performance and problems when dealing with different opponents. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of the present invention.

[0017] Figure 2 This is a flow chart of step S1 of the present invention.

[0018] Figure 3 This is a flow chart of step S2 of the present invention.

[0019] Figure 4 This is a flow chart of step S3 of the present invention.

[0020] Figure 5 This is a flow chart of step S4 of the present invention.

[0021] Figure 6 This is a flow chart of step S5 of the present invention. DETAILED DESCRIPTION

[0022] like Figure 1 As shown, this application proposes a method for evaluating football game skills and tactics, which specifically includes the following steps:

[0023] S1. Obtain the match data of the scheduled matches, extract event data and tracking data from the match data, perform standardization and alignment, and integrate the aligned event data and tracking data to form a fused data set;

[0024] S2. Based on the fused data set, identify the start and end time points of each ball possession time period, segment the ball possession time periods of the game, and extract the video frames of each ball possession time period;

[0025] S3, read the video frame, construct the passing graph structure, calculate the metric features of the passing graph structure and generate a visual rhythm graph based on the metric features, call the pre-trained success rate prediction model, obtain the prediction success probability based on the visual rhythm graph, and generate a prediction result;

[0026] S4, reading the actual goal result and comparing it with the predicted result, and based on the comparison result, extracting and analyzing the attacking segments whose predicted success probability is higher than a preset threshold but actually failed;

[0027] S5. Obtain visual rhythm maps, extract team formations and passing networks, and perform tactical pattern recognition and evaluation.

[0028] This embodiment achieves all-round data capture of football matches by acquiring match data of scheduled matches and extracting event data and tracking data. Data standardization and alignment processing ensures the temporal consistency of data from different sources, which lays the foundation for subsequent analysis. In the process of integrating the aligned event data and tracking data to form a fused data set, discrete event information is effectively combined with continuous tracking data, thereby improving the integrity and information density of the data. Fusion not only retains the details of the original data, but also creates new composite features, providing a richer source of information for subsequent technical and tactical analysis. By identifying the time period of ball possession, accurately capturing the changes in the rhythm of the game, and accurately locating each ball possession phase, this precise time segmentation provides a clear time frame for subsequent tactical analysis. By calculating multi-dimensional graph structure metric features, such as centrality, efficiency, and clustering coefficient, the passing network characteristics of the team can be fully characterized. The visual rhythm map generated based on these features not only intuitively shows the rhythm changes of the game, but also provides high-quality input for the pre-trained success rate prediction model. This prediction method based on the visual rhythm map improves the accuracy and interpretability of the prediction. By comparing the predicted results with the actual goal situations, especially analyzing the offensive segments that were predicted to be successful but not actually successful, we can deeply explore the potential factors that affect the results of the game and provide valuable feedback to coaches and players. Finally, in the tactical pattern recognition and evaluation stage, key tactical patterns are extracted from complex game data, and the effects of these patterns are quantitatively evaluated.

[0029] like Figure 2 As shown, according to one aspect of the present application, step S1 is further:

[0030] S11. Obtain a competition ID list from a database or a data interface, and download raw data files according to the competition ID list, including camera data and wearable sensor data;

[0031] S12, extracting event data and tracking data from the original data file;

[0032] S13, performing time interpolation on the tracking data to align it with the timestamp of the event data; transforming the event data and the tracking data into the same spatial coordinate system;

[0033] S14. Construct a new data structure including timestamp, event information and tracking information, traverse the aligned event data and tracking data, and merge the information in chronological order; obtain the final fused data set including complete timing, event and location information.

[0034] In this embodiment, first, by obtaining a match ID list from a database or data interface and downloading the original data file based on it, including camera data and wearable sensor data, efficient collection of multi-source data is achieved. Not only does it ensure the comprehensiveness of the data, but it also provides a richer information basis for subsequent analysis by integrating different types of data sources. In particular, the introduction of wearable sensor data greatly enhances the ability to gain insight into individual player performance, which is difficult to achieve in traditional video analysis.

[0035] Event data and tracking data are extracted from the original data files. Then, in the data alignment process, time series processing algorithms are used. When performing time interpolation on tracking data, adaptive interpolation technology is used, which can automatically select the most suitable interpolation method according to the characteristics of the data, ensuring the accuracy and smoothness of the interpolation results. This high-precision time alignment technology greatly improves the reliability of subsequent analysis. The spatial coordinate system conversion unifies the spatial information from different data sources into a standard coordinate system through a robust coordinate transformation algorithm, which not only solves the problem of multi-source data fusion, but also provides a consistent basis for subsequent spatial analysis. In the final data fusion step, the designed data structure is used to efficiently store and access comprehensive data containing timestamps, event information, and tracking information. It not only optimizes the storage efficiency of data, but also improves the calculation speed of subsequent processing steps. In the data merging process, intelligent conflict resolution algorithms can also be used to automatically handle the conflicting information that may exist between different data sources to ensure the consistency and reliability of the final fused data set.

[0036] This embodiment greatly improves the quality and efficiency of subsequent analysis through a comprehensive and sophisticated data preprocessing process. By providing a high-quality, highly consistent fusion data set, it paves the way for more in-depth technical and tactical analysis, making more complex and more accurate analysis possible. It not only improves the efficiency and accuracy of data processing, but also provides a reliable data infrastructure for the field of football match data analysis.

[0037] Furthermore, in the preprocessing stage of event data extraction, video frames are extracted. The FFmpeg library is used to extract high-definition video frames at fixed intervals (such as 25 frames per second), and adaptive Gaussian blur is applied to reduce noise while retaining edge information. The Hough transform is used to detect the lines of the field, and the perspective transform is applied to convert the tilted field view into a standard top view. The color segmentation algorithm is used to separate players, fields, and other elements, and morphological operations (such as opening and closing operations) are applied to optimize the segmentation results. Connected component analysis is used to identify potential player areas; the circular Hough transform is used to detect the position of the ball, and the wrong position is filtered out by combining color and size constraints; an improved kernelized correlation filter (KCF) tracker is implemented, and the Hungarian algorithm is used to solve the multi-target matching problem.

[0038] When extracting motion features, optical flow calculation is performed, the Farneback algorithm is used to calculate dense optical flow fields, and median filtering is applied to remove outliers. When performing trajectory analysis, the Kalman filter is used to smooth the object trajectory and extract trajectory features such as speed, acceleration, and curvature. When performing context feature extraction, the kernel density estimation (KDE) is used to generate a player distribution heat map and calculate local and global density features; the convex hull algorithm is used to calculate the coverage area of ​​each team and extract morphological features such as area, perimeter, and eccentricity. When generating event candidates, spatiotemporal interest points are detected, the improved FAST corner detector is implemented, potential key action points are identified, and the detection sensitivity is adjusted according to local image characteristics using an adaptive threshold; action sequence segmentation is performed, the sliding window technique is applied to segment continuous frames into overlapping action segments, and the dynamic time warping (DTW) algorithm is used to cluster similar action sequences.

[0039] When performing feature fusion and event classification, feature selection is performed, and the most discriminative feature subset is selected using the recursive feature elimination (RFE) algorithm, and the feature dimension is reduced by applying principal component analysis (PCA); classifier integration is performed, and multiple base classifiers are trained, such as support vector machine (SVM), random forest, and AdaBoost, and the prediction results of the base classifiers are fused using a weighted voting strategy; hierarchical event recognition is performed, and an event decision tree is constructed, first distinguishing between large categories of events (such as offense / defense), and then subdividing specific event types, and applying specialized rules and classifiers at each node.

[0040] During post-processing and optimization, time series smoothing is performed, a median filter is used to eliminate isolated event predictions, and an exponential moving average (EMA) is applied to smooth event confidence scores; rule feedback is performed to implement a rule system based on expert knowledge, the logical consistency of the event sequence is verified, fuzzy logic is used to handle uncertainty, and soft execution of rules is allowed; online updates are performed to implement an incremental learning version of the random forest, allowing the model to be continuously optimized during the competition, and sliding window technology is used to maintain the latest training sample set.

[0041] Finally, the output is generated. The event data is formatted to generate standardized event descriptions, including type, timestamp, location, and participating players, and the confidence score of each event is calculated; event annotations and trajectory visualization are superimposed on the original video frames to generate an event timeline to intuitively display the progress of the game.

[0042] like Figure 3 As shown, according to one aspect of the present application, step S2 is further:

[0043] S21, reading the fused data set, extracting the position and velocity information of the ball therein, and calculating the motion characteristics of the ball in a short period of time based on the position and velocity information of the ball;

[0044] S22, using a clustering algorithm to classify the motion features of the ball to obtain the ball control state, using a state transition detection algorithm to identify the change points of the ball control state, and determining the start and end time points of each ball control time period based on the change points;

[0045] S23, based on the start and end time points of the ball possession time period, extract corresponding video segments from the original video, decode each video segment, extract all video frames or sample key video frames at predetermined intervals;

[0046] S24, converting the extracted video frames into a standard format and performing preprocessing, including resizing and normalization, and adding metadata to each preprocessed video frame, the metadata including a corresponding timestamp and ball possession time period ID.

[0047] In a further embodiment, first, by reading the position and speed information of the ball in the fused data set and calculating the motion characteristics of the ball in a short period of time, high-precision capture of the ball's motion state is achieved. Not only the instantaneous state of the ball is taken into account, but also by analyzing its motion trajectory in a short period of time, richer and more reliable features are provided for subsequent ball possession state identification. In the feature extraction process, the time window technology is used to adaptively adjust the time range of feature calculation to adapt to the changes in different game rhythms and ball motion patterns. This adaptive feature extraction method greatly improves the robustness and accuracy of subsequent analysis. In the ball possession state classification link, advanced clustering algorithms, such as improved K-means or Gaussian mixture models, are introduced to effectively map the ball's motion characteristics to different ball possession states. The advantage of this unsupervised learning method is that it can automatically discover the inherent patterns in the data without the need to predefine strict rules, so that it can better adapt to different game styles and situations.

[0048] In state transition detection, an algorithm based on Hidden Markov Model (HMM) can be used to capture the dynamic transition between ball possession states. Not only the current state but also the historical information of state transition is considered, which improves the accuracy of identifying the boundary of the ball possession time period. Based on the identified ball possession time period, an efficient video processing algorithm is used in the video extraction link. By accurately locating the start and end time points of each ball possession time period, unnecessary video data processing can be minimized, improving the efficiency of the system. In the process of video segment extraction, advanced video codec technologies such as H.265 / HEVC are used, which not only ensures the high quality of the extracted video, but also optimizes the storage and processing efficiency. The extraction of video frames adopts an intelligent sampling strategy, which can adaptively adjust the sampling rate according to the dynamic characteristics of the game. For example, at critical moments or fast-changing periods of the game, the system automatically increases the sampling frequency to capture more details; while in relatively static stages, the sampling frequency is reduced to save computing resources. This dynamic sampling strategy ensures that data redundancy is minimized while retaining key information.

[0049] In the video frame preprocessing stage, the use of advanced image processing technologies, such as adaptive histogram equalization and super-resolution reconstruction, can significantly improve image quality and provide high-quality input for subsequent visual analysis. In the process of adding metadata to each video frame, an efficient index structure is designed, which not only contains the timestamp and ball possession time period ID, but also includes other key information, such as the position of players on the field, scores, etc. This not only facilitates subsequent retrieval and analysis, but also provides a bridge for multimodal data fusion.

[0050] This embodiment greatly improves the quality and integrity of the basic data for subsequent technical and tactical analysis through a sophisticated ball possession time period recognition and video frame extraction method, combined with advanced data analysis technology and efficient video processing algorithms. It not only improves the accuracy and efficiency of analysis, but also opens up new possibilities for deeper and more detailed tactical research.

[0051] like Figure 4 As shown, according to one aspect of the present application, step S3 is further:

[0052] S31, reading the player position data of each frame in the video frame, taking each player as a node, constructing a pass graph structure, and calculating the distance and relative position between the players as the attributes of the edges in the pass graph structure;

[0053] S32, removing impossible pass connections in the pass graph structure according to preset tactical rules and spatial thresholds;

[0054] S33, calculating the metric features of the pass graph structure, and storing the metric features on the nodes or edges corresponding to the pass graph structure; wherein the metric features include betweenness centrality, eccentricity, global efficiency, local efficiency, fragility, clustering coefficient, entropy and web page ranking;

[0055] S34, converting the change of each metric feature over time into a one-dimensional signal, performing time-frequency analysis on each one-dimensional signal, and converting the time-frequency analysis result into a multi-channel visual rhythm map;

[0056] S35, inputting the visual rhythm map into the pre-trained success rate prediction model, and extracting features through the convolution layer and the fully connected layer;

[0057] S36. Based on the extracted features, the softmax activation function is used to calculate the probability of successful attack, that is, the prediction result.

[0058] In this further embodiment, first, by reading the player position data of each frame in the video frame and taking each player as a node to construct the passing graph structure, accurate modeling of the dynamic situation on the field is achieved. Not only the instantaneous position of the players is captured, but also the distance and relative position between the players are calculated as the attributes of the edge, which injects rich spatial information into the graph structure. During the construction process, a dynamic graph generation algorithm is used to update the graph structure in real time to reflect the ever-changing situation on the field. In particular, when calculating the relative position between the players, factors such as the player's direction and speed are introduced, so that the attributes of the edge more comprehensively reflect the possibility and difficulty of passing the ball.

[0059] In the graph structure optimization phase, impossible pass connections can be removed according to preset tactical rules and spatial thresholds, which can combine expert knowledge and data-driven methods. Through the designed rule engine, the system can simulate the judgment of human experts, identify and delete those pass connections that are spatially possible but tactically unreasonable. The application of this "soft rule" improves the authenticity and practicality of the graph structure.

[0060] When calculating the metric characteristics of the graph structure, a multi-dimensional analysis method is used. In addition to the traditional centrality and efficiency indicators, concepts such as fragility and entropy can also be introduced. These indicators can characterize the characteristics of the passing network from different angles. In particular, when calculating the web page ranking, an improved web page ranking (PageRank) algorithm is used, which not only considers the frequency of passing, but also takes into account the quality and tactical value of passing, so as to more accurately evaluate the importance of each player in the passing network. The details are as follows:

[0061] The influence of a player in the offense, betweenness centrality is:

[0062] C B (v)=∑ s≠v≠t σ(s, t|v) / σ(s, t)

[0063] Where σ(s, t) represents the total number of shortest paths between nodes s and t, and σ(s, t|v) represents the total number of shortest paths passing through node v;

[0064] The difficulty of passing the ball to a player. The eccentricity formula is:

[0065] e(v)=max u∈v d(v,u)

[0066] Where d(v,u) represents the shortest path length between node v and u;

[0067] If the passing path between players is shorter overall, the global efficiency is high. The global efficiency formula is: E(v)=(1 / (|V|-1))∑ u∈v,u≠v 1 / d(v,u)

[0068] Where V represents the set of all nodes in the graph.

[0069] If the passing path between a player and his adjacent players is short, then the player's local efficiency is high. The local efficiency formula is:

[0070] E loc (v)=(1 / deg(v)(deg(v)-1))∑ u,w∈N(v) 1 / d(v,w)

[0071] Where N(v) represents the set of neighbor nodes of node v, and deg(v) represents the degree of node v.

[0072] Remove the impact of a player on team efficiency. The vulnerability formula is:

[0073] V(v)=1-E loc (v) / E(v)

[0074] The probability of a player passing triangle being formed, the clustering coefficient formula is:

[0075] C(v)=2T(v) / deg(v)(deg(v)-1)

[0076] where T(v) represents the number of triangles between the neighbors of node v.

[0077] If a player can reach many other players through random passes, then the entropy of the player is high, and the entropy formula is:

[0078] E h (v)=-∑ u∈v P h (v,u)logP h (v,u)

[0079] Where P h (v,u) represents the probability of reaching node u after h steps starting from node v.

[0080] If a player passes the ball frequently and the person he passes the ball to is also an important player, then the player's PageRank will be high. The PageRank formula is:

[0081] PR(v)=((1-q) / |V|)+q∑ u∈N(v) PR(u) / deg(u)

[0082] Where q is the damping factor, which is usually set to 0.85.

[0083] Using a time series compression algorithm, the metric features are converted into one-dimensional signals, which greatly reduces the amount of data while retaining key information, which is crucial for subsequent real-time analysis. Wavelet transform technology is used to perform time-frequency analysis on each one-dimensional signal, and the time-frequency analysis results are converted into images. Each metric corresponds to a channel. Compared with the traditional short-time Fourier transform, the wavelet transform can better capture the local characteristics and multi-scale structure of the signal, providing a richer and more accurate information basis for generating visual rhythm maps. All channels are merged to generate a multi-channel visual rhythm map. By converting the time-frequency analysis results of multiple metric features into multi-channel images, a new way to visualize the rhythm of the game is created. This multi-channel design not only intuitively shows the dynamic changes of the game, but also provides an ideal input format for subsequent deep learning analysis.

[0084] When using the pre-trained success rate prediction model, the transfer learning technology is used to quickly adapt to different game styles and team characteristics. The convolutional layer and fully connected layer design of the model take into account the particularity of football games, such as using dilated convolutions to capture large-scale spatial dependencies and using attention mechanisms to focus on key areas and moments. Finally, when calculating the probability of offensive success, a multi-task learning framework is introduced. In addition to predicting the probability of success, other related indicators such as shooting opportunities and ball possession are also predicted. This multi-task learning not only improves the prediction accuracy of the main task, but also provides a more comprehensive offensive evaluation.

[0085] This embodiment provides a new perspective for football game analysis by constructing a pass graph structure and generating a visual rhythm graph, combining advanced technologies in multiple fields such as graph theory, signal processing, and deep learning. It not only improves the depth and accuracy of tactical analysis, but also provides coaches and analysts with intuitive and informative visualization tools, which has the potential to completely change traditional game analysis methods.

[0086] In a further embodiment, the possibility of passing the ball is determined according to the spatial relationship between the players and the positions of the opposing players, specifically:

[0087] Construct the player position vector P(i), velocity vector V(i), acceleration vector A(i), calculate the relative position vector R(i, j) between any two players i and j, and construct the player direction perception attention matrix M, where

[0088] M(i, j) = softmax(Q(i)K(j)) T / sqrt(d))

[0089] Q(i) = W Q [P(i);V(i)]

[0090] K(j) = WK [P(j);V(j)]

[0091] Where softmax represents a normalization function used to convert the input into a probability distribution, Q(i) represents the query vector of the i-th player, which is composed of its position and velocity vectors through the weight matrix W Q Linear transformation, K(j) represents the key vector of the jth player, which is obtained by its position and velocity vector through the weight matrix W K It is obtained by linear transformation, T represents the matrix transpose operation, sqrt(d) represents the normalization factor, and d is the dimension of the vector.

[0092] Construct the pass trajectory prediction function T(i, j, t) = P(i) + V(i)t + 0.5A(i)t 2 , using Monte Carlo Tree Search (MCTS) to simulate the opponent's interception probability, the pass probability is S(i, j) = M(i, j) * (1 - interception probability).

[0093] like Figure 5 As shown, according to one aspect of the present application, step S4 is further:

[0094] S41, reading the actual goal result, aligning the actual goal result with the predicted result according to the timestamp, and calculating the evaluation coefficient of the success rate prediction model, including the prediction accuracy, precision, recall rate and F1 score;

[0095] S42, based on the evaluation coefficient, screening out attack segments with predicted success probabilities higher than a preset threshold but not actually successful, and collecting statistics on the screened attack segments;

[0096] S43. Based on the statistical results, extract detailed data of the selected offensive segments, including player positions, passing routes and movement trajectories, and use decision trees or random forest algorithms to predict the key factors leading to offensive failures;

[0097] S44. Generate a performance report of each player in the offensive segment based on key factors.

[0098] Furthermore, the receiver operating characteristic (ROC) curve and the area under the curve (AUC) value can be used to evaluate the discrimination ability of the model, and the Brier score can be used to evaluate the calibration of the probability prediction.

[0099] By reading the actual goal results, extracting the success or failure information of each attack, and aligning it with the predicted results by timestamp, the performance of the prediction model is accurately evaluated. The evaluation coefficient not only considers the simple accuracy, but also introduces multi-dimensional evaluation indicators such as precision, recall and F1 score, providing a more comprehensive measure of model performance. When calculating these evaluation coefficients, the time-weighted method is adopted, that is, different weights are given according to the proximity between the predicted time and the actual event time. This method can better reflect the application value of the model in actual games. When screening offensive clips with high probability of prediction success but actual failure, dynamic threshold technology is used. This technology can automatically adjust the threshold according to the different stages of the game and the overall prediction distribution, so as to more accurately capture those "failure" cases worthy of attention. When statistically analyzing the screened offensive clips, multi-dimensional clustering and visualization techniques are introduced, such as t-distributed stochastic neighbor embedding (t-SNE) and uniform manifold approximation and projection (UMAP). These techniques can discover potential patterns and laws in high-dimensional space, providing direction for subsequent in-depth analysis.

[0100] Use multimodal data fusion technology to extract detailed data. In addition to conventional player position and passing route information, players' physiological data (such as heart rate, speed) and environmental factors (such as weather and field conditions) can also be integrated. This all-round data collection provides a richer information basis for subsequent failure cause analysis. When using decision trees or random forest algorithms to predict the key factors that lead to offensive failures, explanatory techniques such as feature importance analysis and partial dependency graphs are introduced, which can not only identify key factors, but also quantify the degree of influence and mode of action of each factor. By adopting an ensemble learning method, combining the prediction results of multiple algorithms (such as random forests, gradient boosting trees, and extreme random trees), the final key factor ranking is obtained by weighted voting. This method improves the reliability and robustness of the results.

[0101] Based on the identified key factors, natural language generation (NLG) technology is used when generating player performance reports. This technology can not only convert complex data analysis results into easy-to-understand text descriptions, but also automatically adjust the content and language style of the report according to different target audiences (such as coaches, players, and management). Visual elements such as heat maps and radar charts can also be incorporated into the report generation process. These intuitive charts can effectively show the performance of players in various aspects. The report also contains personalized suggestions based on historical data. These suggestions are best practices extracted from a large number of historical cases through machine learning algorithms.

[0102] The comprehensive and in-depth prediction result analysis and evaluation method of this embodiment provides a new paradigm for football game analysis by combining advanced technologies in multiple fields such as advanced statistical analysis, machine learning, data visualization, and natural language processing. It not only improves the depth and accuracy of analysis, but also provides coaches and players with intuitive, easy-to-understand, and practical feedback. This method has the potential to significantly improve the team's tactical adjustment capabilities and the personal development of players, thereby gaining a competitive advantage in the game. In addition, by continuously accumulating and analyzing this data, an evolving knowledge base can be established, providing valuable insights for the long-term development of football.

[0103] like Figure 6 As shown, according to one aspect of the present application, step S5 is further:

[0104] S51, read the visual rhythm map, use the continuous homology algorithm to analyze the topological characteristics of the player positions, generate a simplified topological skeleton of the team formation based on the topological characteristics, and calculate the Wasserstein distance between the team formations at different time points;

[0105] S52, based on the simplified topological skeleton of the team formation and the Wasserstein distance between the team formations at different time points, construct the team formation sequence at different time points, and use the dynamic time warping algorithm to identify similar team formations and different team formations in the team formation sequence;

[0106] S53. Use reinforcement learning algorithms to evaluate the effectiveness and adaptability of different team formations.

[0107] S54. Based on the visual rhythm graph, construct a time-varying weighted directed hypergraph, and calculate the Laplacian matrix and the normalized Laplacian matrix of the time-varying weighted directed hypergraph; wherein the time-varying weighted directed hypergraph represents a passing network;

[0108] S55. Based on the Laplace matrix and the normalized Laplace matrix, the spectral clustering algorithm is used to detect the community structure of the passing network at different resolutions. Based on the community structure, the hierarchical clustering method is used to construct the tree structure of the team's tactical unit.

[0109] S56, based on the tree structure, using the pre-trained graph attention network to predict the optimal passing path and receiving position;

[0110] S57. Based on the visual rhythm map, use the improved Voronoi diagram algorithm to divide the court control area of ​​each player, construct a weighted power graph based on the court control area, and use the pre-trained computational fluid dynamics model to output the pressure distribution map of the court;

[0111] S58. Based on the pressure distribution map, calculate the spatial entropy and relative entropy. Based on the spatial entropy and relative entropy, generate a heat map to show the team's spatial control situation.

[0112] In a further embodiment, a persistent homology image of the player positions is constructed, the player position sequence P(t) = {p1(t), p2(t), ..., p n (t)}, for each time point t, construct the Vietoris-Rips complex VR(ε) of the player position, calculate the persistence homology group Hk(VR(ε)) of different dimensions k, record the birth and death times of the homology class as the control distance threshold parameter ε increases, draw a persistence graph with the birth time on the x-axis and the death time on the y-axis, and use the statistical features of the persistence graph (such as Betty number) to represent the formation characteristics.

[0113] Apply the Mapper algorithm to generate a simplified topological skeleton of the formation. Based on the player position data P, define the filter function f: P → R d , such as using principal component analysis; where → represents a mapping; select the parameters (overlap percentage and number of intervals) that cover U = {Ui}, and for each Ui, use a clustering algorithm (such as DBSCAN) to cluster f -1 (Ui) is clustered, where f -1 Represents the inverse function, creates a graph G, where nodes represent clusters and edges represent connections between clusters; visualize G to obtain the topological skeleton representation of the formation.

[0114] Calculate the Wasserstein distance of the player distribution to quantify the formation change. Obtain the player distribution P1 and P2 at two time points t1 and t2, discretize the stadium into m×n grids, calculate the probability distribution of the player distribution P1 and P2 on each grid, and construct the cost matrix C, C ij Denote the cost of moving from i to j, and use linear programming to solve the optimal transmission plan T:

[0115] minimize ∑C ij * T ij

[0116] subject to ∑ j T ij =P 1i , ∑ i T ij =P 2j , T ij ≥ 0

[0117] Calculate W(P1, P2) = ∑ C ij * T ij

[0118] Where minimize represents the objective function to be minimized in the optimization problem, T ij represents the transmission volume from grid i to grid j, subject to represents the constraint condition, P 1i represents the probability of player distribution on grid i at time point t1, P 2j represents the probability of player distribution on grid j at time point t2, and W represents the Wasserstein distance between the two player distributions P1 and P2.

[0119] Compute the Laplacian matrix L and the normalized Laplacian matrix L of the hypergraph H = (V, E) norm , where V represents the vertex set and E represents the hyperedge set, construct the incidence matrix H: if the vertex v i Belongs to the hyperedge e j , then H ij = 1, otherwise 0. Calculate the vertex degree matrix Dv = diag(H1), where diag( ) represents the diagonal matrix function, and H1 represents the sum of each column of the incidence matrix H to obtain a column vector. Calculate the hyperedge degree matrix De = diag(H T 1), where H T 1 means that the transposed correlation matrix H T Sum each column of to get a column vector; calculate the Laplace matrix L = Dv - HDeH T ; Calculate the normalized Laplace matrix L norm = I - Dv -1 / 2 HkDJ T Dv -1 / 2 , where I represents the identity matrix.

[0120] The Louvain algorithm is used to detect community structures at different resolutions. Each node is initialized as a community. In the first stage, for each node i, the modularity gain ΔQ of moving i to the neighboring community j is calculated. If the maximum ΔQ>0, i is moved to the corresponding community, and this is repeated until no nodes are moved. In the second stage, each community is compressed into a node, and a new graph is constructed. The edge weight is the sum of the weights of the edges between communities. This is repeated until the modularity no longer increases. Community structures at different resolutions are obtained by adjusting the resolution parameter γ.

[0121] Apply the hierarchical clustering method to build the tree structure of the team's tactical unit, obtain the player feature matrix X, calculate the distance matrix D between players, initialize each player as a cluster, repeat until there is only one cluster left, find the two closest clusters i and j, merge i and j into a new cluster k, and update the distance between k and other clusters. Build a tree T, with leaf nodes as players and internal nodes as merge operations.

[0122] Construct a weighted power graph with weight w i The player position related to the player's physical fitness and technical ability is P = {p1, ..., p n}, weights W = {w1, ..., w n}, define the weighted distance function:

[0123] d w (p i , p j ) = ||p i -p j || 2 -w i -w j

[0124] For each point p i , construct its power cell:

[0125] V i = {x | d w (x, p i ) ≤ d w (x, p j ), for all j ≠ i};

[0126] The edges of a power graph are the intersections of adjacent power cells.

[0127] Use a fast scanning algorithm to efficiently calculate the Voronoi region boundary. Divide the plane into horizontal scan lines, initialize the balanced binary tree T and event queue Q; scan from bottom to top: when encountering a point event: insert a new parabola into T; when encountering a circle event: delete the disappearing parabola and add Voronoi vertices; handle degenerate situations (such as collinear points); connect Voronoi edges and vertices to build a complete Voronoi diagram.

[0128] This embodiment realizes advanced modeling of dynamic changes in team formations by reading a visual rhythm graph and using a continuous homology algorithm to analyze the topological features of the player positions. This method not only captures the instantaneous position of the players, but also reveals the inherent structure and evolution of the formation from a topological perspective. When generating a simplified topological skeleton of the team formation, multi-scale continuous homology analysis is used, which enables the system to simultaneously capture changes in the macro-formation structure and the relative positions of micro-players. When calculating the Wasserstein distance between team formations at different time points, a time weight factor is introduced so that the distance metric can better reflect the temporal dynamics of formation changes.

[0129] Based on the simplified topological skeleton and Wasserstein distance, a time-varying formation sequence representation is constructed. When using the dynamic time warping (DTW) algorithm to identify similar and different formations, a multi-step DTW technique is used, which can better handle the comparison of long sequences and adapt to the complexity of formation changes in football matches. Moreover, the introduction of a DTW variant based on the attention mechanism can automatically identify and focus on key moments and key areas in formation changes.

[0130] When evaluating the effectiveness and adaptability of different formations, a multi-agent reinforcement learning framework was used. This framework models each player as an agent, which learns the optimal formation strategy through repeated interactions with virtual opponents. In particular, in the design of the reward function, not only traditional game result indicators are considered, but also compound rewards based on factors such as ball possession control and space utilization efficiency are introduced, making the learned strategy more comprehensive and practical.

[0131] In terms of passing network analysis, by constructing a time-varying weighted directed hypergraph, a richer expression capability is provided for the modeling of passing relationships. The use of hypergraphs allows the system to consider many-to-many passing relationships at the same time, reflecting the complex situations in football matches more realistically. When calculating the Laplace matrix and normalized Laplace matrix of the hypergraph, sparse matrix optimization technology can be used to improve computational efficiency and make real-time analysis possible. The community structure of the passing network is detected using a spectral clustering algorithm. By clustering at different resolutions, the system can identify multi-level structures from large-scale tactical units to small-scale coordination combinations. When constructing the tree structure of the team's tactical unit, an adaptive hierarchical clustering algorithm is used, which can automatically adjust the level and granularity of clustering according to the dynamic characteristics of the game.

[0132] When predicting the optimal passing path and receiving position, a graph attention network (GAT) is used. The advantage of GAT is that it can adaptively learn the importance weights of different passing options while considering global tactical intentions and local on-field situations. In particular, a curriculum learning strategy is adopted when training GAT, gradually transitioning from simple passing scenarios to complex tactical coordination. This method significantly improves the generalization ability of the model. In terms of spatial control evaluation, the accurate division of the court control area is achieved through the improved Voronoi diagram algorithm. Dynamic factors such as the player's speed, acceleration, and movement direction are incorporated into the division algorithm, making the calculation of the control area more accurate and predictive. When constructing the weighted power graph, a dynamic weight adjustment mechanism based on the player's technical characteristics and physical condition is introduced, which makes the evaluation of spatial control more personalized and situational. The pressure distribution on the court is simulated using a computational fluid dynamics (CFD) model. By modeling the players and the ball as "obstacles" and "particles" in the fluid, the pressure distribution and flow trend on the court can be intuitively displayed. Introducing machine learning components trained based on actual game data into the CFD model can make the simulation results better match the dynamic changes in actual games.

[0133] Finally, by calculating the spatial entropy and relative entropy and generating a heat map to show the team's spatial control, this provides a novel way to quantify and visualize the team's spatial utilization efficiency. In particular, when calculating the relative entropy, the ideal uniform distribution is introduced as a reference, which makes the spatial control capabilities of different teams and different periods comparable.

[0134] This embodiment provides a framework for football game analysis by combining technologies from multiple cutting-edge fields such as topological data analysis, graph theory, reinforcement learning, computational fluid dynamics, etc. It not only improves the depth and accuracy of tactical analysis, but also provides coaches and analysts with rich visualization and quantitative tools, which has the potential to completely change traditional football tactical analysis and decision-making methods.

[0135] In another embodiment, a dynamic graph isomorphism algorithm is applied to identify and classify real-time formation changes, a time-varying graph sequence G(t) is constructed to represent the relative position relationship between players, a graph kernel method is used to calculate the similarity of graph structures at different time points, a spectral clustering algorithm is applied to group similar graph structures, and typical formations are identified.

[0136] Construct a time-varying graph sequence G(t) to represent the relative position relationship between players. Specifically, obtain the player position sequence P(t) = {p1(t), p2(t), ..., p n (t)}, for each time point t, create a graph Gt, where the nodes represent players, and for each pair of players (i, j), calculate the relative position vector rij (t) = p j (t) - p i (t), if ||r ij (t)|| is less than the threshold d*, add an edge (i, j) to the graph Gt, and the edge weight can be set to w(i, j) = exp(-||r ij (t)|| 2 / σ 2 ), where exp( ) represents the exponential function and σ represents the standard deviation; all Gt are combined into a time-varying graph sequence G(t).

[0137] Use the graph kernel method to calculate the similarity of graph structures at different time points. Based on the time-varying graph sequence G(t), time points t1 and t2, select the graph kernel function k, such as the Weisfeiler-Lehman subtree kernel; for graphs Gt1 and Gt2, initialize the node labels to the degree, iterate h times, aggregate neighbor labels, and hash the aggregated results into new labels; calculate the number of occurrences of each label, obtain the feature vectors Φ(Gt1), Φ(Gt2), and calculate the similarity s(Gt1, Gt2) = k(Gt1, Gt2) =Φ(Gt1) T Φ(Gt2).

[0138] Reinforcement learning is used to evaluate the effectiveness and adaptability of formations. The state space S is constructed as the current formation and game status, the action space A is the possible formation adjustment, and the reward function R is designed. Considering factors such as ball possession, shooting opportunities, and defensive stability, the Soft Actor-Critic (SAC) algorithm is used to train the formation adjustment strategy, and the Monte Carlo Tree Search (MCTS) is used to simulate the long-term effects of different formations.

[0139] Construct a time-varying weighted directed hypergraph to represent the passing network. Construct a hyperedge e(i, J) to represent the pass from player i to player set J. The edge weight w(e) takes into account factors such as pass distance, catching difficulty, and tactical intent. Use a sliding time window to construct a dynamic hypergraph sequence H(t). Apply spectral clustering and community detection algorithms to identify team substructures. Calculate the Laplacian matrix L and normalized Laplacian matrix L of the hypergraph norm , the Louvain algorithm was used to detect community structures at different resolutions, and the hierarchical clustering method was applied to construct the tree structure of the team's tactical units.

[0140] Use the Graph Attention Network (GAT) to predict the optimal passing path and receiving position. Construct a feature vector x(i) for each player node i, including information such as position, speed, and tactical role. Design a multi-head attention layer to learn the importance weights between nodes, use jump connections and batch normalization to improve the performance and stability of the model, and train the GAT model by combining supervised learning and reinforcement learning.

[0141] Using the improved Voronoi diagram algorithm, the control area is divided into two parts taking into account the player's speed and direction, and a generalized distance function is constructed:

[0142] d(p,i) = ||pP(i)|| - α(V(i),pP(i))

[0143] Where p is any point on the field, and α is the speed influence factor;

[0144] Construct a weighted power graph, where the weight w(i) is related to the player's physical fitness and technical ability, and use a fast scanning algorithm to efficiently calculate the Voronoi zone boundaries.

[0145] A computational fluid dynamics (CFD) model is used to simulate the pressure distribution on the court, considering the players as obstacles in the fluid and the movement of the ball as fluid flow. The Lattice Boltzmann method is used to solve the Navier-Stokes equations and calculate the pressure field p(x, y) and velocity field v(x, y), which represent the control intensity and passing difficulty of each area of ​​the court.

[0146] The thermodynamic entropy model is used to evaluate the overall space utilization efficiency of the team. Discretize the court into m×n grids, calculate the control probability distribution P(i, j) of each grid, and construct the space entropy S = -∑ (i,j) P(i, j) log P(i, j), calculate relative entropy (KL divergence) D KL (P||Q), where Q is an ideal uniform distribution, evaluates the balance of space utilization, and uses the maximum entropy principle to solve the optimal space utilization strategy under given constraints.

[0147] According to another aspect of the present application, the start and end time points of each ball possession time period identified in step S22 may also be:

[0148] S22a, use the attention-based temporal convolutional network to extract the feature sequence in the fusion dataset, including the position features of players and balls;

[0149] S22b, constructing a ball possession state vector based on the feature sequence, and segmenting the ball possession state vector using a dynamic time warping algorithm to obtain a segmented ball possession state sequence;

[0150] S22c. Use the Bayesian change point detection algorithm to identify significant state transition points in the ball possession state sequence, and identify the start and end time points of each ball possession time period based on the significant state transition points.

[0151] In a further embodiment, the dynamic time warping (DTW) algorithm is applied to segment the ball possession state vector C(t), and the ball possession state vector sequence C(t) = {c1, c2, ..., cN}, where each cN contains features such as ball speed and the distance to the nearest player, and initializes the distance matrix D[N+1][N+1], for i from 1 to N, j from 1 to N:

[0152] D[i][j]= d(ci, cj) + min(D[i-1][j], D[i][j-1], D[i-1][j-1])

[0153] Where d(ci, cj) is the Euclidean distance. From D[N][N], trace back to D[1][1] to obtain the optimal alignment path P. The slope change is detected on the path P. The slope change point is the segmentation point. The ball control state vector C(t) is divided into multiple subsequences according to the segmentation point.

[0154] The Bayesian change point detection algorithm is used to identify significant state transition points as the start and end time of ball possession. Specifically, the prior distribution p(τ) is defined, τ is the change point position, the likelihood function p(C(t)| τ) is defined, and the data is assumed to follow a Gaussian distribution. The Metropolis-Hastings algorithm is used to sample the posterior distribution p(τ|C(t)): a new change point position τ' is proposed, and the acceptance probability β= min(1, p(τ'|C(t)) / p(τ|C(t))) is calculated. τ' is accepted with probability β, otherwise τ is kept unchanged. Repeat this process multiple times to obtain the posterior distribution of the change point position, and the change point with the highest posterior probability is selected as the start and end time of ball possession.

[0155] This embodiment firstly extracts the feature sequence in the fusion data set by using the Temporal Convolutional Network (TCN) based on the attention mechanism, and realizes the efficient and accurate capture of the player and ball position information. It can not only handle the long-term dependency problem, but also adaptively focus on the most relevant spatiotemporal information through the attention mechanism. In particular, in the design of the temporal convolutional network, the dilated convolution technology is adopted, which enables the network to significantly expand the receptive field without increasing the number of parameters, thereby capturing dependencies over a longer time range.

[0156] When constructing the ball possession state vector, a variety of advanced features are integrated, including but not limited to the ball's speed, acceleration, distance to the nearest player, relative position of the players, etc. A feature extractor based on a graph neural network (GNN) is introduced, which can effectively capture the dynamic interaction relationship between players. This GNN-based method not only takes into account the status of individual players, but also simulates the synergy of the entire team, providing a more comprehensive information basis for the judgment of the ball possession state. The traditional dynamic time warping (DTW) algorithm is mainly used to compare the similarity of two time series, while in this embodiment, the dynamic time warping algorithm is used to segment the ball possession state vector, and the dynamic time warping algorithm is applied to the self-comparison and segmentation of a single sequence. In order to adapt to the fast-changing rhythm in football games, the method introduces a DTW variant with an adaptive window size, which can automatically adjust the size of the comparison window according to the dynamic characteristics of the game. This dynamic adjustment mechanism improves the accuracy and flexibility of segmentation.

[0157] After obtaining the segmented ball possession state sequence, the Bayesian change point detection algorithm can be used to identify significant state transition points. Compared with traditional change point detection methods, the advantage of the Bayesian method is that it can quantify the uncertainty of the detection results and naturally incorporate prior knowledge. In particular, the knowledge of ball possession patterns obtained based on large-scale historical game data analysis is incorporated into the design of the prior distribution, which makes the change point detection more accurate and reliable. In addition, in order to handle the multi-scale changes that may exist in football games, a multi-scale Bayesian change point detection framework is adopted. This framework performs change point detection on multiple time scales simultaneously, and then integrates the results of different scales through an innovative fusion mechanism, so that it can capture both rapid ball possession transitions and long-term changes in game rhythm.

[0158] When identifying the start and end time points of each possession period, not only the results of change point detection are taken into account, but also a rule-based post-processing step can be introduced. This step incorporates expert knowledge, such as considering a minimum possession time threshold, ignoring frequent short possession transitions, etc., to ensure that the identified possession periods are meaningful for tactical analysis. The entire possession period identification process is performed online in real time. By designing an efficient stream processing algorithm and an incremental update mechanism, the possession state estimation can be quickly updated when new data flows in, which makes it very suitable for real-time game analysis and tactical adjustments.

[0159] Finally, in order to continuously improve the accuracy of recognition, a feedback learning mechanism can also be introduced. By comparing the automatically identified ball possession time periods with the manually labeled results, the system can continuously adjust and optimize its internal parameters and decision thresholds to achieve self-improvement.

[0160] This embodiment combines technologies from multiple fields such as deep learning, time series analysis, and probabilistic inference to provide a high-precision, high-reliability solution for ball possession analysis in football matches. It not only improves the accuracy and real-time performance of ball possession time period identification, but also lays a solid foundation for deeper tactical analysis and decision support. The innovation and effectiveness of this approach has the potential to have a significant impact in the field of football data analysis, providing coaches, analysts, and players with more accurate and timely game insights.

[0161] According to another aspect of the present application, step S4 further includes:

[0162] S45. constructing a player performance scoring function based on the performance report;

[0163] S46, based on the player performance scoring function, using an adaptive boosting algorithm to identify players with abnormal performance;

[0164] S47. Use causal inference methods to assess the causal effect of abnormally performing players on team performance;

[0165] S48. Based on the causal effect of evaluation, multi-agent reinforcement learning is used to simulate the optimal decision, and the actual decision is compared and analyzed with the optimal decision to obtain the decision analysis results.

[0166] In a further embodiment, causal inference methods, such as dual machine learning (DML), are applied to evaluate the causal effect of individual players on team performance. Obtain player characteristics X, team performance Y, and player participation T, and randomly divide the data into K parts; for each part k, use the other K-1 parts of data to train model m1 to predict E[Y|X]; use the other K-1 parts of data to train model m2 to predict E[T|X]; for each sample i, calculate the residual:

[0167] r Y,i = Y i -m1(X i ),

[0168] r T,i = T i - m2(X i );

[0169] Estimate the causal effect of a player on team performance: θ = (∑r T,i * r Y,i ) / (∑r T,i 2 ), calculate standard errors, and construct confidence intervals.

[0170] First, this embodiment realizes the comprehensive quantification of player performance by constructing a player performance scoring function. The innovation of this scoring function is that it not only takes into account traditional statistical indicators (such as pass success rate, number of shots, etc.), but also incorporates more advanced tactical contribution indicators. In particular, the function uses a reinforcement learning-based method to dynamically evaluate the value of each action, considering the tactical significance of the action in different game situations. For example, a seemingly ordinary pass may get a higher score because it breaks the opponent's defense. This dynamic scoring mechanism makes the evaluation results closer to the complexity of the actual game.

[0171] When using the adaptive boosting algorithm to identify players with abnormal performance, time series feature extraction technology is introduced. By analyzing the temporal patterns of players' performance over a period of time, the system can more accurately identify those players with outstanding or abnormal performance. When building the base learner, decision tree-based anomaly detection algorithms such as Isolation Forest are used, which enables the system to handle anomaly detection problems in high-dimensional feature spaces. In addition, by introducing an online learning mechanism, the algorithm can update the anomaly detection model in real time to adapt to the changing situation in the game.

[0172] In another embodiment of the present application, a causal inference method can be used to evaluate the causal effect of players with abnormal performance on team performance. The latest causal inference techniques such as Double Machine Learning and Orthogonal Random Forest are used here. The advantage of these methods is that they can estimate causal effects in observational data while controlling potential confounding factors. In particular, in the modeling process, the dynamic nature of the game is taken into account, and the concept of time-varying treatment effects is introduced, which enables the system to capture the dynamic changes in the impact of player performance on the team. When evaluating causal effects, the method also introduces a counterfactual reasoning framework. By constructing a counterfactual scenario of "what if this player performs normally", the system can more accurately quantify the actual impact of abnormal performance. Here, a counterfactual scenario generation technology based on a generative adversarial network (GAN) is used to generate realistic, physically consistent counterfactual game states.

[0173] In another embodiment of the present application, multi-agent reinforcement learning can be used to simulate optimal decisions. In this framework, each player is modeled as an agent, and the overall performance of the team is regarded as the collaborative result of these agents. When designing the reward function, not only the overall goal of the team is considered, but also the individual contribution terms based on the results of the causal effect analysis are introduced. This enables the learned strategy to better balance individual performance and team interests. During the simulation process, by gradually increasing the difficulty of the opponent and the complexity of the game, the system can more effectively learn complex tactical decisions. In particular, when constructing the simulation environment, a generative model based on large-scale historical data training is incorporated, which makes the simulation environment more realistic and can better reflect various situations in actual games.

[0174] Comparing the simulated optimal decision with the actual decision not only compares the results of the decision, but also analyzes the key differences in the decision-making process. Using explainable AI techniques such as the local explainability method SHAP (SHapleyAdditive exPlanations) value, the system can identify the key factors that lead to decision differences. This provides coaches and players with specific and actionable suggestions for improvement.

[0175] This embodiment provides a new analytical paradigm for football game analysis by combining technologies from multiple cutting-edge fields such as advanced statistical analysis, causal inference, reinforcement learning, and explainable AI. It can not only accurately quantify the contributions of individual players, but also deeply analyze the causal impact of these contributions on the overall performance of the team, and provide a scientific basis for tactical optimization by comparing with theoretical optimal decisions. This method has the potential to transform traditional player evaluation and tactical analysis methods, and provide coaches, scouts, and management with more in-depth and objective decision-making support.

[0176] According to another aspect of the present application, in step S54, the process of calculating the Laplacian matrix and the normalized Laplacian matrix of the time-varying weighted directed hypergraph is specifically as follows:

[0177] Step S541, obtain the degree matrix and the graph structure similarity matrix, construct the Laplace matrix, and calculate the eigenvectors corresponding to the first few minimum eigenvalues ​​of the Laplace matrix;

[0178] Step S542: Use the eigenvectors corresponding to the previous minimum eigenvalues ​​as column vectors to construct a new matrix.

[0179] Step S543: Take each row of the new matrix as a dimension point, use the K-means method to perform clustering, and output the clustering result.

[0180] In a specific embodiment, a Laplacian matrix L = D - S is constructed, where D is a degree matrix; the eigenvectors v1, ..., vk corresponding to the first k smallest eigenvalues ​​of the Laplacian matrix L are calculated to construct a matrix V with columns v1, ..., vk; each row of the matrix V is regarded as a k-dimensional point and clustered using K-means; the clustering result of the original graph structure is the k clusters.

[0181] First, the present embodiment constructs the Laplace matrix by acquiring the degree matrix and the graph structure similarity matrix, which lays a solid mathematical foundation for the subsequent cluster analysis. Not only the direct connection between nodes is considered, but also more complex relationship structures are captured by the similarity matrix. When constructing the similarity matrix, a multi-scale similarity measure is introduced to capture local and global structural features at the same time. This multi-scale method enables the subsequent clustering results to better reflect the intrinsic structure of the data. The fast approximate eigendecomposition algorithm is used to calculate the eigenvalues ​​and eigenvectors of the Laplace matrix. The traditional eigendecomposition algorithm has high computational complexity when processing large-scale graph structures, and the approximate algorithm used here, such as a variant of the Lanczos method, can improve computational efficiency while ensuring accuracy. In particular, by introducing the random projection technique, the algorithm can effectively process high-dimensional data, which is particularly important when analyzing complex football match data.

[0182] The eigenvectors corresponding to the first several smallest eigenvalues ​​are selected, and an adaptive eigenvalue selection strategy is used to construct a new matrix. Unlike the traditional method of fixedly selecting K eigenvalues, this method dynamically determines the most suitable number of eigenvectors by analyzing the distribution and interval of eigenvalues. This adaptive strategy can better adapt to the characteristics of different game data and improve the quality and stability of clustering results.

[0183] When taking each row of the new matrix as a point for K-means clustering, firstly, an improved K-means++ initialization method is used, which improves the stability and quality of clustering through more intelligent seed point selection. Secondly, in the K-means iteration process, an online batch update mechanism is introduced, which enables the algorithm to effectively process streaming data and meet the needs of real-time analysis.

[0184] This embodiment provides a powerful and flexible tool for real-time analysis and pattern recognition of football match data. It can not only efficiently process large-scale, high-dimensional match data, but also capture subtle structures and dynamic changes in the data. This method has the potential to have a significant impact in many aspects such as football tactical analysis, player performance evaluation, and match prediction, providing coaches, analysts, and decision makers with deeper and more timely insights.

[0185] In another embodiment, a method for evaluating skills and tactics in youth football matches based on artificial intelligence is also provided. Through the visual analysis of game data, coaches and players can have a clearer understanding of the team's performance in a single game; the system provides a visual analysis module based on tracking data, event data and video clips, which can assist coaches in comprehensively understanding the situation of the game and the performance of the team from different angles; the system provides advanced modules based on expected possession value modules, court control analysis modules, pass probability calculation modules and other modules, which associate game videos with processed data, so that coaches and players can watch the game process intuitively, and compare and analyze it with the data, so as to conduct more targeted training and tactical adjustments.

[0186] Step 1, obtain a game video, tracking data, event data, and game-related information of a real football game, and input the tracking data, event data, and game information into a data processing module to obtain tracking data and event data that conform to the module algorithm data structure.

[0187] Specifically, the game video can be a broadcast video or a tactical video from any perspective; the tracking data can be collected by wearable devices or extracted from the game video through computer vision technology, and the data frequency can be 10Hz or 25Hz, that is, 10 frames or 25 frames per second. A coordinate system is established at a certain point in the four corners of the court or the center of the court. Each frame of the tracking data records the position of the 22 players and the ball relative to the court at that moment, so the position of the players and the ball can be represented by their coordinates on the court.

[0188] The event data of the game can be recorded by various means, including real-time recording, video playback, and statistics from professional data providers. It can also be extracted from the game video through event sensing of wearable devices or through professional annotation software; event data records the key events that occurred throughout the game, such as kick-offs, passes, interceptions, shots, etc. Its data frequency is not fixed, and each frame records a key event. The information contained includes the time when the event occurred (i.e., the xth minute and xth second of the game), the type of players involved, the location of the event, and other related information. Each of these items is represented by a corresponding field variable. For example, the event type is represented by type, and if it is a truncation, type='tackle'. The event data collected by different data vendors have different levels of detail and field representation for game records, but the recorded data can fully reflect the important events that occurred in the game.

[0189] Match-related information generally records auxiliary information such as match date, event and round, stadium information, home and away team player lists, jersey numbers, player ages, and coach lists.

[0190] Tracking data and event data should use a unified data structure, such as JSON or CSV, to facilitate subsequent processing and analysis, and provide clear descriptions and definitions of each field in the data structure to ensure the comprehensibility and ease of use of the data. If different data vendors or data sources are involved, the data needs to be standardized to ensure a unified data format and structure.

[0191] Step 2, align the event data and tracking data on the time axis;

[0192] Specifically, ensure that the collected event data and tracking data are accurately timestamped, determine the sampling frequency of tracking data and event data, that is, the number of data points recorded per second, and unify the time units of different data sources; convert the time points and frames in the tracking data with the time points in the event data to ensure their alignment on the timeline; when performing time alignment, linear interpolation or smoothing may be required to ensure the continuity and smoothness of the data during alignment; calibrate the timestamps of tracking data and event data to take into account possible time deviations or delays.

[0193] Step 3: Input the processed data into the video and data synchronization module to synchronize the tracking data and event data with the game video on the timeline.

[0194] Specifically, the time point of each event in the game video is marked. By adding timestamps or marking key frames in the video, each event is clearly marked in the video; the frame rate of the game video is determined so that the number of video frames corresponds to time; the event time points in the event data are matched with the corresponding segments in the game video, and the segments corresponding to each event in the video are cut out according to the time points in the event data.

[0195] Step 4, input the processed tracking data, event data and video clips into the team single game visualization module for visualization;

[0196] Specifically, the system is mainly divided into basic analysis module and advanced analysis module. The basic analysis module contains two types of sub-modules. The first one is for the overall evaluation of the team, including the game formation module, game intensity identification module, team overall data module, pass network module, game development trend module, key event success rate module; the second one focuses on the evaluation of players, including goalkeeper data module, player data module, and shot data module. The advanced analysis module includes four functions: expected ball possession value module, court control analysis module, pass probability calculation module, and typical scenario strategy auxiliary module.

[0197] Among them, the game formation module in the basic analysis module presents the main position distribution of players on the field at different time periods throughout the game through game information and tracking data, and presents it in the form of a football field map; the game development trend module uses event data to present the changes of the team's expected goals, ball possession rate, pass success rate, long pass ratio, confrontation success rate, number of attacks per minute, number of counter-attacks per minute, average formation defense line height, and defense intensity over the game time in the form of a line graph to help understand the offensive and defensive trends of both teams in the game; the team overall module uses event data to make a fine-grained division of the team's offense, defense, offense and defense transition, scramble, ball possession, single attack time, number of passes, and wing and center attack ratios, and presents them in the form of football maps and charts to help evaluate the team's offensive and defensive trends. The player data module uses event data to perform a fine-grained breakdown of the three indicators of the player's offense, defense, and passing, and presents them in the form of charts. The goalkeeper data module uses event data to perform a fine-grained breakdown of the goalkeeper's shots and passes, and presents them in the form of football field diagrams and charts. The player data and goalkeeper data modules can help understand the performance of individual players. The shot data module breaks down the player's shots, including the expected goals of the shot, the player's shooting position, the shooting court position, the shooting time, and the shooting result. These five indicators are presented in the form of football field diagrams and charts to help analyze the team's shooting efficiency. The passing network module uses event data to generate indicators to identify the team's core players and players outside the free system, and presents them in the form of matrices and football field diagrams. The key event success rate module uses event data to analyze the team's performance in key events through nine indicators: scrambling, losing the ball, regaining the ball, dribbling, key passes, crosses, fouls, headers, and ground confrontations, and presents them in the form of charts, matrices, and football field maps; the game intensity recognition module calculates the acceleration secondary by tracking the player's speed records at each moment in the data, and uses acceleration to present the player's energy metabolism, thereby reflecting the player's physical condition and the team's overall game intensity at different times, and the presentation is in the form of a line graph formed by the values ​​at each moment.

[0198] The expected possession value module in the high-level analysis module reads the processed event data and tracking data, combines the video clips, estimates the expected output of each pass possibility in the current situation, as well as the value of success and the risk of failure, and uses the results given by the model to find the optimal choice considered by the algorithm, and the results are presented in the form of animated graphics; the court control analysis module reads the processed event data and tracking data, combines the video clips, and circles the control range of each player in each frame to help the team better understand the game, which is presented in the form of animated graphics; the pass probability calculation module reads the processed event data and tracking data, combines the video clips, and calculates the probability of the ball-free player of the ball-holding team receiving the pass, and uses the depth of color on the football field map to represent the probability, which is presented in the form of animated graphics; the typical scenario strategy assistance module reads the processed event data and tracking data, combines the video clips, and calculates the probability of the ball-free player of the ball-holding team receiving the pass, and uses the depth of color to represent the probability on the football field map, which is presented in the form of animated graphics; the typical scenario strategy assistance module reads the processed event data and tracking data, combines the video clips, and calculates the probability of the ball-free player of the ball-holding team receiving the ball, and uses the depth of color to represent the probability, which is presented in the form of animated graphics

[0199] Player decision-making, high-post pressure efficiency, and low-post defensive efficiency are evaluated when the ball is transferred, and the efficiency evaluation can be presented in the form of a line graph.

[0200] This embodiment is a method for evaluating the skills and tactics of a youth soccer match, which aims to use data mining and artificial intelligence to provide a comprehensive and objective evaluation of a single match. Through the system, players can have a more comprehensive understanding of their individual performance, discover strengths and areas for improvement, and coaches can combine match data with virtual scenarios to conduct tactical reviews and strategic discussions and make more scientific decisions in training and matches to improve the team's skills and tactics.

[0201] In a further embodiment, the specific steps may also be:

[0202] S1. Data preparation, obtaining event data and tracking data of multiple youth games.

[0203] Event data is provided by data vendors. The event data collected by different data vendors have different levels of detail and field representation for game records. The SPADL (Soccer Player Action Description Language) data format is used to unify the event data format. The core of SPADL is events. Each frame records a key event, and each event contains multiple attributes: game information includes game identifier, team identifier, player identifier, etc.; action type includes the type of action (such as pass, shot, steal, etc.); time information is the time point when the action occurs (the specific time in the game); position information is the specific location where the action occurs (x, y coordinates); the result of the action, such as success or failure; other attributes include assists, foul types, etc.

[0204] Tracking data can be collected by wearable devices or extracted from game videos through computer vision technology. The data frequency can be 10Hz or 25Hz, that is, 10 frames or 25 frames per second. A coordinate system is established at a certain point in the four corners of the court or the center of the court. Each frame of tracking data records the position of the 22 players and the ball relative to the court at that moment. The positions of the players and the ball can be represented by their coordinates on the court.

[0205] The coordinates of the home team players can be expressed as p i h (x, y), where i = 1, 2, ..., 11 represents the 11 players of the home team; the coordinates of the away team players can be expressed as pi a (x, y), i = 1, 2, ..., 11 represents the 11 players of the visiting team. The three-dimensional coordinates of the ball can be expressed as p b (x, y, z).

[0206] Interpolate the tracking data, align the event data and tracking data on the time axis, and integrate them into fused data

[0207] S2. Construct the ball control chain dataset.

[0208] Each game is divided into multiple possession time periods. Each possession time period represents the entire time period from when a team gains possession to when it loses possession. Each possession time period can be divided into three parts. Feature extraction time window: The first 5 seconds are used for feature extraction; Lag zone: The middle part of the possession time period, with a variable length; Target zone: The last 5 seconds are used to evaluate whether to enter the offensive zone.

[0209] S3. Passing network construction and feature extraction.

[0210] A graph structure is generated for each frame, where vertices represent players and edges represent the possibility of passing between players. The basis for judging the possibility of passing is that there must be no other players on the same team blocking between the two players to ensure that the passing path is unobstructed. There must be no opposing players blocking between the two players to ensure that the pass will not be interfered with or intercepted by the opposing players. The distance between the opposing players and the players at both ends of the passing path (passing player and receiving player) must be greater than 50 cm to ensure that the passing path is safe enough and will not be easily interfered with or intercepted by the opposing players. Graph metrics are extracted, including calculating the betweenness centrality to evaluate the influence of players in the offense; calculating the eccentricity to measure the difficulty of passing the ball to a certain player; calculating the global efficiency to evaluate the shortness of the overall passing path; calculating the local efficiency to evaluate the shortness of the passing path between the player and his neighboring players; calculating the vulnerability to evaluate the impact of removing a player on the team's efficiency; calculating the clustering coefficient to evaluate the possibility of the formation of a player's passing triangle; calculating the entropy to evaluate the diversity of the player's random pass to other players; calculating the page ranking (PageRank) to evaluate the importance of the player. Generate a visual rhythm map to convert these metrics into images over time. The X-axis represents time and the Y-axis represents each player on the court. Each pixel value in the image represents a metric value of a certain player at a certain moment. The visual rhythm graphs of multiple metrics are synthesized into a multi-channel image, and each channel represents a metric. The pre-trained success rate prediction model is used for training, and the generated multi-channel visual rhythm graph is input into the success rate prediction model. Each channel represents a graph metric.

[0211] The convolutional layer of the success rate prediction model converts the input image into a high-dimensional feature vector. The convolutional layer processes the input image through multiple layers of convolution, pooling, and activation functions to extract representative features. The extracted feature vector is further processed by the fully connected layer. The fully connected layer converts the high-dimensional feature vector into an output suitable for the classification task. The fully connected layer maps the feature vector to the output category. To predict whether the offensive team can enter the offensive zone, the output layer uses the softmax activation function to output the probabilities of the two categories.

[0212] S4. Team offensive analysis.

[0213] Based on the predicted situation of entering the offensive third zone and comparing it with the actual situation, the offensive segments with a high probability of success but which actually failed are analyzed to find out the problems that the players have in the offense under the actual situation.

[0214] S5. Tactical pattern analysis and evaluation.

[0215] According to another aspect of the present application, a football game technique and tactics evaluation system comprises:

[0216] at least one processor; and,

[0217] a memory communicatively connected to at least one of the processors; wherein,

[0218] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the football match technical and tactical evaluation method described in any of the above technical solutions.

[0219] The preferred embodiments of the present invention are described in detail above; however, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, various equivalent transformations can be made to the technical solutions of the present invention, and these equivalent transformations all belong to the protection scope of the present invention.

Claims

1. A method for evaluating football match skills and tactics, characterized in that: The steps include: S1. Obtain the match data of the scheduled matches, extract event data and tracking data from the match data, perform standardization and alignment, and integrate the aligned event data and tracking data to form a fused data set; S2. Based on the fused data set, identify the start and end time points of each ball possession time period, segment the ball possession time periods of the game, and extract the video frames of each ball possession time period; S3, read the video frame, construct the passing graph structure, calculate the metric features of the passing graph structure and generate a visual rhythm graph based on the metric features, call the pre-trained success rate prediction model, obtain the prediction success probability based on the visual rhythm graph, and generate a prediction result; S4, reading the actual goal result and comparing it with the predicted result, and based on the comparison result, extracting and analyzing the attacking segments whose predicted success probability is higher than a preset threshold but actually failed; S5, obtain visual rhythm maps, extract team formations and passing networks, and perform tactical pattern recognition and evaluation; Step S1 is further as follows: S11. Obtain a competition ID list from a database or a data interface, and download raw data files according to the competition ID list, including camera data and wearable sensor data; S12, extracting event data and tracking data from the original data file; S13, performing time interpolation on the tracking data to align it with the timestamp of the event data; transforming the event data and the tracking data into the same spatial coordinate system; S14, construct a new data structure including timestamp, event information and tracking information, traverse the aligned event data and tracking data, and merge the information in chronological order; Obtain the final fused dataset, which contains complete time series, event and location information; Step S2 is further as follows: S21, reading the fused data set, extracting the position and velocity information of the ball therein, and calculating the motion characteristics of the ball in a short period of time based on the position and velocity information of the ball; S22, using a clustering algorithm to classify the motion features of the ball to obtain the ball control state, using a state transition detection algorithm to identify the change points of the ball control state, and determining the start and end time points of each ball control time period based on the change points; S23, based on the start and end time points of the ball possession time period, extract corresponding video segments from the original video, decode each video segment, extract all video frames or sample key video frames at predetermined intervals; S24, converting the extracted video frames into a standard format, and performing preprocessing, including resizing and normalization, and adding metadata to each preprocessed video frame, the metadata including a corresponding timestamp and ball possession time period ID; Step S3 is further as follows: S31, reading the player position data of each frame in the video frame, taking each player as a node, constructing a pass graph structure, and calculating the distance and relative position between the players as the attributes of the edges in the pass graph structure; S32, removing impossible pass connections in the pass graph structure according to preset tactical rules and spatial thresholds; S33, calculating the metric features of the pass graph structure, and storing the metric features on the nodes or edges corresponding to the pass graph structure; wherein the metric features include betweenness centrality, eccentricity, global efficiency, local efficiency, fragility, clustering coefficient, entropy and web page ranking; S34, converting the change of each metric feature over time into a one-dimensional signal, performing time-frequency analysis on each one-dimensional signal, and converting the time-frequency analysis result into a multi-channel visual rhythm map; S35, inputting the visual rhythm map into the pre-trained success rate prediction model, and extracting features through the convolution layer and the fully connected layer; S36. Based on the extracted features, the softmax activation function is used to calculate the probability of successful attack, i.e., the prediction result; Step S4 is further as follows: S41, reading the actual goal result, aligning the actual goal result with the predicted result according to the timestamp, and calculating the evaluation coefficient of the success rate prediction model, including the prediction accuracy, precision, recall rate and F1 score; S42, based on the evaluation coefficient, screening out attack segments with predicted success probabilities higher than a preset threshold but not actually successful, and collecting statistics on the screened attack segments; S43. Based on the statistical results, extract detailed data of the selected offensive segments, including player positions, passing routes and movement trajectories, and use decision trees or random forest algorithms to predict the key factors leading to offensive failures; S44. Generate a performance report of each player in the offensive segment based on key factors; Step S5 is further as follows: S51, read the visual rhythm map, use the continuous homology algorithm to analyze the topological characteristics of the player positions, generate a simplified topological skeleton of the team formation based on the topological characteristics, and calculate the Wasserstein distance between the team formations at different time points; S52, based on the simplified topological skeleton of the team formation and the Wasserstein distance between the team formations at different time points, construct the team formation sequence at different time points, and use the dynamic time warping algorithm to identify similar team formations and different team formations in the team formation sequence; S53. Use reinforcement learning algorithms to evaluate the effectiveness and adaptability of different team formations. S54. Based on the visual rhythm graph, construct a time-varying weighted directed hypergraph, and calculate the Laplacian matrix and the normalized Laplacian matrix of the time-varying weighted directed hypergraph; wherein the time-varying weighted directed hypergraph represents a passing network; S55. Based on the Laplace matrix and the normalized Laplace matrix, the spectral clustering algorithm is used to detect the community structure of the passing network at different resolutions. Based on the community structure, the hierarchical clustering method is used to construct the tree structure of the team's tactical unit. S56, based on the tree structure, using the pre-trained graph attention network to predict the optimal passing path and receiving position; S57. Based on the visual rhythm map, use the improved Voronoi diagram algorithm to divide the court control area of ​​each player, construct a weighted power graph based on the court control area, and use the pre-trained computational fluid dynamics model to output the pressure distribution map of the court; S58, based on the pressure distribution map, calculating the spatial entropy and relative entropy, and based on the spatial entropy and relative entropy, generating a heat map to show the team's spatial control situation; The start and end time points of each ball possession time period identified in step S22 may also be: S22a, use the attention-based temporal convolutional network to extract the feature sequence in the fusion dataset, including the position features of players and balls; S22b, constructing a ball possession state vector based on the feature sequence, and segmenting the ball possession state vector using a dynamic time warping algorithm to obtain a segmented ball possession state sequence; S22c, using a Bayesian change point detection algorithm to identify significant state transition points in the ball possession state sequence, and based on the significant state transition points, identifying the start and end time points of each ball possession time period; Step S4 also includes: S45. constructing a player performance scoring function based on the performance report; S46, based on the player performance scoring function, using an adaptive boosting algorithm to identify players with abnormal performance; S47. Use causal inference methods to assess the causal effect of abnormally performing players on team performance; S48. Based on the causal effect of the evaluation, multi-agent reinforcement learning is used to simulate the optimal decision, and the actual decision is compared and analyzed with the optimal decision to obtain the decision analysis results; In step S54, the process of calculating the Laplacian matrix and the normalized Laplacian matrix of the time-varying weighted directed hypergraph is specifically as follows: Step S541, obtain the degree matrix and the graph structure similarity matrix, construct the Laplace matrix, and calculate the eigenvectors corresponding to the first few minimum eigenvalues ​​of the Laplace matrix; Step S542: Use the eigenvectors corresponding to the previous minimum eigenvalues ​​as column vectors to construct a new matrix. Step S543: Take each row of the new matrix as a dimension point, use the K-means method to perform clustering, and output the clustering result.

2. Football match technique and tactics evaluation system, characterized by: include: at least one processor; as well as, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the football game technical and tactical evaluation method described in claim 1.