AI-Powered Player Scouting: Scout, Recommend, Elevate Your Team's Game - ? This is a Beta version
The Player Scouting Recommendation System is a tool designed and engineered for football scouts, coaches and analysts. This system uses advanced information retrieval and artificial intelligence techniques to revolutionize player scouting. By entering a specific player, the system quickly identifies the ten most similar players, offering tailored AI-generated reports to recommend the best player for your team based on team characteristics.
To try the python application is available CSV_Version of Player Scouting Recommendation System! [DEMO].
This is the version without Solr, to try the Solr version follow the readme.txt file locally.
The project sources its data from FBRef, a leading football statistics website. With a database comprising over 200,000 players and teams, FBRef provides rich insights crucial for player performance analysis.
Leveraging Apache Solr, quickly find and access player data with Query Dynamic Suggestion System.
#### Script for Autocomplete
def search_solr(searchterm: str) -> List[any]:
# Check if a search term is provided
if searchterm:
# Query Solr for player names containing the search term
res = solr.query('FootballStatsCore', {
'q': 'Player:' + '*' + searchterm + '*',
'fl': 'Rk,Player',
'rows': 100000,
})
result = res.docs
# If results are found
if result != []:
# Create a DataFrame from the results
df_p = pd.DataFrame(result)
# Extract the 'Rk' and 'Player' columns and clean the data
df_p['Rk'] = df_p['Rk'].apply(lambda x: x[0])
df_p['Player'] = df_p['Player'].apply(lambda x: x[0])
# Return the 'Player' column as autocomplete suggestions
return df_p['Player']
else:
# Return an empty list if no results are found
return []
# Streamlit search box
selected_value = st_searchbox(
search_solr,
key="solr_searchbox",
placeholder="? Search a Football Player"
)
Discover players with similar playing styles, attributes, and statistics to your selected player.
Receive detailed and personalized player reports powered by state-of-the-art natural language generation with a fix-prompt-form.
The complete Documentation. In this doc there are all the details of the project.
The Player Scouting Recommendation System has some limitations that are important to consider:
The Player Scouting Recommendation System has been developed exclusively for demonstrative and educational purposes. This system was created as part of a project for the Information Retrieval Systems examination at the University of Naples, Federico II. It is essential to note that the recommendation system presented here is designed as a decision support tool and does not intend to replace any Football Scout or coach. It is a conceptual idea. I would like to express our gratitude to the open-source community for the invaluable tools and libraries that made this project possible. Special thanks to FBRef for providing comprehensive football data.
? This project was developed by Antonio Romano and is available on the GitHub page.