Battlefield Gaming Tracker — Automated Statistics Reporting

From detecting the end of a Battlefield session to a report on Discord — with automated statistics processing and AI recommendations tailored to the player.

Headshot Haven is a system prototype that combines API data, a MySQL database, Machine Learning analysis, and OpenAI with the automatic distribution of results on Discord. It does more than retrieve statistics: it prepares them for analysis, interprets them, and delivers them to users where they communicate with their team.

After a session ends, players receive a summary without entering commands, manually checking their profile, or sending screenshots. They can see changes in their results, open the full dashboard, and get tips on accuracy, strategy, and weapon selection.

Portfolio · Data Orchestration and AI

3 titles

Battlefield 5, Battlefield 2042, and Battlefield 6 statistics

Automatic report

A Discord summary after the session ends

AI Coach

Results interpretation and personalized recommendations

End-to-end data flow

API, MySQL, Machine Learning, OpenAI, and Discord

Headshot Haven — Battlefield Gaming Tracker with automated statistics reporting on Discord and an AI Coach powered by OpenAI.

The project demonstrates the entire data workflow: from collection and validation through calculations and interpretation to delivering a report to its recipient.

Problem

Statistics are available. Insights take extra work.

Players want to know whether they are making progress, what changed after their last session, and what they should work on. But simply having access to eliminations, accuracy, or playtime doesn’t provide the full answer.

Manually checking profiles, comparing results, and looking for patterns takes time away from playing and talking with the team. It is also difficult to assess the impact of an individual session when the most visible figure is the profile’s overall result.

The challenge was not just to collect data, but to bring it together in a consistent process: detect the end of a session, calculate changes, prepare the analytical context, and deliver an easy-to-understand summary. The AI layer was designed to complement the numbers with interpretation and tips for future games.

Without automation

Players put the report together themselves

They check statistics on external services, compare results, and look for reasons behind changes on their own. Historical data, weapon parameters, and current achievements all need to be compiled separately before they can inform any conclusions.

With the system

The report comes to the player

When a session ends, an automatic summary is sent on Discord. The system shows increases and overall results, while AI Coach uses player data and weapon parameters to prepare personalized recommendations.

System architecture

From raw data to a ready-to-use summary

API and Excel dataMySQLMachine Learning and OpenAIDiscord and an Excel dashboard

Data collection and a central database

Session statistics are retrieved through an API and saved in MySQL. The database also stores data prepared in the Excel application, including weapon parameters and information used to analyze play style.

The integration layer includes the Steam, PlayStation Network, Xbox Live, Discord, Microsoft Graph, Game Tools Network, and OpenAI APIs. The automation uses Python, VBA, and Power Query.

Orchestration and report preparation

The system brings together data collection, processing, aggregation, and delivery to the reporting module. Automatic detection of the end of a session makes it possible to deliver a summary without requiring any additional action from the user.

The same data powers notifications and further analysis. This means the Discord report is not a separate, manually prepared compilation, but part of a shared data flow.

Machine Learning and analytical oversight

The Machine Learning layer uses FacebookProphet and XGBoost to analyze patterns and forecast trends. Processing also includes performance metrics and TTK — the time required to eliminate an opponent.

Analytical oversight includes data validation, feature selection, and prompt quality control. This distinction matters: calculations prepare the basis for analysis, while the language model receives the context it needs to describe it.

OpenAI and dynamic prompts

A dynamic prompt combines player statistics with data about weapons and Battlefield mechanics. OpenAI uses this context to generate recommendations, interpret trends, and provide comparative analysis.

The goal is not simply to rephrase a table, but to suggest what to check or change: weapon selection, attachment setup, preferred range, or gameplay strategy.

Discord and in-depth analysis

The completed report is sent to Discord as an embed message with key metrics and a link to the full dashboard. Excel serves as a tool for visualization and in-depth analysis of trends and behavior over time.

Discord provides quick access to results, while the dashboard lets players move from a brief summary to detailed analysis.

Modules and features

How the system supports players

Automatic session summary

After a game, users receive an organized report on Discord. The notification shows both increases in key metrics and their current overall totals. This makes it easy to see how a single session affected the profile’s long-term results.

Data is grouped by context: combat, accuracy, teamwork, vehicles, and distance. This layout makes it easier to quickly identify strengths, weaker areas, and unusual deviations from previous results.

The report helps players look at relationships between metrics — for example, accuracy and eliminations, or team support and survival time. It is a starting point for evaluating a session, not just a list of achievements.

Notifications without commands or switching apps

The player receives a basic summary automatically. There is no need to run a report, copy data, or sign in to another service.

Results are available where the conversation with the team is already happening. Players can discuss the session, compare observations, and plan their next game right away. When a short notification isn’t enough, a link leads to the full dashboard.

Data-driven dynamic prompts

The Excel application contains detailed weapon parameters: type, damage, rate of fire, accuracy, recoil, and range, as well as information about play style. Data is imported into MySQL and used to build prompts for OpenAI.

This prepared context allows recommendations to refer to specific parameters rather than relying on generic advice. The system can compare weapon effectiveness with the player’s style and map conditions.

Excel application with in-game weapon parameters like type, damage, rate of fire, accuracy, recoil, range, and playing style.

AI Coach — from metrics to recommendations

OpenAI acts as a virtual coach: it interprets in-game data in the context of Battlefield mechanics and prepares tips for the user.

Support includes:

  • Identifying patterns in accuracy, preferred ranges, and effectiveness on maps.
  • Recommendations for weapon selection, attachment setups, and strategy.
  • Comparing weapon effectiveness in the context of play style.
  • Training tips based on analyzed data.
  • Monitoring progress and adapting recommendations to results over time.

Recommendations support interpretation; they do not guarantee improved results. Their value depends on data quality and the context provided to the model, which is why the project includes data validation and prompt controls.

Battlefield player stats panel on Discord with KD ratio, kills, and session comparison. Provides personalized recommendations and analyses.

Current player statistics

Interactive dropdown menus on Discord let users select a player and a title: Battlefield 5, Battlefield 2042, or Battlefield 6. The application displays current metrics in organized embed message fields, also drawing on its own database.

Users don’t have to visit an external service to check their key achievements. Statistics remain available in the same environment they use to communicate with their team.

Comparing two players — benchmark

The comparison module brings together the achievements of two players in a selected Battlefield title. After the players and game are selected, the system prepares a table with visual indicators of the advantage, using emoji.

The comparison includes basic data such as eliminations, deaths, and playtime, as well as performance metrics: headshot rate, eliminations per minute, and assists per match. The system calculates derived statistics, performance metrics, and percentage comparisons.

Rather than reducing the evaluation to a single number, the benchmark shows differences across specific aspects of gameplay and helps identify areas for further analysis.

Battlefield 2042 player stats comparison in Discord, showing matches, time, kills, deaths, assists, revives, HS, K/D, HS%, K/Min, and K/Match.

Dashboard and historical analysis

Data prepared for reporting can be further analyzed and visualized in Excel. This layer makes it possible to examine trends, changes in performance, and behavior over a longer period.

A short notification answers the question, “What happened in this session?” In-depth analysis helps determine whether an observed change is a one-off or part of a broader trend.

Expanding reporting available on mobile

The project envisages the option to retrieve additional reports through Discord on a phone as well. The proposed scope includes detailed historical analysis, comparisons with other players, and AI recommendations.

This is a direction for expanding access to data: from an automatically delivered summary to additional analyses selected by the user.

Outcomes and benefits

What automated reporting changes

Less manual work

Data retrieval, processing, and summary delivery come together in one automated process. Players don’t need to put together a report themselves after every session.

A clear view of each session’s impact

Metric increases are shown alongside overall results. This makes it easier to evaluate the latest game without losing sight of long-term progress.

Consistent reporting and analysis

A central database and shared processing pipeline reduce the need to maintain separate compilations. Data prepared for Discord can also be used for further analysis and visualization.

Interpretation, not just numbers

AI Coach complements statistics with descriptions of patterns and suggested actions. Weapon parameters and performance history provide context for more tailored recommendations.

Results where the team is

The Discord report can be discussed with other players right away. There’s no need to interrupt communication or move results between apps.

A prototype of an end-to-end data workflow

The project brings together API integrations, a database, Machine Learning, a language model, and report distribution. It shows that the value of automation comes from connecting these elements — from source data all the way to useful information for its recipient.

Have data, but still rely on manual reporting?

Origami Effect brings together automation, data orchestration, and AI support — from understanding the problem to implementing a process that delivers ready-to-use reports and insights to their recipients.