<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Louis DiMuro on Medium]]></title>
        <description><![CDATA[Stories by Louis DiMuro on Medium]]></description>
        <link>https://medium.com/@lou.j.dimuro?source=rss-c08ba1d231ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oGVNPIK05iviJwbf</url>
            <title>Stories by Louis DiMuro on Medium</title>
            <link>https://medium.com/@lou.j.dimuro?source=rss-c08ba1d231ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:02:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lou.j.dimuro/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting NFL Defensive Pass Coverages Pre-Snap with Random Forest Classification]]></title>
            <link>https://medium.com/@lou.j.dimuro/predicting-nfl-defensive-pass-coverages-pre-snap-with-random-forest-classification-d8b414733496?source=rss-c08ba1d231ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b414733496</guid>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[nfl]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Louis DiMuro]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 00:07:45 GMT</pubDate>
            <atom:updated>2025-08-20T00:07:45.511Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>This project investigates the use of<strong> Random Forest classification to predict NFL defensive pass coverages pre-snap based on spatial/positional and game-state features</strong>. By processing<strong> 8,278 passing plays from the NFL Big Data Bowl 2025 dataset</strong>, a model was trained to predict coverages such as Cover-1, Cover-2, and Cover-3, achieving a notable improvement in baseline accuracy from <strong>31.76% to 55.86%</strong>. Key spatial features, particularly the <strong>depth and alignment of safeties</strong>, were identified as the most influential predictors, aligning with traditional quarterback strategies for pre-snap defensive reading. However, challenges such as class imbalance affected model performance, with underrepresented coverages like Cover-6 achieving lower prediction accuracies. The study highlights the potential of spatial features and underscores the importance of class-balanced datasets for improving prediction accuracy in future models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*oYwZOhPCSGcI2ZbAkKGH3Q.jpeg" /><figcaption>An example of a defensive pass coverage (Cover-2)</figcaption></figure><h3>Introduction</h3><p>Predicting the type of pass coverage an NFL defense will use before the snap is one of the most complex tasks in professional American football. Various factors must be considered, including the depths and alignments of defenders, their spacing, the defensive formations, the current score, and the offensive team’s down and distance, among many others.</p><h4>Goals</h4><ol><li><strong>Prediction of Defensive Pass Coverage</strong>: Can an NFL defensive pass coverage (e.g., Cover-1, Cover-2, Cover-3, Cover-6, Quarters, or Other) be accurately predicted using classification modeling, based on pre-snap defender spatial/positional features and game state?</li><li><strong>Feature Importance</strong>: What are the key features that most significantly contribute to predicting defensive pass coverage?</li></ol><h4>Hypothesis</h4><p>While NFL defensive coverages are notoriously difficult to predict pre-snap, especially given the lengths defensive coordinators go to in order to disguise them, <strong>it is hypothesized that the model will be able to identify patterns in defensive positional and game-state features, leading to an improvement in baseline coverage prediction accuracy.</strong></p><p>Specifically, it is expected that <strong>spatial and positional features</strong> such as the alignment of safeties, the depth of cornerbacks, and the number of defenders near the line of scrimmage, as well as <strong>game-state features</strong> such as score, down, and distance, will be the most influential. These are key factors often emphasized in quarterback training to aid in predicting defensive coverages<a href="https://www.thephinsider.com/2016/6/27/%2012039106/football-101-defensive-cover-schemes-%20aka-how-a-quarterback-reads-a-defense">¹</a>.</p><h3>Methodology</h3><p>The goal of this project was to use<strong> 21 pre-snap features</strong> extracted from various NFL datasets, and train a Random Forest classification model to be able to classify NFL defensive pass coverage types so it may be used to make predictions in real-time.</p><h4>Datasets</h4><p>The data that was used for this project was taken from the NFL Big Data Bowl 2025 competition, which provided game, player, play, and tracking data from Weeks 1–9 of the 2022 NFL season<a href="https://www.kaggle.com/competitions/nfl-big-%20data-bowl-2025/data">²</a>. The specific datasets and data extracted from each are as follows:</p><p><strong>plays.csv</strong>: This dataset contains information about every play from every game Weeks 1–9 of 2022. Since this project focused purely on passing plays, this dataset was filtered to remove all running and special teams plays. Extracted features included:</p><ul><li>pff passCoverage: the pass coverage concept employed by the defense on the play. This value was used as the ground-truth label the model was trained to classify and predict</li><li>receiverAlignment: enumerated as 0x0, 1x0, 1x1, 2x0, 2x1, 2x2, 3x0, 3x1, 3x2</li><li>quarter</li><li>down</li><li>yardsToGo: distance needed for a first down</li><li>possessionTeam: team abbreviation of team on offense with possession of the ball</li><li>absoluteYardlineNumber: distance from endzone for possession team (values 0–120)</li></ul><p><strong>games.csv</strong>: This dataset contains basic data about every game that was played Weeks 1–9 of the 2022. The features that were extracted from each play were:</p><ul><li>homeTeamAbbr</li><li>visitorTeamAbbr</li></ul><p><strong>player_play.csv</strong>: This dataset contains data about the actions that each of the 22 players performed on a given play. The features that were extracted from this dataset for each play that was processed were:</p><ul><li>gameId</li><li>playId</li><li>nflId: player identification number. Used to obtain the nflIds of all 11 defensive players and the offensive center (to obtain coordinates of the ball position)</li></ul><p><strong>tracking.csv</strong>: This dataset contains the spatial, positional, and speed data for all 22 players on the field for every play, before, at the moment of, and after the snap. Since this project focuses on pre-snap defensive coverage analysis, data was extracted for a single frame just before the snap of each play. The features that were used were:</p><ul><li>x: player position along the long axis of the field, 0–120 yards</li><li>y: player position along the short axis of the field, 0–53.3 yards</li></ul><h4>Data Preprocessing</h4><p>The goal was to obtain <strong>spatial and positional data about all 11 defenders</strong> for each passing play that was analyzed, so in terms of preprocessing once the data had been successfully extracted from each of the datasets listed above, all that was left was to combine the data into the necessary features and encode all text data to numerical values.</p><p>Since the Random Forest model used for this project can only process numerical data, it was necessary to convert all text values that were obtained to corresponding numbers. Therefore, a simple encoding of text to integers was sufficient to address this problem. For instance, the ground-truth label for this project was the pff_passCoverage of each passing play, which was sorted into the following classes: [Cover-1, Cover-2, Cover-3, Cover-6, Quarters, and Other], with Other being a consolidation of several coverages that were very rare (such as Prevent and Goal Line) and had too few samples to warrant having their own class. After encoding, these classes were converted into: [0, 1, 2, 3, 4, 5]. A similar encoding was also performed for receiverAlignment (which contains text values such as “2x2,” “3x1,” “2x1,” etc). However some features required a bit more complex encoding.</p><p>Machine learning models like Random Forest tend to perform better when feature values are more generalized. For example, consider two plays where the offensive team is down by 12 points in one case and 13 points in another. Although both situations involve being behind by two possessions, the model might interpret these as distinct game situations due to the exact score differential. To address this, rather than using the raw score differential, the feature was transformed into a more generalized form: the possession_team_score_diff. This feature takes a positive value when the offensive team is ahead and a negative value when they are behind, capturing the broader game context of possessions rather than focusing on the exact point difference:</p><ul><li>score_differential = 0, possession_team_score_diff = 0</li><li>0 &lt; score_differential ≤ 8, possession_team_score_diff = 1</li><li>8 &lt; score_differential≤ 16, possession_team_score_diff = 2</li><li>16 &lt; score_differential ≤ 24, possession_team_score_diff = 3</li><li>score_differential &gt; 24, possession_team_score_diff = 4</li></ul><p>A similar grouping was performed for yardsToGo:</p><ul><li>yardsToGo = 1, yards_to_go_grouped = 0 (Very Short/Inches)</li><li>1 &lt; yardsToGo ≤ 5, yards_to_go_grouped = 1 (Short)</li><li>5 &lt; yardsToGo ≤ 9, yards_to_go_grouped = 2 (Medium)</li><li>yardsToGo &gt; 9, yards_to_go_grouped = 3 (Long)</li></ul><p>Once all the necessary data was extracted from the datasets and properly encoded, the next step was to create the <strong>spatial/positional features</strong> that were predicted to be the most useful for classifying pass defensive coverages. These features were created by leveraging the <strong>x and y-coordinates of each defender for each play</strong>. All features that were created were based on these two values for each defender:</p><ul><li>defender_dist_to_los: the distance in yards of the defender to the line of scrimmage, computed by: |absoluteYardlineNumber — defender_x_coord|</li><li>defender_y_coord</li></ul><h4>Features</h4><p>After researching what type of metrics coaches and quarterbacks primarily look for when reading a defensive pass coverage pre-snap, it appears some of the most important metrics included <strong>how deep defenders are, the spacings between them, and how many defenders are lined-up on the line of scrimmage</strong><a href="https://www.thephinsider.com/2016/6/27/%2012039106/football-101-defensive-cover-schemes-%20aka-how-a-quarterback-reads-a-defense">¹</a>.</p><p>Keeping these metrics in mind and using the two positional values described above, the following features were created:</p><ul><li>avg_defender_depth: the average defender_dist_to_los value across all 11 defenders</li><li>std_defender_depth: the standard deviation of defender_dist_to_los values across all 11 defenders</li><li>defender_lateral_spread: the difference between the defenders with the highest and lowest defender_y_coord values</li><li>middle_field_count: number of defenders with defender_y_coord within 10 yards of the ball y_coord</li><li>outside_field_count: number of defenders with defender_y_coord further than 10 yards of the ball y_coord</li><li>defenders_near_los: number of defenders with defender_dist_to_los ≤ 1.5 yards</li><li>defenders_in_box: number of defenders with defender_dist_to_los ≤ 1.5 yards and defender_y_coord within 10 yards of the ball y_coord</li><li>deepest_safety_depth: defender with position listed as “SS” or “FS” with the highest defender_dist_to_los value</li><li>next_deepest_safety_depth: defender with position listed as “SS” or “FS” with the second highest defender_dist_to_los value</li><li>safety_lateral_spread: the difference between the highest and lowest defender_y_coord values among defenders with positions listed as “SS” or “FS”</li><li>mof_open: “Middle of Field Open” boolean value, 1 if deepest_safety_depth and next_deepest_safety_depth are both &gt; 10 yards, 0 otherwise</li><li>avg_cb_depth: the average defender_dist_to_los value for defenders with position listed as “CB”</li><li>min_cb_depth: the lowest defender_dist_to_los value among defenders with position listed as “CB”</li><li>avg_lb_depth: the average defender_dist_to_los value for defenders with position listed as “LB”, “MLB”, “OLB”, or “ILB”</li><li>std_lb_depth: the standard deviation of defender dist to los values for defenders with position listed as “LB”, “MLB”, “OLB”, or “ILB”</li><li>lb_lateral_spread: the difference between the highest and lowest defender_y_coord values among defenders with positions listed as “LB”, “MLB”, “OLB”, or “ILB”</li></ul><p>Each play was represented by using spatial/positional and game-state features, with the pff_passCoverage value serving as the ground-truth label for model classification. Table 1 presents the breakdown of each ground-truth label class along with the corresponding frequency of occurrences. <strong>Overall, there were 8,278 total passing plays that were processed, with 21 input features being extracted for each play</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*EKmh5uW9zin6F-m3ZLB3cw.png" /><figcaption>Table 1: Breakdown of defensive pass coverage classes and their corresponding occurrences in the dataset</figcaption></figure><h4>Random Forest Model</h4><p>Various machine learning models are used for classification tasks, but Random Forest was chosen for this project for several key reasons.</p><p><strong>One significant advantage of Random Forest</strong> over other commonly used models like Naive Bayes and Logistic Regression <strong>is</strong> <strong>its ability to learn non-linear decision boundaries</strong><a href="https://aiml.com/what-are-the-advantages-%20and-disadvantages-of-random-forest/">³</a>. Given the complexity of NFL defensive formations, where 11 defenders are spread across the field with distinct responsibilities, Random Forest’s capability to identify patterns in seemingly noisy data was particularly valuable.</p><p><strong>Another advantage is its ability to handle large datasets with high dimensionality</strong><a href="https://aiml.com/what-are-the-advantages-%20and-disadvantages-of-random-forest/">³</a>. For this project, over 8,000 passing plays from the NFL Big Data Bowl dataset were processed to produce as many training samples as possible to get the widest range of situations and coverage looks, making Random Forest’s efficiency in managing large volumes of data essential for achieving high performance.</p><p><strong>Lastly, Random Forest provides insights into feature importance</strong><a href="https://aiml.com/what-are-the-advantages-%20and-disadvantages-of-random-forest/">³</a>, which is crucial for understanding which features contribute most to predicting defensive coverage pre-snap. This ability to assess and quantify feature significance helps prioritize the most relevant aspects of the data when training the model.</p><h4>Hyperparameters</h4><p>There were three hyperparameters that were tuned to achieve the highest possible performance:</p><ul><li>n_estimators: Random Forest is an ensemble model that combines multiple decision trees (Random Trees) to make predictions. Each tree casts a prediction “vote,” and the class with the most votes is selected for prediction. Higher values of n_estimators generally improve model stability and reduce susceptibility to data variations, but at the cost of increased computational time<a href="https://www.analyticsvidhya.com/blog/2020/03/">⁴</a></li><li>max_depth: deeper trees in Random Forest can model more complex relationships between features, but excessively deep trees may lead to overfitting, where the model memorizes the training data and fails to generalize well to new data<a href="https://www.analyticsvidhya.com/blog/2020/03/">⁴</a></li><li>class_weight: as shown in Table 1, coverages such as Cover-1 and Cover-3 have more instances than Quarters and Cover-6, leading to class imbalance. This can cause the underrepresented classes to perform poorly. To address this, the class weight was set to “balanced,” which prioritizes underrepresented classes during training</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Z2BSd02ihT-c0eIvGIiKUA.png" /><figcaption>Figure 1: Effect of n estimators and max depth on Random Forest model accuracy</figcaption></figure><p>To determine the optimal n_estimators and max_depth values, four Random Forest models were trained with max depth values of 10, 20, 30, and 40. The accuracy of each model was evaluated across a range of n_estimators from 10 to 500 (in increments of 10). Figure 1 presents the accuracy curves for these models. The model with max_depth=30 achieved the highest overall accuracy, peaking at n_estimators=420 before gradually declining. Therefore, the final hyperparameter values selected were max_depth=30 and n_estimators=420.</p><h4>Training and Validation</h4><p>After processing all <strong>8,278 plays</strong> with the appropriate features and labeling them with the corresponding pff_passCoverage, the data was ready to be input into the Random Forest model for training. The data was split into a <strong>training set (80%, or 6,622 plays)</strong> and a <strong>validation set (20%, or 1,655 plays)</strong>. The training set was used to train the Random Forest model, while the validation set served to evaluate the model’s performance on unseen data.</p><h4>Evaluation Metrics</h4><p>Several metrics are used to evaluate the performance of the Random Forest model:</p><ul><li><strong>Accuracy</strong>: the ratio of correctly predicted defensive coverages to the total number of predictions. This metric provides a general measure of model performance</li><li><strong>Precision</strong>: the number of correctly identified instances of a specific defensive coverage divided by the total number of times the model predicted that coverage. This indicates how often the model’s predictions for a given coverage were correct<a href="https://medium.com/analytics-%20vidhya/evaluating-a-random-forest-model-%209d165595ad56">⁵</a></li><li><strong>Recall</strong>: the number of correctly identified instances of a defensive coverage divided by the total actual instances of that coverage in the dataset. This measures the model’s ability to capture all relevant instances of each coverage type<a href="https://medium.com/analytics-%20vidhya/evaluating-a-random-forest-model-%209d165595ad56">⁵</a></li><li><strong>F1-Score</strong>: The combination of precision and recall, offering a balanced measure of model performance by considering both the ability to correctly predict coverages (precision) and the ability to identify all relevant instances (recall)<a href="https://medium.com/analytics-%20vidhya/evaluating-a-random-forest-model-%209d165595ad56">⁵</a></li></ul><p>In this project, <strong>recall</strong> <strong>is the most important metric</strong>, as it evaluates how well the model identifies all instances of each coverage type, particularly for minority classes like Cover-6, which may be missed by the model. <strong>The F1-score is also critica</strong>l because it balances both precision and recall, providing a more comprehensive assessment of model performance across all coverage types. While accuracy can be informative, it may be misleading in imbalanced datasets, as a model could achieve high accuracy by simply predicting the majority class. Therefore, <strong>a combination of recall and F1-score offers a more reliable evaluation</strong>, ensuring the model’s ability to predict coverages accurately and completely, despite the class imbalances in the dataset.</p><h3>Key Findings &amp; Insights</h3><p>After utilizing all <strong>8,278 processed passing play instances</strong>, each with <strong>21 input features</strong>, the Random Forest model was able to create a substantial improvement on the <strong>baseline accuracy of 31.76%</strong> (the accuracy of the model if it were to randomly guess the coverage of every play in the validation set), <strong>improving it to 55.86% (a 75.9% increase)</strong>. The model’s performance was evaluated using several metrics, including precision, recall, and F1-score. <strong>The weighted average recall and weighted average F1-score of all coverages were 56% and 55%</strong>, respectively, indicating that the model was able to identify underlying patterns within features of the data. <strong>The most important features that contributed most to the model performance were all depth-related, with the top most important features being deepest safety depth and next deepest safety depth</strong>, with game-state features like yards to go and receiver alignment all contributing very little. Despite the increase in performance from the baseline, it is apparent that predicting a defensive coverage pre-snap using only static spatial/position and game-state features is a tough task.</p><h4>Model Performance Analysis</h4><p>Table 2 presents the performance results of the model, with precision, recall, and F1-score for each of the 6 coverage classes, as well as the weighted averages of each category across all coverage classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*gJSBbBdeOEDIXsW8f56v0w.png" /><figcaption>Table 2: Precision, recall, and F1-score for each coverage class along with accuracy and weighted average</figcaption></figure><p><strong>The highest precision and recall values were achieved by </strong><strong>Cover-1 (Class 0) and </strong><strong>Cover-3 (Class 2)</strong>, likely due to the large number of instances available for these coverages, giving the model more examples to learn from and improve its performance. In contrast, <strong>coverages like </strong><strong>Cover-2 (Class 1), </strong><strong>Cover-6 (Class 3), and </strong><strong>Quarters (Class 4) had significantly fewer instances, which likely contributed to their lower precision, recall, and F1-scores.</strong></p><p>Interestingly, <strong>Other (Class 5), despite having the second-lowest number of instances, performed better than expected</strong>, producing the third-highest results in terms of F1-Score. This is likely because the Other category includes rare and distinct coverages like Prevent and Goal Line, which have unique spatial and positional characteristics. For example, Prevent coverage involves defenders positioned very far from the line of scrimmage, while Goal Line coverage has defenders positioned very close to it. These distinctive features most likely made these coverages easier to identify, even with fewer occurrences.</p><p><strong>The weighted average was preferred over the macro average because the weighted average accounts for the distribution of class sizes, making it a more accurate reflection of model performance in real-world scenarios</strong><a href="https://scikit- learn.org/stable/modules/generated/ sklearn.metrics.f1 score.html">⁶</a>. Since Cover-6 (Class 3) is a less common coverage and Cover-1 (Class 0) is more frequent, treating them equally would not reflect the true impact of class imbalance in real-world situations. <strong>The weighted average values for precision, recall, and F1-score (55–56%) indicate moderate overall performance, with a slight emphasis on correctly identifying the more frequent coverages</strong>. The close alignment between precision and recall suggests that the model is not overemphasizing either completeness or accuracy, although there is room for improvement, particularly for underrepresented classes like Cover-6 and Quarters. The low scores for these coverages underscore the challenges posed by class imbalance in machine learning models, where rare classes are harder to predict accurately.</p><h4>Confusion Matrix</h4><p>A confusion matrix is a table that evaluates a classification model’s performance by comparing its predictions to the actual results<a href="https://www.geeksforgeeks.org/confusion-%20matrix-machine-learning/">⁸</a>. In this case, it shows how the Random Forest model’s predicted coverages align with the true coverages assigned to each play. Figure 2 presents the confusion matrix for the coverages Cover-1, Cover-2, Cover-3, Cover-6, Quarters, and Other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*jwEY--Bym8i-7H7o1_4Xhg.png" /><figcaption>Figure 2: Confusion matrix comparing predicted and actual pass coverages</figcaption></figure><p>A well-performing model should produce a confusion matrix where the diagonal values contain the highest precision scores, indicating correct predictions of the actual class label. As shown in Figure 2, while not perfect, the diagonal values are the darkest and show the highest precision values, with the model correctly predicting the true label for each coverage most of the time. <strong>The model performed moderately well for </strong><strong>Cover-1, </strong><strong>Cover-3, and </strong><strong>Other, correctly predicting 57%-65% of instances</strong>. <strong>However,</strong> <strong>it struggled with </strong><strong>Cover-2, </strong><strong>Quarters, and especially </strong><strong>Cover-6, where it correctly predicted only 42%-49% of instances</strong>. This was expected, as these coverages were less represented in the dataset, with Cover-6 having the smallest class size and the lowest precision at 42%. This highlights the impact of class imbalance on model performance, and these low precision values could potentially improve with more instances of underrepresented coverages like Cover-6 and Quarters.</p><h4>Feature Importance</h4><p>One of the key reasons for using the Random Forest model in this project is its ability to quantify the contribution of each input feature to model performance. Figure 3 displays the importance of each feature for predicting defensive pass coverage pre-snap from most important to least important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*PlUYux1EALsuRohHt9ALlA.png" /><figcaption>Figure 3: Feature Importance plot highlighting the most influential features in predicting defensive pass coverage</figcaption></figure><p><strong>These results clearly indicate that depth, particularly the alignment of safeties, is the most important factor for predicting defensive coverage</strong>. The features deepest_safety_depth and next_deepest_safety_depth ranked as the top two, which aligns with common pre-snap reading techniques used by quarterbacks<a href="https://www.thephinsider.com/2016/6/27/%2012039106/football-101-defensive-cover-schemes-%20aka-how-a-quarterback-reads-a-defense">¹</a>. One of the first ways quarterbacks are taught to diagnose a defensive pass coverage pre-snap is identifying how many safeties are dropped back deep from the line of scrimmage<a href="https://jenkinselite.com/how-to-teach-quarterbacks-to-read-defenses">⁷</a>.</p><p>The importance of safety depth outweighs that of cornerback (CB) and linebacker (LB) depth, with safeties being the most influential, followed by cornerbacks and then linebackers, as shown in Figure 3. The lateral spread of defenders appears less important than their depth, as these features rank lower in importance. However<strong>, position-based spatial features, such as depth and spread, are significantly more important than game-state features (e.g., </strong><strong>down and </strong><strong>yards_to_go) or other spatial features (e.g., </strong><strong>defenders_in_box and </strong><strong>defenders_near_los)</strong>. This is evident from the large drop-off in Feature Importance Score between the lowest position-based spatial feature (lb_lateral_spread with a score of 0.0526) and the next highest feature (possession_team_score_diff with a score of 0.0264). Interestingly, <strong>defenders_in_box and </strong><strong>defenders_near_los, despite being key metrics in identifying pass coverages for quarterbacks</strong><a href="https://www.thephinsider.com/2016/6/27/%2012039106/football-101-defensive-cover-schemes-%20aka-how-a-quarterback-reads-a-defense"><strong>¹</strong></a><strong>, had relatively low scores</strong>.</p><h3>Further Improvements</h3><p>While it’s challenging to predict pass coverage with certainty based solely on defenders’ static positions pre-snap, this model has demonstrated that underlying patterns can be leveraged for prediction. However, there are opportunities to enhance its performance.</p><p>Two key methods often used by quarterbacks to identify coverages involve motion. First, a quarterback can send a receiver “in motion” by having them move along the offensive formation before starting the play. Observing the defense’s reaction to the receiver’s movement can offer insights into the coverage they are about to play<a href="https://www.thephinsider.com/2016/6/27/%2012039106/football-101-defensive-cover-schemes-%20aka-how-a-quarterback-reads-a-defense">¹</a>. Second, defenders often begin moving in relation to their coverage assignment before the snap. For instance, a defender who is about to blitz the quarterback might begin moving toward the line of scrimmage moments before the ball is snapped. <strong>Incorporating dynamic features, like defender movement in response to receiver motion and defender acceleration just before the snap, could significantly improve the model’s accuracy by adding more context to the defenders’ pre-snap positioning</strong>.</p><h3>Conclusion</h3><p>Overall, there were several key findings that were uncovered through the process of this project.</p><p>Firstly, <strong>the model’s ability to increase the baseline accuracy from 31.76% to 55.86% (a 75.9% increase) supports the first part of the hypothesis that underlying patterns in pre-snap defender spatial features and game-state features can be classified by a machine learning model and leveraged to predict defensive pass coverage</strong>.</p><p><strong>The second part of the hypothesis was partially validated</strong>. It was predicted that commonly taught techniques, such as observing the alignment of safeties, cornerback depth, number of defenders in the box, as well as game-state features like score, down, and distance, would be the most influential. <strong>The model confirmed that safety positioning (with the depth of safeties being the top two most important features) is critical. However, contrary to expectations, the depth of defenders proved to be the most significant factor, while features like the number of defenders in the box and game-state had much less impact on predictions, challenging conventional methods</strong>.</p><p>The final key insight was the impact of class imbalance on model performance. Coverages such as Cover-1 and Cover-3, which had a higher frequency in the dataset, achieved the highest prediction accuracies. In contrast, Cover-6 and Quarters, which were less frequent, yielded the lowest accuracies due to insufficient training data. <strong>This underscores the importance of a well-balanced dataset for training machine learning models and suggests that more data from underrepresented coverages could improve accuracy and overall model performance</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b414733496" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting NFL “Short Pass Success” with a CNN]]></title>
            <link>https://medium.com/@lou.j.dimuro/predicting-nfl-short-pass-success-with-a-cnn-2f279c985769?source=rss-c08ba1d231ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f279c985769</guid>
            <category><![CDATA[nfl]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cnn]]></category>
            <dc:creator><![CDATA[Louis DiMuro]]></dc:creator>
            <pubDate>Sun, 17 Aug 2025 21:27:32 GMT</pubDate>
            <atom:updated>2025-08-19T19:52:27.952Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>This project utilizes NFL player tracking data to build a Convolutional Neural Network (CNN) that predicts, at every moment of a play, the probability that a short pass to a receiver will succeed in meeting down-and-distance thresholds, producing a clear “green/yellow/red-light” indicator for analyzing receivers and play design.</p><p>Using ~3,200 plays of NFL Next Gen Stats tracking data, I constructed (13 × 11 × 10) tensors capturing spatial, velocity, and game-context features of all 22 players during a play. The model achieves strong performance, <strong>with PR-AUC = 0.79 (~33% better than baseline) and 80% accuracy on plays it rated as high-probability successes, </strong>and powers a <a href="https://nfl-short-pass-success-probability.streamlit.app/">Streamlit demo</a> that visualizes short pass success probabilities in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IwE0X_Nn2nfgHH9yLDTMXQ.gif" /><figcaption>Example of visual results produced by the model</figcaption></figure><h3>Introduction</h3><p>While explosive deep shots and long passes often capture the spotlight in highlight reels, short passes near or behind the line of scrimmage have become increasingly central to modern NFL offensive strategies. Their usage, though less flashy, has risen steadily as defenses prioritize restricting downfield passing opportunities and limiting vertical plays. Through Week 2 of the 2024 season, <strong>more than 24% of of all league throws occurred at or behind the line of scrimmage, while QBs are averaging 7.4 air yards/attempt, representing the highest short-pass rate and lowest air yards figure to open a season since such statistics began being recorded in 2006</strong><a href="https://www.nytimes.com/athletic/5777845/2024/09/19/nfl-quarterbacks-short-pass-trend/"><strong>¹</strong></a>(according to TruMedia stats).</p><p>Due to the popularity of playing two high safeties to protect against deep shots, <strong>it is becoming increasingly necessary to focus attention on shorter passes underneath</strong>. Unlike regular down-field passes, in which yards after catch (YAC) is just an added bonus, passes at/behind the line of scrimmage <em>depend</em> on YAC to be successful. There are existing metrics that can assist in evaluating plays of this type. For instance, xYAC can predict the number of yards a receiver is expected to gain after a catch. However, it can only predict a continuous number and does not take into account game context (down, distance, etc.). Expected Points Added (EPA), which measures how many expected points a single play adds/subtracts on a given possession, does take into account game context, but only evaluates the play <em>after</em> it is over. Neither xYAC nor EPA tells a coach <em>before the ball leaves the QB’s hand</em> whether the current player spacing and defender velocities relative to a receiver make a short pass “worth it” in the given game situation.</p><p>To shift from hindsight to foresight in short-pass evaluation, I present a “success” predictor for passes to receivers near or behind the line of scrimmage. Using player tracking data at the moment a pass is thrown, a CNN outputs a <strong>“Short Pass Success Probability” (SPSP)</strong>, the probability that a short pass to a receiver at that moment of the throw will meet a game-context-aware “success” threshold, with “success” defined as:</p><ul><li><strong>≥40%</strong> of yards-to-go gained on <strong>1st down</strong></li><li><strong>≥60%</strong> of yards-to-go gained on <strong>2nd down</strong></li><li><strong>100%</strong> of yards-to-go gained on <strong>3rd/4th down</strong></li></ul><p>In 5-fold stratified cross-validation on <strong>3,229 plays</strong>, the model achieves <strong>PR-AUC=0.791</strong> (on a 0.5941 baseline) and has an <strong>80%</strong> <strong>accuracy on plays with an SPSP value of ≥70%</strong>.</p><h3>Data Preprocessing</h3><h4>Input Tensor Construction</h4><p>To train the model, I filtered play-by-play NFL Next Gen Stats tracking data from Weeks 1–8 of 2021 and Weeks 1–9 of 2022, retaining only:</p><ul><li>Pass plays resulting in a <strong>completion</strong></li><li>Throws that traveled <strong>≤ 2 yards</strong> beyond the line of scrimmage</li></ul><p>For each eligible play, I extracted the <strong>positional and speed tracking data of all 22 players</strong> at the exact frame when the ball left the quarterback’s hand (pass_forward).</p><p>Due to the limited features provided in publicly available NFL tracking data, this project employed innovative extraction methods to derive relevant variables necessary for analysis.</p><p>Identifying the intended receiver required parsing the playDescription of every sample play, which always contains their abbreviated name (e.g., “K.Murray <em>s</em>hort pass right to <strong>T.McBride</strong>”). From this, I was able to match the receiver to their unique nflId in the player data.</p><p>A complication arose with the 2021 data: it lacked the passLength feature, which is explicitly available in 2022 and indicates throw distance. To resolve this, I instead used the receiver’s <strong>x-coordinate</strong> at the pass_forward frame and filtered plays where their location was ≤ 2 yards from the line of scrimmage.</p><p>Once plays were selected, I borrowed the core idea for the input tensors from the 2020 NFL Big Data Bowl winning project <em>The Zoo</em><a href="https://www.kaggle.com/competitions/nfl-big-data-bowl-2020/writeups/the-zoo-1st-place-solution-the-zoo">²</a>. I kept their 10 core channels that capture player-to-player spacing and movement, and added 3 more game-context channels. My final tensor shape was <strong>(13, 11, 10):</strong></p><ul><li><strong>Channels 0–1:</strong> Defender velocity (v_x, v_y)</li><li><strong>Channels 2–3:</strong> Defender position relative to receiver (x, y)</li><li><strong>Channels 4–5:</strong> Defender velocity relative to receiver (v_x, v_y)</li><li><strong>Channels 6–7:</strong> Offensive/Defensive pair relative position (x, y)</li><li><strong>Channels 8–9:</strong> Offensive/Defensive pair relative velocity (v_x, v_y)</li><li><strong>Channel 10:</strong> Down (normalized and one-hot encoded: 1st, 2nd, or 3rd/4th down)</li><li><strong>Channel 11:</strong> Yards-to-go for a 1st down (normalized and one-hot encoded: min=0.5, max=30)</li><li><strong>Channel 12:</strong> Receiver position (normalized and one-hot encoded: WR, RB, TE, FB, or Other)</li></ul><p>These channels were implemented for all pairs of 11 defensive-players and 10 offensive-players (11 offensive-players − 1 intended receiver). After processing, I had <strong>3,269 samples, </strong>each a tensor of shape <strong>(13, 11, 10)</strong>.</p><h4>Label Construction</h4><p>Since the model predicts whether or not a short pass attempt will be “successful,” each play required a binary label. <em>Success</em> was defined using game-context-aware thresholds:</p><ul><li><strong>1st down:</strong> ≥40% of yards-to-go gained</li><li><strong>2nd down:</strong> ≥60% of yards-to-go gained</li><li><strong>3rd/4th down:</strong> 100% of yards-to-go gained</li></ul><p>Plays meeting these criteria were labeled <strong>1 (success),</strong> otherwise <strong>0 (no success)</strong>.</p><p>This produced a dataset with a <strong>59%–41% class split</strong>, with <em>success</em> being the majority class.</p><h3>CNN Model Architecture</h3><h4>Why a CNN?</h4><ul><li>Convolutional Neural Networks are well-suited for learning <strong>local spatial relationships</strong> (e.g., “Defender A is moving toward the receiver at X mph while Defender B is far away”).</li><li>Given the relatively small size of the input tensors (13 × 11 × 10) paired with their richness in spatial features, a <strong>shallow network</strong> is able to capture meaningful interactions. Therefore, implementing a deep ResNet‑style model is unnecessary.</li></ul><h4>PyTorch Architecture</h4><p>The following outlines the structure of the CNN implemented in PyTorch:</p><pre># Input: (13, 11, 10)<br><br># Features<br>Conv2d(13, 32, 3, padding=1), <br>BatchNorm2d(32), <br>ReLU(),<br><br>Conv2d(32, 64, 3, padding=1), <br>BatchNorm2d(64), <br>ReLU(),<br><br>SqueezeExcite(64, r=4),<br>AdaptiveAvgPool2d((1, 1))<br><br># Classifier<br>Flatten(),<br>Dropout(0.3),<br>Linear(64, 1),<br>Sigmoid()</pre><ul><li><strong>Conv2D(13 → 32)</strong>: captures low-level patterns (e.g., defender-to-receiver distances)</li><li><strong>BatchNorm</strong>: normalizes each channel for training stabilization</li><li><strong>ReLU</strong>: introduces non-linearity to allow the extraction of complex patterns</li><li><strong>Conv2D(32 → 64)</strong>: captures deeper patterns (e.g., offensive/defensive-player angles, velocities, alignments, etc.)</li><li><strong>SqueezeExcite</strong>: allows the model to isolate and focus attention on the most important channels in a sample, given the play state (e.g., down &amp; distance vs. defender velocities relative to receiver)</li><li><strong>AdaptiveAvgPool2D</strong>: collapses each 11 × 10 spatial/velocity grid into a single compact value per channel, which captures the general “success strength” of the play</li><li><strong>Flatten + Dropout</strong>: the final values are flattened into a single vector, and Dropout randomly deactivates 30% of the features during training to reduce overfitting and improving generalization</li><li><strong>Linear</strong>: fully-connected layer that maps the flattened vector to a final score</li><li><strong>Sigmoid</strong>: squashes this final score to a value between 0.0–1.0, which represents the <strong>Short Pass Success Probability (SPSP)</strong> that is used as the final probability result for the input</li></ul><h4>Hyperparameters</h4><ul><li><strong>Optimizer</strong>: Adam, weight_decay=1e-4</li><li><strong>Scheduler</strong>: OneCycleLR, max_lr=3e-4</li><li><strong>Criterion</strong>: BCEWithLogitsLoss, (weighted to account for class imbalance of <em>success</em>/<em>no success</em> samples)</li></ul><h4>Training</h4><ul><li><strong>Samples:</strong> 3,229 (~40 reserved for the <a href="https://nfl-short-pass-success-probability.streamlit.app/">Streamlit demo</a>)</li><li><strong>Epochs:</strong> ~30–40 with early stopping</li><li><strong>Cross‑validation:</strong> 5‑fold stratified, repeated and averaged over 4 seeds</li><li><strong>Optimization metric:</strong> maximize <strong>PR‑AUC</strong> (primary metric for imbalanced binary classification)</li></ul><h4>Metrics</h4><p>The following metrics were used to evaluate the performance of the trained model:</p><ul><li><strong>PR-AUC (Precision-Recall Area Under Curve)</strong>: measures how well the model identifies true<em> successful </em>plays without being misled by the class imbalance (59% <em>success</em>, 41% <em>no success</em>). Higher PR-AUC means the model ranks successful plays ahead of unsuccessful ones more reliably.</li><li><strong>High/Med/Low Confidence Accuracy</strong>: splits SPSP predictions into tiers (≥70%, 40–69%, ≤40%) and checks if the model is actually right when it claims to be “very confident” or “not confident.” This helps test whether SPSP probabilities can be trusted for decision-making.</li><li><strong>Brier Score</strong>: measures the calibration of SPSP predictions. For example, if the model predicts a 70% chance of success on 100 plays, ~70 of those should succeed. A lower Brier score means predicted probabilities match real outcomes more closely.</li><li><strong>ROC-AUC (Receiver Operating Characteristic Area Under Curve)</strong>: evaluates how well the model separates <em>successful</em> from <em>unsuccessful</em> plays overall. A ROC-AUC of 0.73 means that in 73% of random pairs (<em>successful</em> vs. <em>unsuccessful</em>), the <em>success</em> play is ranked higher.</li><li><strong>Accuracy</strong>: standard percentage of correct predictions (<em>success</em> vs. <em>no success</em>). Useful as a quick way to see if the model is learning anything from the inputs, but less informative here since many plays are inherently 50/50 and black-and-white accuracy can hide nuance in the probability-based predictions.</li></ul><h3>Validation Results</h3><p>The goal of this project was to <strong>predict the probability (SPSP) that a short pass (≤ 2 yards beyond the line of scrimmage) will meet the <em>success</em> threshold</strong> using the tracking data of all 22 players on the field at the moment the QB throws to the receiver. Utilizing a total of 3,229 training samples, the results of 3 models were compared:</p><ul><li>CNN (outlined above)</li><li>Logistic Regression (with flattened 13 × 11 × 10 tensors used by CNN)</li><li>A random coin-flip baseline (uniform [0, 1] probabilities)</li></ul><p>Model performance was evaluated using <strong>5-fold stratified cross-validation averaged across 4 seeds. </strong>The following results were obtained:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*hGDoXTlW6rpsubt7Hft3cg.png" /><figcaption>Figure 1: Results of various evaluation metrics for CNN, Logistic Regression, and Baseline</figcaption></figure><h4>PR-AUC</h4><p>CNN’s PR-AUC performance of 0.7929 (shown in Figure 1) is more than a 33% improvement over the random baseline and a ~16% improvement over Logistic Regression. This PR-AUC value indicates that CNN is effectively able to identify true <em>successful</em> plays, and if all predictions from the model were ranked by their predicted SPSP, the top 10% of the ranked plays would contain roughly 3x as many actual <em>successes</em> as would be expected by random ordering.</p><h4>ROC-AUC</h4><p>Similarly, CNN’s ROC-AUC performance of 0.7314 (shown in Figure 1) is nearly a 50% improvement over the baseline and ~20% improvement over Logistic Regression. Unlike the PR-AUC however, ROC-AUC measures how well the model distinguishes between <em>successful</em> and <em>unsuccessful</em> plays across all thresholds. In this case, the ROC-AUC of 0.7314 suggests the model correctly ranks a randomly chosen <em>successful</em> play higher than a randomly chosen <em>unsuccessful</em> play about 73% of the time.</p><h4>Accuracy</h4><p>Overall Accuracy (shown in Figure 1) does not hold as much weight as PR-AUC and ROC-AUC due to the inherently noisy environment of football plays and the prevalence of 50/50 outcomes. Consequently, it is more informative to focus on High% and Low% <em>success</em> predictions. Overall Accuracy can, however, still provide insight into how effectively the models are able to extract meaningful signals from the training data in order to make predictions. CNN’s improvement in accuracy from ~59% to ~68% represents a modest yet meaningful gain, demonstrating the presence of predictive information within relative positional/velocity features and the model’s ability to detect meaningful patterns. In contrast, Logistic Regression, only produced an accuracy consistent with random guessing, indicating that the patterns within the training set were too complex to be captured by Logistic Regression alone.</p><h4>Brier Score</h4><p>Brier score measures how accurate the probability predictions of the models are, penalizing wrong predictions based on how far away from the target they were (e.g., a <em>successful </em>prediction of 0.8 when the true outcome was <em>unsuccessful</em> would incur a large penalty). Ideally, a well-calibrated model’s predictions should correspond with the true frequency (e.g., plays in which the model predicts 80% <em>success</em> rates should succeed around 80% of the time). Figure 1 shows the comparison of Brier scores between CNN and Logistic Regression. The baseline Brier score was calculated by always predicting the rate of the majority class (0.59), yielding a baseline Brier score of 0.2419. Logistic Regression achieved only a marginal improvement over this baseline, indicating that while it was able to produce non-trivial gains over the baseline when dealing with extreme <em>success</em> and <em>no success</em> samples, it is not very reliable in its overall probability prediction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*0tlC4IGphJuXOAArsMpQqA.png" /><figcaption>Figure 2: The Calibration Curve of CNN (4-seed average), which achieved a Brier score of 0.2026 (an improvement over the 0.2419 baseline)</figcaption></figure><p>Alternatively, the CNN demonstrated substantially better calibration than both the baseline and Logistic Regression. As shown in Figure 2, the CNN calibration curve hugs the “Perfect Calibration” line very closely. Despite the model being slightly “optimistic” in its predictions of <em>unsuccessful</em> plays (e.g., predicts ~33% success in plays with a true success frequency of ~25%), it was nearly perfectly calibrated for <em>successful</em> plays, making this model reliable in identifying plays that have ≥70% success rates.</p><h4>High/Med/Low Confidence Accuracy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vfj5AN7PigZkGG1Omtw3bg.png" /><figcaption>Figure 3: Accuracy of each model when predicting High/Med/Low Confidence Success</figcaption></figure><p>This reliability is further illustrated in Figure 3, in which the CNN has an ~80% accuracy on plays it predicted to have a ≥70% <em>success</em> probability and a ~70% accuracy on plays with predicted <em>success</em> probability of ≤40%. While producing results above the baseline, the Logistic Regression model does not perform nearly as well as the CNN. Both models, however, performed closely to the baseline on medium confidence plays (40–69% success probability), which is expected given the inherent noise and numerous interacting variables that make near 50/50 outcomes in any given football play especially difficult to predict.</p><h4>Validation Results Summary</h4><p>Overall, the CNN effectively detected meaningful patterns within the positional/velocity inputs, substantially outperforming Logistic Regression. While still detecting some patterns, the Logistic Regression model was not able to approach the results of the CNN, verifying the efficacy of the CNN to capture non-linear and subtle spatial/speed patterns in this domain. <strong>Given the results, the CNN excelled at identifying plays with High and Low Confidence <em>success</em> probabilities, demonstrating its greatest reliability when predicting a play to have a SPSP of ≥70%.</strong></p><h3>Visual Demo of Results</h3><p>From the original pool of a total of 3,269 sample plays, 40 were removed from the training set to be used as an unseen testing set. Figures 4–7 show the visualizations of 5 of these unseen plays to illustrate the performance of the fully trained CNN (the full set can be viewed <a href="https://nfl-short-pass-success-probability.streamlit.app/">here</a>).</p><p>For each of these unseen plays, all frames from ball snap to the moment of the throw were fed into the CNN to produce a SPSP value for the intended receiver at every moment of the play.</p><p>The left visualization displays the movements of all 22 players on the field over the course of the play, with the intended receiver highlighted by an indicator whose color corresponds to their current success probability at that moment of the play (green=high SPSP, orange=medium SPSP, red=low SPSP). The right visualization plots the intended receiver’s SPSP trajectory throughout the play, synchronized with the left visualization for easier readability. For a more stable plot, the rolling average of the SPSP (window size of 3) was taken at each frame.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pt-O-vGqzHcxEpGt56-TuQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y2ipTHFJiWMHIiuTJi3gjw.gif" /><figcaption>Figure 4: Unsuccessful 3rd &amp; 3 short pass (final SPSP=18.63%)</figcaption></figure><p>A representative demonstration of the model is shown in Figure 4. Since this sample play occurred on a 3rd down, the receiver needed to obtain a 1st down in order for the play to be defined a <em>success</em>. As the receiver drifted toward the left sideline and nearby defenders shifted their attention away from him, the receiver’s SPSP increased into the “high success probability” zone, reaching a maximum SPSP of 93.98%. Unfortunately, the QB did not immediately target him, allowing a defender time to re-focus attention on the receiver and close the distance. By the time the QB <em>actually</em> threw to the receiver, the receiver’s SPSP had collapsed to 15.66%, with the defender in a strong position to prevent a 1st down gain. This example highlights how SPSP captures dynamics, momentary shifts in play success probability, offering insight into both missed opportunities and defensive adjustments in real time.</p><h4>True Positive</h4><p>Figure 5 shows the visualization of a True Positive (<em>successful</em>) play. The intended receiver’s SPSP enters the “high success probability” zone as he moves past the O-line/D-line, and continues to rise as the closest DB (near the line of scrimmage) continues to backpedal. The SPSP plateaus once the DB halts his backward movement and dips slightly as he turns his body towards the receiver. However, there is enough distance between the two for the receiver to gain the necessary yards for a “successful” play once the QB throws the ball.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bXMkxwmkwtpkOSVO8oHePg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqJtUOfqebV3M14gIRJLJQ.gif" /><figcaption>Figure 5: True Positive: Successful 1st &amp; 10 short pass (final SPSP=76.73%)</figcaption></figure><h4>True Negative</h4><p>Figure 6 shows the visualization of a True Negative (<em>unsuccessful</em>) play. Due to being 3rd &amp; Long, the probability of converting with a short pass to a receiver near or behind the line of scrimmage is low given the amount of YAC required. The model appears to have captured this dynamic during training, as the receiver’s SPSP remains in the “low success probability” zone throughout the entire play. This visualization clearly shows that the receiver never had a realistic chance of securing a 1st down once the ball was thrown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sn9eJWfNDC_B1gBxZlhy2g.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXIAIXvYo4PIggPJe0iD8g.gif" /><figcaption>Figure 6: True Negative: Unsuccessful 3rd &amp; 10 short pass (final SPSP=13.87%)</figcaption></figure><h4>False Negative</h4><p>Figure 7 shows the visualization of a play that was predicted to be Negative (<em>unsuccessful</em>), but ended up being Positive (<em>successful</em>). At the moment of the throw, the receiver appeared unlikely to achieve a 1st down given the 2-on-3 blocking disadvantage ahead of him and remaining yards needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jJ9-oUSbq4BapN6_Bgoqw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ofajRJn55t5sy5CjoGZRzw.gif" /><figcaption>Figure 7: False Negative: Successful 3rd &amp; 9 short pass that was predicted to be Unsuccessful</figcaption></figure><p>Despite unfavorable conditions, in the actual live play (Figure 8), the receiver executes an impressive juke that causes the two closest defenders to collide, granting the receiver enough space to pick up the 1st down:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8Xt93c2LLjraPCi1tfWPcQ.gif" /><figcaption>Figure 8: The actual live play corresponding to the False Negative in Figure 7</figcaption></figure><p>This play illustrates the inherent variability of football and the reality that no model can perfectly predict the outcome of every play. However, such predictions can be used to highlight receiver ability. For instance, when analyzing the SPSP of every short pass to a certain receiver, the number of instances in which they were able to turn a predicted <em>unsuccessful</em> play into a <em>successful</em> play might indicate an above-average ability to “turn nothing into something” (e.g., breaking tackles, making defenders miss, etc.).</p><h3>Conclusion</h3><h4>How is this useful?</h4><p>Ok, that was a lot. But what does this all mean? <strong>Essentially, the “Short Pass Success Probability” (SPSP) provides a clear indication of whether or not a short pass is “worth it</strong>.” Since short passes and checkdowns are often secondary or tertiary option on pass plays, SPSP can act as a <strong>“green light” signal</strong> for the optimal moment to throw underneath.</p><p>Beyond timing decisions, SPSP offers several broader applications including:</p><ul><li><strong>Receiver Openness</strong>:<strong> </strong>Averaging SPSP values across all short routes for a given receiver allows coaches to answer the question, “How often is this receiver getting open around the line of scrimmage?” The standard deviation of these SPSPs can also be used to determine how “consistently” a receiver gets open.</li><li><strong>Defensive Formation Vulnerability</strong>: Aggregating all SPSPs against a specific opponent and calculating the average SPSP for each defensive formation (e.g., Cover-3, 4-man front, etc.) can reveal which defensive formations and alignments are most susceptible to short passes.</li><li><strong>“Clutchness”:</strong> For a given receiver, tracking the number of plays the SPSP predicted <em>no success</em>, but the receiver still converted could potentially quantify the receiver’s ability to “turn nothing into something” through tackle-breaking, YAC ability, or other playmaking instincts.</li></ul><h4>Limitations</h4><p>While working on this project, two primary limitations were revealed: (1) limited NFL tracking data and (2) inherent noisy environment.</p><p>First, the dataset was limited by the scope of publicly available NFL tracking data. While training a CNN in this domain this would ideally involve 10,000+ samples, only ~3,200 qualifying plays were available and fit the criteria of this project. With access to additional data, the model’s predictions could not only become more generalized, but also allow for more robust validation with enough data to have a full withheld testing set.</p><p>Second, as addressed above, football contains countless variables that all contribute to a play being a “success” or not. This inherently noisy environment can make many situations, including near 50/50 plays, difficult to predict consistently. For this reason, the project’s results primarily focus on the performance of the extremes (like High and Low Confidence probability) rather than overall accuracy alone.</p><h4>Future Improvements</h4><p>With additional data and an extended scope, a few key improvements could be implemented to further the impact of this work.</p><p>Currently, when inputting the frames of unseen plays into the model, the predictions at each frame of the play are considered independent of each other. This might be an appropriate use case for utilizing a <strong>CNN-LSTM</strong>, which incorporates a <strong>Long Short Term Memory neural network</strong> along with the CNN in order to capture time-series context of the entire play, instead of applying the base CNN to individual frames. This addition would allow the model to consider the entire play when making predictions, potentially enabling a level of pattern recognition that cannot be attained by analyzing singular moments.</p><p>With additional areas of focus in mind, this model could potentially be adapted to focus purely on <strong>screen passes</strong>. These plays, much like rushing attempts, depend heavily on blocking schemes of the offensive-linemen and receiver positioning. Training this model exclusively on screen plays (e.g., bubble screens, shovel passes, etc.) could provide a framework for quantifying the efficacy of screen setups and predicting whether particular blocking alignments are likely to succeed against specific defensive coverages.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f279c985769" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>