Football game dangerous area prediction method, system and device based on player trajectory and space pressure field
By modeling player trajectories and spatial pressure fields, the danger index of each spatial grid is calculated, a spatial pressure field is constructed, and time-series prediction is performed. This solves the problems of insufficient real-time identification of dangerous areas and reliance on human experience in existing technologies, and achieves accurate prediction and early warning of dangerous areas.
Patent Information
- Application Number
- CN202611389643.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
Existing football match analysis methods struggle to identify player group positioning, offensive and defensive directions, and spatial relationships in real time. They lack quantifiable risk area prediction capabilities, rely on human experience, and cannot output the distribution of spatial risks on the field in real time during the match.
By modeling player trajectories and spatial pressure fields, the offensive threat value, defensive coverage value, passing channel accessibility, and shooting feasibility of each spatial grid are calculated to construct a spatial pressure field. Combined with a time-series prediction model, future danger zones are predicted.
It enables spatial and quantitative representation of dangerous areas, improves the interpretability and on-site analysis capabilities of offensive and defensive situation identification, and can predict changes in potential dangerous areas in advance, thereby improving the accuracy of dangerous area identification and the early warning time.
Smart Images

Figure CN123179079A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of football match prediction technology, specifically to a method, system, and device for predicting dangerous areas in football matches based on player trajectories and spatial pressure fields. Background Technology
[0002] Football matches are characterized by intense competition, rapid transitions between attack and defense, and high spatial and temporal complexity. During a match, the threat of an attack depends not only on the ball's current position but also on the direction of the team in possession, the positioning of attacking players, the coverage of defensive players, passing lanes, shooting angles, and the spatial relationships between players. For coaches and match analysts, the ability to identify the offensive and defensive situation on the field in real time and determine potential danger zones is crucial for in-game defensive adjustments, tactical review, and player training.
[0003] Current methods of analyzing football matches primarily rely on manual observation, post-match video replays, or simple statistical indicators such as possession, shots, passes, and running distance. While these methods can reflect some match information, they still have the following shortcomings: First, existing methods often focus on the ball's position or individual match events, lacking a holistic model of player group positioning, offensive and defensive directions, and spatial relationships, making it difficult to identify potential danger zones in a timely manner. Second, existing methods typically emphasize post-match statistics, failing to output the distribution of spatial risks on the field in real time during the match, thus failing to meet the needs of on-field analysis and immediate early warning. Third, existing methods do not adequately consider key spatial factors such as defensive coverage, passing channels, and shooting feasibility, easily overlooking areas that have high threatening potential but have not yet resulted in a shot. Fourth, existing methods rely heavily on manual tactical experience to judge danger zones, lacking a quantifiable, calculable, and interpretable mechanism for identifying offensive and defensive situations.
[0004] Therefore, there is an urgent need for a method to predict dangerous areas in football matches by modeling the spatiotemporal relationship between players and the football, calculating the danger index of each area on the field in real time, and predicting the changing trend of dangerous areas within a preset time period. Summary of the Invention
[0005] Purpose of the invention: In order to overcome the above shortcomings, the purpose of this application is to provide a method, system and device for predicting dangerous areas in football matches based on player trajectories and spatial pressure fields, which can solve the problems of insufficient real-time identification of offensive and defensive situations, reliance on human experience for judging dangerous areas, insufficient spatial relationship modeling and weak ability to predict future dangerous areas in existing football match analysis methods.
[0006] To address the aforementioned technical problems, this application provides a method for predicting dangerous areas in football matches based on player trajectories and spatial pressure fields, including: S1: Perform time synchronization, player identity matching, football trajectory matching, and abnormal trajectory correction on the multi-source real-time data collected during the football match to generate match time sequence status data under a unified time axis; S2: Based on the match time sequence status data, identify the ball-controlling side, offensive and defensive directions, player positioning distribution, offensive and defensive player ratio, and ball possession status in the current match, and generate offensive and defensive situation characteristics; S3: Divide the football field into multiple spatial grids and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness and shooting feasibility of each spatial grid according to the spatial relationship between each spatial grid and the characteristics of offensive and defensive situations, so as to construct a spatial pressure field to characterize the spatial risk distribution of the football field. S4: Calculate the hazard index of each spatial grid based on the spatial pressure field and determine the current hazard area based on the hazard index. Input the spatial pressure field within the continuous time window into the hazard area prediction model to output the current hazard area and the location, hazard level and hazard change trend of the hazard area within the future preset time period.
[0007] As a preferred embodiment of this application, in S1, the multi-source real-time data includes one or more of player position data, football position data, player movement trajectory data, football movement trajectory data, and match status data; The player position data includes the player's horizontal and vertical coordinates in the football field's planar coordinate system; The football position data includes the horizontal and vertical coordinates of the football in the plane coordinate system of the football field; The player movement trajectory data includes one or more of the following: player speed, acceleration, direction of movement, distance traveled, and position change trend; The football trajectory data includes one or more of the following: football speed, ball direction, passing direction, dribbling direction, and ball possession change information.
[0008] As a preferred embodiment of this application, in S1, the method includes the following steps: S11: Resample player positions and ball positions using the first preset time as a uniform time interval; S12: For trajectory data missing for a short period of time, linear interpolation, Kalman filtering, or trajectory estimation of previous and next frames are used for correction; S13: If the speed of a player in two adjacent frames exceeds the second preset time or the position of the football changes non-physically, it is determined to be an abnormal trajectory point; if the continuous missing time of a single data source is less than the third preset time, linear interpolation or Kalman filtering is used for correction; if the missing time exceeds the preset threshold, the calculation weight of the spatial features corresponding to that time period is reduced.
[0009] As a preferred embodiment of this application, in S2, the ball-controlling team determines the direction of attack and defense based on the distance between the football and the player, changes in the speed of the football, and passing events; the direction of attack and defense is determined based on the team's attacking direction in the current half; and the status of possession progression is determined based on changes in the position, speed, and direction of the football within a continuous time window, as well as changes in the positioning of the ball-controlling team.
[0010] As a preferred embodiment of this application, in S2, the method includes the following steps: S21: Calculate the distance between the football and all players; S22: Filter candidate players who touch the ball at a distance less than a preset distance and determine the player who touches the ball by combining changes in the speed and direction of the football and the distance between consecutive frames; S23: Determine the team in possession based on the team of the player who touched the ball; if there is no clear player touching the ball within the preset time window, maintain possession or mark the ball as contested based on the most recent touch event.
[0011] As a preferred embodiment of this application, in S2, the offensive and defensive situation characteristics include one or more of the following: ball control characteristics, offensive and defensive direction characteristics, formation compactness characteristics, player lateral spacing characteristics, player longitudinal spacing characteristics, offensive and defensive player ratio characteristics, ball possession speed characteristics, and offensive and defensive transition intensity characteristics.
[0012] As a preferred embodiment of this application, in S3, a standard football field is divided into multiple spatial grids, wherein the spatial grids are divided using a regular rectangular grid method, and the granularity of the division is one or more of 20×14, 24×16 or 32×20.
[0013] As a preferred embodiment of this application, in S3, the method includes the following steps: S31: Calculate offensive threat value: , in, For the number of spatial grids, O is the center point of the football field, and O is the assembly point of the attacking players. Let i be the distance between the attacking player i and the spatial grid g. For the range of influence of the attack, To ensure consistency between the direction of the attacking player's movement and the direction of the spatial grid, Weighting of offensive players' speed or driving ability. Weighting of offensive players in different positions; S32: Calculate defensive coverage value: , Where D represents the group of defending players; The distance between defensive player j and the spatial grid g. For defensive coverage parameters, For the accessibility of the defensive player to the spatial grid g, Weighting of defensive players in different positions; S33: Calculate the smoothness of the passing lane: , The degree of defensive interference near the line connecting the player with the ball and the target grid. The length of the passing path. To defend against interference attenuation parameters, This is the parameter for the decay of passing distance; S34: Calculate the feasibility of a shot: , in, The shooting angle factor of the target grid relative to the goal. The distance between the target grid and the center of the goal. To protect the degree of obstruction, This is the parameter for shot distance decay.
[0014] As a preferred embodiment of this application, in step S4, the method includes the following steps: S41: Calculate the hazard index of each spatial grid based on the spatial pressure field: ,in Let g be the danger index of the g-th grid at time t. As the offensive threat value, For defensive coverage value, To ensure the smoothness of the passing lanes. For the feasibility of shooting, For the ball possession advancement correction, Let be the weight parameters, and each weight is non-negative and their sum is 1; S42: Mark the spatial grid where the hazard index exceeds the preset threshold as a hazard area, wherein the hazard area is divided into low hazard, medium-low hazard, medium-high hazard and high hazard; S43: Input the spatial pressure field within a continuous time window into the time-series prediction model to predict and output the location, hazard level, and hazard change trend of the hazardous area within a preset future time period. The specific calculation formula is as follows: , , in, Let t be the spatial pressure field at time t, L be the length of the historical time window, and τ be the future prediction time; Φ be the temporal prediction model, including one or more of the following: recurrent neural network, temporal convolutional network, attention network, and Transformer network. For the predicted spatial pressure field after time τ, This represents the set of dangerous areas after time τ.
[0015] This application also provides a football match danger zone prediction system based on player trajectory and spatial pressure field using the aforementioned method, comprising: The data processing module is used to perform time synchronization, player identity matching, football trajectory matching, and abnormal trajectory correction on the multi-source real-time data collected during the football match, and generate match time sequence status data under a unified time axis. The offensive and defensive situation recognition module is used to identify the ball-controlling side, offensive and defensive directions, player positioning distribution, offensive and defensive player ratio, and ball possession status in the current game based on the game time sequence status data, and generate offensive and defensive situation features. The spatial pressure field construction module is used to divide the football field into multiple spatial grids and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness and shooting feasibility of each spatial grid according to the spatial relationship between each spatial grid and the characteristics of offensive and defensive situations, so as to construct a spatial pressure field to characterize the spatial risk distribution of the football field. The hazardous area prediction module is used to calculate the hazard index of each spatial grid based on the spatial pressure field and determine the current hazardous area based on the hazard index, and input the spatial pressure field within a continuous time window into the hazardous area prediction model. The results output module is used to output the current danger zone and the location, danger level, and danger change trend of the danger zone within a preset time period.
[0016] This application also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor; when the processor executes the computer program, it implements the aforementioned method for predicting dangerous areas in a football match.
[0017] This application also provides a computer-readable storage medium storing a computer program; when the computer program is executed by a processor, it implements the method for predicting dangerous areas in a football match.
[0018] The technical solution described in this application has the following advantages over the prior art: 1. This application divides the football field into spatial grids and calculates the danger index corresponding to each grid, realizing the spatial and quantitative expression of dangerous areas. This allows dangerous areas in the game to be output as heat maps, risk levels, or coordinate regions. A spatial pressure field model is constructed, which unifies offensive threats, defensive coverage, passing channel unobstructedness, and shooting feasibility into the same spatial risk expression, improving the interpretability of offensive and defensive situation identification. Based on the changes in spatial pressure field within a continuous time window, dangerous areas in a future preset time period can be predicted. This not only identifies current dangerous areas but also predicts changes in potential dangerous areas in advance, improving on-site analysis and defensive early warning capabilities.
[0019] 2. The data input for this application can come from competition video recognition results, positioning devices, manually labeled data, or publicly available competition tracking data. There are no restrictions on the specific collection method, and it has strong applicability and scalability.
[0020] 3. In the exemplary test, several match segments were selected as verification samples, and manually marked dangerous attacking areas were used as reference results. Compared with the method based solely on the position of the football, the dangerous area identification accuracy of the method in this application was increased from 68.5% to 86.4%, the average early warning time was increased from 1.2s to 3.8s, and the false alarm rate was reduced from 24.6% to 11.7%. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0022] Figure 1 This is a flowchart illustrating the method for predicting dangerous areas in a football match based on player trajectories and spatial pressure fields, provided in an embodiment of this application.
[0023] Figure 2 This is a schematic diagram of the player and football position data synchronization processing flow provided in the embodiments of this application.
[0024] Figure 3 This is a flowchart illustrating the multi-source real-time data processing and anomaly correction method provided in the embodiments of this application.
[0025] Figure 4 This is a flowchart illustrating the ball control identification method provided in this application embodiment.
[0026] Figure 5 This is a schematic diagram of the spatial grid division of a football field provided in an embodiment of this application.
[0027] Figure 6 This is a flowchart illustrating the spatial pressure field construction method provided in the embodiments of this application.
[0028] Figure 7 This is a visual diagram of the dangerous area prediction results provided in the embodiments of this application.
[0029] Figure 8 This is a schematic diagram of the module connections of the football match danger zone prediction system based on player trajectory and spatial pressure field provided in the embodiments of this application. Detailed Implementation
[0030] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0031] Before conducting offensive and defensive situation identification and danger zone prediction in a football match, at least the following data acquisition devices or data sources should be prepared: a match video recognition system, player positioning acquisition devices, football position acquisition devices, match event recording devices, a data processing server, and a coach's terminal device. The match video recognition system or positioning acquisition devices provide player and football position data; the match event recording devices record status information such as ball possession, set pieces, fouls, substitutions, and match phases; the data processing server performs time synchronization, trajectory correction, offensive and defensive situation identification, spatial pressure field construction, and danger zone prediction; and the coach's terminal device displays a danger zone heatmap, danger level, and danger change trends.
[0032] refer to Figure 1 and Figure 2 As shown, in some embodiments, the method for predicting dangerous areas in a football match based on player trajectories and spatial pressure fields includes the following steps: S1: Perform time synchronization, player identity matching, football trajectory matching, and abnormal trajectory correction on the multi-source real-time data collected during the football match to generate match time sequence status data under a unified time axis.
[0033] The multi-source real-time data includes one or more of the following: player position data, football position data, player trajectory data, football trajectory data, and match status data; the player position data includes the player's horizontal and vertical coordinates in the football field's plane coordinate system; the football position data includes the football's horizontal and vertical coordinates in the football field's plane coordinate system; the player trajectory data includes one or more of the following: player speed, acceleration, direction of movement, distance traveled, and position change trend; the football trajectory data includes one or more of the following: football speed, ball direction, passing direction, dribbling direction, and ball possession change information.
[0034] The match time-series data is uniformly mapped to a standard football field plane coordinate system, where the length of the field is denoted as the x-axis and the width as the y-axis. Players, footballs, and spatial grids are all calculated in the same coordinate system. For differences in sampling frequency from different data sources, resampling is performed at a preset time interval Δt, where Δt can be 0.1s to 0.5s, preferably 0.2s.
[0035] refer to Figure 3 As shown. Specifically, in S1, the method includes the following steps: S11: Resample player positions and ball positions using the first preset time as a uniform time interval; S12: For trajectory data missing for a short period of time, linear interpolation, Kalman filtering, or trajectory estimation of previous and next frames are used for correction; S13: If the speed of a player in two adjacent frames exceeds the second preset time or the position of the football changes non-physically, it is determined to be an abnormal trajectory point; if the continuous missing time of a single data source is less than the third preset time, linear interpolation or Kalman filtering is used for correction; if the missing time exceeds the preset threshold, the calculation weight of the spatial features corresponding to that time period is reduced.
[0036] For example, real-time position data, speed data, direction of movement data, and match status data of 22 players and the football are acquired during the match. Player position data can come from video recognition results, positioning devices, manually labeled data, or publicly available match tracking data; football position data can come from video recognition results, football sensors, or manually labeled data. The core of this application is not limited to specific data collection methods, but rather lies in identifying offensive and defensive postures and predicting dangerous areas based on the spatiotemporal data of players and the football.
[0037] In one specific embodiment of this application, the sampling frequency of player position data can be from 10Hz to 25Hz, the sampling frequency of football position data can be from 25Hz to 50Hz, and the match event data is updated according to the time of the event. Player position data includes at least player number, team number, horizontal coordinate, vertical coordinate, speed, and direction of movement; football position data includes at least the horizontal coordinate, vertical coordinate, speed, direction of movement, and height of the football; match status data includes at least match time, score, ball possession status, set piece status, and offensive / defensive transition status.
[0038] Since player position, football position, and match status data may have different sampling frequencies, in one embodiment of this application, player position and football position are resampled at a uniform time interval of 0.2 seconds. For trajectory data that is missing for a short period of time, linear interpolation, Kalman filtering, or trajectory estimation of previous and next frames can be used for correction. For data that is significantly outside the normal speed range or suddenly jumps, anomaly marking can be performed and its weight in subsequent calculations can be reduced.
[0039] In one specific embodiment of this application, the abnormal trajectory detection rules include: if the speed of a player in two adjacent frames exceeds 12m / s or the position of the football changes non-physically, it is determined to be an abnormal trajectory point; if the continuous missing time of a single data source is less than 1s, linear interpolation or Kalman filtering is used for correction; if the missing time exceeds a preset threshold, the calculation weight of the spatial features corresponding to that time period is reduced.
[0040] S2: Based on the game timeline data, identify the ball-controlling side, offensive and defensive directions, player positioning distribution, offensive and defensive player ratio, and ball possession status in the current game, and generate offensive and defensive situation characteristics.
[0041] The ball-controlling side is determined based on the distance between the ball and the players, changes in the ball's speed, and passing events; the offensive and defensive direction is determined based on the team's offensive direction in the current half; the ball possession progression status is determined based on changes in the ball's position, speed, and direction within a continuous time window, as well as changes in the ball-controlling side's positioning; the offensive and defensive situation characteristics include one or more of the following: ball-controlling side characteristics, offensive and defensive direction characteristics, formation compactness characteristics, player lateral spacing characteristics, player longitudinal spacing characteristics, offensive and defensive player ratio characteristics, ball possession progression speed characteristics, and offensive and defensive transition intensity characteristics.
[0042] In some examples of this application, the ball control party is identified not only based on the minimum distance between the football and the player, but also by combining the sudden change in the speed of the football, the player's touch event, and the ball possession time in consecutive frames; when the distance between the football and a player of a certain team is less than a preset ball control distance threshold and remains relatively stable within K consecutive frames, that team is determined to be the current ball control party.
[0043] refer to Figure 4As shown. Specifically, in S2, the method includes the following steps: S21: Calculate the distance between the football and all players; S22: Filter candidate players who touch the ball at a distance less than a preset distance and determine the player who touches the ball by combining changes in the speed and direction of the football and the distance between consecutive frames; S23: Determine the team in possession based on the team of the player who touched the ball; if there is no clear player touching the ball within the preset time window, maintain possession or mark the ball as contested based on the most recent touch event.
[0044] For example, the ball control identification process includes: first, calculating the distance between the football and all players; second, filtering candidate players who have touched the ball at a distance of less than 1.5m; third, determining the player who has touched the ball by combining the changes in the speed and direction of the football and the distance stability of consecutive frames; and finally, determining the ball control team based on the team to which the player who touched the ball belongs. If there is no clear object touching the football within a preset time window, the ball control state is maintained or marked as a contested state based on the most recent touch event.
[0045] S3: Divide the football field into multiple spatial grids and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness and shooting feasibility of each spatial grid according to the spatial relationship between each spatial grid and the characteristics of offensive and defensive situations, so as to construct a spatial pressure field to characterize the spatial risk distribution of the football field.
[0046] refer to Figure 5 As shown, a standard football field is divided into multiple spatial grids, wherein the spatial grids are divided using a regular rectangular grid method, and the granularity of the division is one or more of 20×14, 24×16 or 32×20. The denser the grid, the finer the location of dangerous areas, but the computational load also increases accordingly. This application allows the selection of grid granularity according to the terminal computing power and the real-time requirements of the game.
[0047] The offensive threat value is determined based on the distance from the attacking player to the target grid, the consistency between the attacking player's movement direction and the target grid's direction, the attacking player's speed, the time it takes for the ball to reach the target grid, and the distance between the target grid and the goal. The defensive coverage value is determined based on the distance from the defending player to the target grid, the defending player's time to reach the target grid, the defending player's movement direction, the defending player's speed, and the relative position between the target grid and the defensive formation. The passing channel accessibility is determined based on the line connecting the ball carrier and the target grid, the number of defending players near the line, the vertical distance from the defending player to the passing path, the length of the passing path, and the consistency between the passing direction and the ball carrier's movement direction. The shooting feasibility is determined based on the distance between the target grid and the goal, the shooting angle, the degree of obstruction by defending players in front of the target grid, the goalkeeper's position, and the area of the field where the target grid is located.
[0048] The game state is represented as follows: at time t, the position of the i-th player on the field is... The ball's position is b(t), and the player's velocity vector is... Then it can be expressed as: , The status of all players on the field and the state of the football are represented as: , in, This includes match status information, such as the team in possession, match time, offensive and defensive direction, score, and match stage. It can also include set-piece status, offensive and defensive transition status, player red and yellow card status, and stoppage time status. For special match phases such as set pieces, corner kicks, and free kicks, the corresponding spatial weight parameters can be called to avoid misjudgment of special scenarios by ordinary mobile warfare models.
[0049] In some examples of this application, the ball-controlling party is determined based on a distance threshold, a touch event, and continuous frame stability; the offensive and defensive directions are determined based on the team's half-court direction and the overall direction of the ball's movement within a continuous time window; and the ball possession progression status is determined by the ball's speed direction, the ball carrier's movement direction, and the degree of forward movement of the attacking party's overall positioning.
[0050] refer to Figure 6 As shown. Specifically, in S3, the method includes the following steps: S31: Calculate offensive threat value: , in, For the number of spatial grids, O is the center point of the football field, and O is the assembly point of the attacking players. Let i be the distance between the attacking player i and the spatial grid g. For the range of influence of the attack, To ensure consistency between the direction of the attacking player's movement and the direction of the spatial grid, Weighting of offensive players' speed or driving ability. Weighting of offensive players in different positions.
[0051] In some examples of this application, the attacking threat value can also incorporate player position and role weights. For example, forwards, wingers, and attacking midfielders have a higher threat weight near the attacking third than center-backs, and full-backs have a higher cross-court threat weight on the flanks than in the center. By using position and role weights, the spatial pressure field can be made more consistent with the reality of a football match.
[0052] S32: Calculate defensive coverage value: , Where D represents the group of defending players; The distance between defensive player j and the spatial grid g. For defensive coverage parameters, For the accessibility of the defensive player to the spatial grid g, Weighting of defensive players in different positions.
[0053] In some examples of this application, the defensive coverage value also takes into account whether the defensive player is positioned between the attacking player and the goal, whether they are able to cut off passing lanes, and whether they are in a defensive posture with their body facing in a favorable direction. If the defensive player is close to the target grid but has their back to the target area or is out of position, the defensive coverage value is reduced accordingly.
[0054] S33: Let the position of the player with the ball be... The target grid center is The smoothness of the passing path from the player with the ball to the target grid can be expressed as: , The degree of defensive interference near the line connecting the player with the ball and the target grid. The length of the passing path. To defend against interference attenuation parameters, This is the parameter for the decay of passing distance.
[0055] In some examples of this application, the pass channel smoothness considers not only straight pass paths, but also candidate channels such as diagonal passes, back passes and then advancing. For each candidate pass channel, the path length, defensive interference level and receiving area pressure are calculated respectively, and then the path with the highest smoothness is selected as the pass channel evaluation result for that grid.
[0056] S34: Calculate the feasibility of a shot: , in, The shooting angle factor of the target grid relative to the goal. The distance between the target grid and the center of the goal. To protect the degree of obstruction, This is the parameter for shot distance decay.
[0057] In some examples of this application, different calculation strategies are used for shooting feasibility in different areas: for grids inside the penalty area, the focus is on shooting angle, defensive obstruction and goalkeeper position; for grids outside the penalty area, the focus is on distance from the goal, whether the shooting route is blocked and whether it is in a high-threat area such as the middle or the flanks.
[0058] In some examples of this application, each spatial feature is normalized before being input into the spatial pressure field, so that the offensive threat value, defensive coverage value, passing channel accessibility and shooting feasibility are within the same numerical range. The normalization method can be maximum-minimum normalization, quantile normalization or standardization based on historical game statistical distribution.
[0059] In one specific embodiment of this application, spatial feature calculation is performed in a grid-by-grid manner. For each spatial grid, the distance from the attacking player to the grid, the consistency of the attacking player's direction toward the grid, the time it takes for the defending player to arrive at the grid, the degree of interference of the passing channel from the player with the ball to the grid, and the shooting angle of the grid relative to the goal are calculated. After normalization, the above features are used to obtain the attacking threat value, the defensive coverage value, the passing channel unobstructedness, and the shooting feasibility.
[0060] S4: Calculate the hazard index of each spatial grid based on the spatial pressure field and determine the current hazard area based on the hazard index. Input the spatial pressure field within the continuous time window into the hazard area prediction model to output the current hazard area and the location, hazard level and hazard change trend of the hazard area within the future preset time period.
[0061] The danger index is calculated by weighting the offensive threat value, defensive coverage value, passing channel unobstructedness, shooting feasibility, and ball possession status. The higher the danger index, the higher the probability that the target space grid will pose an offensive threat in the current or future preset time period. The danger zone prediction model includes one or more of the following: recurrent neural network, gated recurrent unit network, long short-term memory network, temporal convolutional network, attention network, or Transformer network.
[0062] refer to Figure 6 As shown. Specifically, in S4, the method includes the following steps: S41: Calculate the hazard index of each spatial grid based on the spatial pressure field: ,in Let g be the danger index of the g-th grid at time t. As the offensive threat value, For defensive coverage value, To ensure the smoothness of the passing lanes. For the feasibility of shooting, For the ball possession advancement correction, The weights are non-negative and sum to 1.
[0063] In some examples of this application, when When the threshold δ is exceeded, the g-th grid is marked as a danger zone. According to... The numerical value can be used to classify the risk level into low risk, medium risk, and high risk.
[0064] S42: Mark the spatial grid where the danger index exceeds the preset threshold as a danger area, wherein the danger area is divided into low danger, medium-low danger, medium-high danger and high danger.
[0065] In some examples of this application, the hazard index is normalized to the range of 0 to 1. If the hazard index is less than 0.30, it is determined to be a low-hazard background area; if the hazard index is greater than or equal to 0.30 and less than 0.50, it is determined to be a medium-low hazard area; if the hazard index is greater than or equal to 0.50 and less than 0.70, it is determined to be a medium-high hazard area; if the hazard index is greater than or equal to 0.70, it is determined to be a high-hazard area; if multiple adjacent grids reach the high-hazard threshold, they are merged into a continuous hazard area, and the center coordinates, area range, and highest hazard index of the continuous hazard area are output.
[0066] S43: Input the spatial pressure field within a continuous time window into the time-series prediction model to predict and output the location, hazard level, and hazard change trend of the hazardous area within a preset future time period. The specific calculation formula is as follows: , , in, Let t be the spatial pressure field at time t, L be the length of the historical time window, and τ be the future prediction time; Φ be the temporal prediction model, including one or more of the following: recurrent neural network, temporal convolutional network, attention network, and Transformer network. For the predicted spatial pressure field after time τ, This is a set of dangerous areas after time τ. Let be the danger index of the g-th spatial grid after time τ.
[0067] In some examples of this application, the danger zone is not only determined by shooting events, but also by key passes, touches in the penalty area, breakthroughs in the flanks, dribbling forward with the ball facing the goal, and areas that create obvious defensive gaps, so as to improve the early detection of danger zones.
[0068] In some examples of this application, the supervisory labels for the danger zone prediction model can be generated jointly by manually labeled events and game event rules. When a shot, key pass, touch in the penalty area, breakthrough in the flank, or fast advance occurs near a grid within a preset time period in the future, that grid is labeled as a danger zone; grids where no such event occurs and where the spatial pressure field is low are labeled as non-danger zones.
[0069] In some examples of this application, the model training process may simultaneously include a hazard area classification task and a hazard index regression task. The classification task is used to determine whether a grid belongs to a hazard area, and the regression task is used to predict the hazard index of that grid. By jointly training classification and regression, the stability of hazard area boundary identification and hazard level prediction can be improved.
[0070] In one specific embodiment of this application, the danger zone prediction model takes the spatial pressure field sequence within the last 5 to 10 seconds as input and outputs the spatial pressure field prediction results for the next 3 seconds and the next 5 seconds. During training, the model can be trained by manually labeling danger zones, shooting events, key pass events, ball touch events in the penalty area, and rapid advance events to jointly construct supervision labels.
[0071] Therefore, the current and future hazard prediction results are output to the coach's terminal device. The output format includes hazard area heat map, hazard index, hazard area coordinates, hazard level and hazard change trend.
[0072] refer to Figure 7 As shown. In one specific embodiment of this application, the output results include a heat map of dangerous areas, a dangerous area level box, arrows indicating future changes in dangerous areas, a table of changes in dangerous index, and textual descriptions of regional risks; for example, when the dangerous index of the right rib area increases from 0.84 to 0.91, the output shows that the area is a continuously increasing high-risk area, and its coordinate range and trend are marked in the visualization interface.
[0073] Therefore, the symbols used in this application are explained in Table 1 below: Table 1 Therefore, to verify the effectiveness of the method in this application, several football match tracking data can be selected as test samples, and manually marked dangerous attacking areas can be used as reference results to compare the prediction effects of different methods on dangerous areas. Exemplary test results are shown in Table 2 below: Table 2 The above results are exemplary test results used to illustrate the technical effects of the present invention. As can be seen from this example, the present invention, by integrating player trajectories, offensive and defensive postures, spatial pressure fields, and time-series prediction models, can improve the accuracy of dangerous area identification and provide earlier warnings before dangerous attacks occur.
[0074] refer to Figure 8 As shown. In some embodiments of this application, this application also provides a football match danger zone prediction system based on player trajectory and spatial pressure field using the method described in any of the above embodiments, including: Data processing module 201 is used to perform time synchronization, player identity matching, football trajectory matching and abnormal trajectory correction on multi-source real-time data collected during the football match, and generate match time sequence status data under a unified time axis; The offensive and defensive situation recognition module 202 is used to identify the ball-controlling side, offensive and defensive direction, player positioning distribution, offensive and defensive player ratio and ball possession status in the current game based on the game time sequence status data, and generate offensive and defensive situation features; The spatial pressure field construction module 203 is used to divide the football field into multiple spatial grids and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness and shooting feasibility of each spatial grid according to the spatial relationship between each spatial grid and the offensive and defensive situation characteristics, so as to construct a spatial pressure field to characterize the spatial risk distribution of the football field. The hazardous area prediction module 204 is used to calculate the hazard index of each spatial grid based on the spatial pressure field and determine the current hazardous area based on the hazard index, and input the spatial pressure field within a continuous time window into the hazardous area prediction model. The result output module 205 is used to output the current danger zone and the location, danger level and danger change trend of the danger zone within a preset time period.
[0075] In one example of this application, the result output module can output three types of information: the first type is the current spatial pressure field heat map; the second type is the danger zone prediction map for the next 3 to 5 seconds; and the third type is the danger index change trend table, including the area name, current danger index, future predicted danger index, and danger level change.
[0076] It should be noted that the core of this application lies in offensive and defensive situation identification and dangerous area prediction. The tactical adjustment prompts in the output are only application scenarios of the dangerous area prediction results and do not constitute a limitation on the core technical solution of this application.
[0077] In some embodiments of this application, this application also provides a computer-readable storage medium storing a computer program, which, when loaded and executed by a processor, is used to implement all or part of the steps of the football match danger zone prediction method based on player trajectory and spatial pressure field according to any of the above embodiments.
[0078] Specifically, the computer program includes instruction code for performing multi-source match data acquisition, time synchronization, player identity matching, football trajectory matching, abnormal trajectory correction, offensive and defensive situation identification, spatial grid division, spatial feature calculation, spatial pressure field construction, danger index calculation, danger area identification, and future danger area prediction. During execution, the instruction code calls processor resources to complete player position data parsing, football position data parsing, match status information extraction, ball possession identification, offensive and defensive direction identification, ball possession progression status analysis, offensive threat value calculation, defensive coverage value calculation, passing channel accessibility calculation, shooting feasibility calculation, and danger index generation. Based on the spatial pressure field sequence within a continuous time window, it performs time-series prediction model inference to output the current danger area and the location, danger level, and danger change trend of the danger area within a preset future time period.
[0079] Furthermore, during execution, the computer program can continuously trigger the spatial pressure field update and danger zone prediction process when the game status changes, possession changes, player positions change, game stages change, or new game data arrives, thereby realizing dynamic real-time identification of the offensive and defensive situation of football games and online prediction of danger zones; wherein, the danger zone prediction includes the generation and output of danger zone heat maps, danger zone level boxes, danger index change trends, danger zone change arrows, and regional risk text descriptions.
[0080] Furthermore, the computer program also includes instruction code for performing training of the danger zone prediction model, wherein the training process includes constructing supervisory labels based on manually labeled danger zones, shooting events, key pass events, ball touch events in the penalty area, breakthrough events in the flanks, and rapid advance events, and jointly training the danger zone prediction model through a danger zone classification task and a danger index regression task to improve the accuracy of danger zone identification and early warning capability.
[0081] The computer-readable storage medium can be any tangible storage medium capable of storing program code and being read by a computing device, including but not limited to read-only memory, random access memory, flash memory, solid-state drive, disk storage, optical disk storage, mobile storage device or other non-volatile or volatile storage media.
[0082] In some embodiments of this application, this application also relates to a computer device, the computer device including a processor, a memory and a communication interface, wherein the memory is used to store a computer program, and the processor is used to call and execute the computer program to implement the football match danger zone prediction method based on player trajectory and spatial pressure field as described in any of the above embodiments.
[0083] Specifically, when the processor executes the computer program, it acquires player position data, football position data, player trajectory data, football trajectory data, and match status data during a football match. It then performs time synchronization, coordinate mapping, abnormal trajectory correction, and status association processing on match data from different sources to generate match time-series status data under a unified time axis. The match time-series status data is uniformly mapped to a standard football field plane coordinate system and resampling is performed based on a preset time interval.
[0084] Furthermore, the processor is used to identify the current ball-controlling side based on the distance between the football and the player, changes in the speed and direction of the football, the stability of continuous frame touches, and match event information. It also combines the team's half-court direction, the overall direction of the football's advance, and changes in player formation to identify the offensive and defensive directions, the status of ball possession, the ratio of offensive and defensive players, and the intensity of offensive and defensive transitions, in order to generate offensive and defensive situation characteristics.
[0085] Furthermore, the processor is used to divide the football field into multiple spatial grids, and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness, and shooting feasibility for each spatial grid; wherein, the offensive threat value is determined based on the distance between the attacking player and the target spatial grid, the consistency of the movement direction, and the advancing ability; the defensive coverage value is determined based on the reach time of the defending player to the target spatial grid, the defensive posture, and the defensive formation position; the passing channel unobstructedness is determined based on the passing path between the player with the ball and the target spatial grid, the degree of defensive interference, and the consistency of the passing direction; the shooting feasibility is determined based on the distance between the target spatial grid and the goal, the shooting angle, the degree of defensive obstruction, and the goalkeeper's position.
[0086] Furthermore, the processor constructs a spatial pressure field based on the offensive threat value, defensive coverage value, passing channel unobstructedness, shooting feasibility, and ball possession progression status, and calculates the danger index of each spatial grid; when the danger index exceeds a preset threshold, the corresponding spatial grid is marked as a dangerous area, and the danger level is divided according to the size of the danger index.
[0087] Furthermore, the processor is used to input the spatial pressure field within a continuous time window into the hazard area prediction model, and through one or more of the following: recurrent neural network, gated recurrent unit network, long short-term memory network, temporal convolutional network, attention network or Transformer network, to predict the location, hazard level and hazard change trend of the hazard area within a future preset time period, and generate a set of future hazard areas.
[0088] Furthermore, the processor sends the danger zone prediction results to the coach terminal device, the game analysis terminal, or the training auxiliary device through the communication interface to output the danger zone heat map, danger index, danger zone coordinates, danger level, and danger change trend. The processor updates the prediction results in real time when the game data is updated, the ball possession changes, the game stage changes, or the danger index changes, thereby realizing real-time analysis of the offensive and defensive situation of the football game, danger zone early warning, and tactical auxiliary decision-making.
[0089] The computer equipment can be a data processing server, an edge computing device, a cloud server, a competition analysis terminal, an intelligent training terminal, or any node or control node in a distributed computing system composed of multiple nodes.
[0090] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0091] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for predicting dangerous areas in football matches based on player trajectories and spatial pressure fields, characterized in that, Includes the following steps: S1: Perform time synchronization, player identity matching, football trajectory matching, and abnormal trajectory correction on the multi-source real-time data collected during the football match to generate match time sequence status data under a unified time axis; S2: Based on the match time sequence status data, identify the ball-controlling side, offensive and defensive directions, player positioning distribution, offensive and defensive player ratio, and ball possession status in the current match, and generate offensive and defensive situation characteristics; S3: Divide the football field into multiple spatial grids and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness and shooting feasibility of each spatial grid according to the spatial relationship between each spatial grid and the characteristics of offensive and defensive situations, so as to construct a spatial pressure field to characterize the spatial risk distribution of the football field. S4: Calculate the hazard index of each spatial grid based on the spatial pressure field and determine the current hazard area based on the hazard index. Input the spatial pressure field within the continuous time window into the hazard area prediction model to output the current hazard area and the location, hazard level and hazard change trend of the hazard area within the future preset time period.
2. The method for predicting dangerous areas in a football match based on player trajectory and spatial pressure field according to claim 1, characterized in that, In S1, the multi-source real-time data includes one or more of the following: player position data, football position data, player movement trajectory data, football movement trajectory data, and match status data; The player position data includes the player's horizontal and vertical coordinates in the football field's planar coordinate system; The football position data includes the horizontal and vertical coordinates of the football in the plane coordinate system of the football field; The player movement trajectory data includes one or more of the following: player speed, acceleration, direction of movement, distance traveled, and position change trend; The football trajectory data includes one or more of the following: football speed, ball direction, passing direction, dribbling direction, and ball possession change information.
3. A method for predicting dangerous areas in a football match based on player trajectories and spatial pressure fields according to claim 1 or 2, characterized in that, In S1, the method includes the following steps: S11: Resample player positions and ball positions using the first preset time as a uniform time interval; S12: For trajectory data missing for a short period of time, linear interpolation, Kalman filtering, or trajectory estimation of previous and next frames are used for correction; S13: If the speed of a player in two adjacent frames exceeds the second preset time or the position of the football changes non-physically, it is determined to be an abnormal trajectory point; if the continuous missing time of a single data source is less than the third preset time, linear interpolation or Kalman filtering is used for correction; if the missing time exceeds the preset threshold, the calculation weight of the spatial features corresponding to that time period is reduced.
4. The method for predicting dangerous areas in a football match based on player trajectory and spatial pressure field according to claim 3, characterized in that, In S2, the team in possession is determined by the distance between the ball and the player, changes in the ball's speed, and passing events; the direction of attack and defense is determined by the team's attacking direction in the current half; and the status of possession progression is determined by changes in the ball's position, speed, and direction within a continuous time window, as well as changes in the team's positioning.
5. The method for predicting dangerous areas in a football match based on player trajectory and spatial pressure field according to claim 4, characterized in that, In S2, the method includes the following steps: S21: Calculate the distance between the football and all players; S22: Filter candidate players who touch the ball at a distance less than a preset distance and determine the player who touches the ball by combining changes in the speed and direction of the football and the distance between consecutive frames; S23: Determine the team in possession based on the team of the player who touched the ball; if there is no clear player touching the ball within the preset time window, maintain possession or mark the ball as contested based on the most recent touch event.
6. A method for predicting dangerous areas in a football match based on player trajectories and spatial pressure fields according to claim 1 or 5, characterized in that, In S2, the offensive and defensive situation characteristics include one or more of the following: ball control characteristics, offensive and defensive direction characteristics, formation compactness characteristics, player lateral spacing characteristics, player longitudinal spacing characteristics, offensive and defensive player ratio characteristics, ball possession speed characteristics, and offensive and defensive transition intensity characteristics.
7. The method for predicting dangerous areas in a football match based on player trajectory and spatial pressure field according to claim 6, characterized in that, In S3, a standard football field is divided into multiple spatial grids, wherein the spatial grids are divided using a regular rectangular grid method, with a granularity of one or more of 20×14, 24×16, or 32×20.
8. The method for predicting dangerous areas in a football match based on player trajectory and spatial pressure field according to claim 7, characterized in that, In S3, the method includes the following steps: S31: Calculate offensive threat value: , in, For the number of spatial grids, O is the center point of the football field, and O is the assembly point of the attacking players. Let i be the distance between the attacking player i and the spatial grid g. For the range of influence of the attack, To ensure consistency between the direction of the attacking player's movement and the direction of the spatial grid, Weighting of offensive players' speed or driving ability. Weighting of offensive players in different positions; S32: Calculate defensive coverage value: , Where D represents the group of defending players; The distance between defensive player j and the spatial grid g. For defensive coverage parameters, For the accessibility of the defensive player to the spatial grid g, Weighting of defensive players in different positions; S33: Calculate the smoothness of the passing lane: , The degree of defensive interference near the line connecting the player with the ball and the target grid. The length of the passing path. To defend against interference attenuation parameters, This is the parameter for the decay of passing distance; S34: Calculate the feasibility of a shot: , in, The shooting angle factor of the target grid relative to the goal. The distance between the target grid and the center of the goal. To protect the degree of obstruction, This is the parameter for shot distance decay.
9. The method for predicting dangerous areas in a football match based on player trajectory and spatial pressure field according to claim 1, characterized in that, In S4, the method includes the following steps: S41: Calculate the hazard index of each spatial grid based on the spatial pressure field: ,in Let g be the danger index of the g-th grid at time t. As the offensive threat value, For defensive coverage value, To ensure the smoothness of the passing lanes. For the feasibility of shooting, For the ball possession advancement correction, Let be the weight parameters, and each weight is non-negative and their sum is 1; S42: Mark the spatial grid where the hazard index exceeds the preset threshold as a hazard area, wherein the hazard area is divided into low hazard, medium-low hazard, medium-high hazard and high hazard; S43: Input the spatial pressure field within a continuous time window into the time-series prediction model to predict and output the location, hazard level, and hazard change trend of the hazardous area within a preset future time period. The specific calculation formula is as follows: , , in, Let t be the spatial pressure field at time t, L be the length of the historical time window, and τ be the future prediction time; Φ be the temporal prediction model, including one or more of the following: recurrent neural network, temporal convolutional network, attention network, and Transformer network. For the predicted spatial pressure field after time τ, This represents the set of dangerous areas after time τ.
10. A football match danger zone prediction system based on player trajectory and spatial pressure field using the method of any one of claims 1-9, characterized in that, include: The data processing module is used to perform time synchronization, player identity matching, football trajectory matching, and abnormal trajectory correction on the multi-source real-time data collected during the football match, and generate match time sequence status data under a unified time axis. The offensive and defensive situation recognition module is used to identify the ball-controlling side, offensive and defensive directions, player positioning distribution, offensive and defensive player ratio, and ball possession status in the current game based on the game time sequence status data, and generate offensive and defensive situation features. The spatial pressure field construction module is used to divide the football field into multiple spatial grids and calculate the offensive threat value, defensive coverage value, passing channel unobstructedness and shooting feasibility of each spatial grid according to the spatial relationship between each spatial grid and the characteristics of offensive and defensive situations, so as to construct a spatial pressure field to characterize the spatial risk distribution of the football field. The hazardous area prediction module is used to calculate the hazard index of each spatial grid based on the spatial pressure field and determine the current hazardous area based on the hazard index, and input the spatial pressure field within a continuous time window into the hazardous area prediction model. The results output module is used to output the current danger zone and the location, danger level, and danger change trend of the danger zone within a preset time period.
11. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor; when the processor executes the computer program, it implements the method for predicting dangerous areas in a football match as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program; when the computer program is executed by a processor, it implements the method for predicting dangerous areas in a football match as described in any one of claims 1 to 9.
