Go to Post The fact is, if people dont know about nature they do nothing to preserve it...nature is something to be valued and not feared or destroyed. - Wayne C. [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-04-2013, 22:00
mmkbenbray mmkbenbray is offline
Programmer
FRC #0245 (Adambots)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Rochester
Posts: 4
mmkbenbray is on a distinguished road
Talking Adambots Automated Scouting Kit

Howdy, everyone!

Several of us on Team 245 have been developing a nifty scouting application for FRC, hosted on the Adambots website, that does OPR calculations and other event analysis on the fly. It's cross-browser compatible, and it works on most Javascript-enabled mobile devices.

Here's the link: Adambots Automated Scouting Kit

We've also made the source code available here.

AASK will begin displaying results for the Michigan State Championship as soon as the match schedule is posted. We hope to integrate global OPR calculations by Friday morning, which will be used in predicting matches and displaying information about specific teams. As of this post, those features have not yet been published.

I hope you all find it useful as the World Championship approaches! Please respond to this thread with any bug reports, suggestions, or comments you may have!

Below is a description of the tool, copied mostly from the website.

About This Tool

Below is a description of each of the calculations provided by AASK:

Rank: The team's rank at the event, in terms of Qualification Points, as reported by FIRST.
Autonomous Rating: An estimate of the number of points a team scores, on average, during the autonomous period.
Teleoperated Rating: An estimate of the number of points a team scores, on average, during the teleoperated period.
Climb Rating: An estimate of the number of points a team earns, on average, by climbing.
OPR: Offensive Power Rating. An estimate of the number of points the team scores overall, on average. This number represents the offensive utility of a team. Comparable to the OPR reported by other teams.
DPR: Defensive Power Rating. An estimate of the defensive utility of a team. May be interpreted as the number of points that a team takes away from its opposing alliance, on average.
CCWM: Calculated Contribution to Winning Margin. An estimate of the number of points a team contributes to the winning margin of its alliance.

Should My Team Still Scout?

Yes! AASK is meant only as a secondary source of information, either as a basis for comparison or to replace missing or faulty information. We do not guarantee that the results of our estimates will accurately reflect the capabilities of each team.

How Does This Work?

For each point category, our system solves a system of linear equations for the "average contribution" of each team per match. Each equation corresponds to a single team and expresses the total accumulated points earned by that team as a linear combination of that team's average contribution and the average contributions of every other team that has competed on an alliance with that team. Naturally, we represent the system of equations with a single matrix equation of the form Ax=b
  • Vector b contains the aggregate point value (one of AP, CP, TP, or their sum) for each team.
  • Each element A(i,⁣j) of matrix A represents the number of times team i has played with team j. Each element on the diagonal, therefore, is the total number of matches played by the team represented by that row and column. As a result, our matrix has the following properties:
    • It is symmetric.
    • It is irreducibly diagonally dominant.
  • We solve for the vector x, which contains the average contribution of each team.

Because of the special properties of our matrix, we can easily find an exact solution when the matrix is nonsingular using LU Factorization (without pivoting!) followed by forward- and back-substitution. When the matrix is singular, we approximate the solution iteratively with the Gauss-Seidel method and display a warning to the user.

The Defensive Power Rating (DPR) for a team is calculated by iterating through the list of completed matches and using the calculated OPR values to predict the outcome of each match. For each match, for both alliances, the difference between this expected outcome and the true outcome of the match is credited to the defensive utility of the opposing alliance. For each team, we sum up these differences and solve a linear system similar to the one above using this new tabulated data.

The Calculated Contribution to the Winning Margin (CCWM) for each team is calculated by summing up the alliance score difference for each team for each match and solving our favorite system of linear equations for the x vector with these margins in our b vector.

AASK is dependent on the match schedule and rankings reported by www.USFIRST.org. Occasionally, the FIRST website will experience an outage, rendering our tool temporarily incapacitated. We have implemented a simple caching system, designed to reduce the frequency of such failures, but ultimately the status of the FIRST website controls the functionality of this tool.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-04-2013, 22:07
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Holy crap! That is actually extremely impressive. Thank you so much for making such an awesome tool.
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-04-2013, 22:30
Austin2046's Avatar
Austin2046 Austin2046 is offline
Design, Strategy & Scouting Mentor
FRC #2046 (Bear Metal)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Maple Valley, WA
Posts: 175
Austin2046 has a spectacular aura aboutAustin2046 has a spectacular aura about
Re: Adambots Automated Scouting Kit

wow, very impressive, thanks a lot for putting this together.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-04-2013, 22:45
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Just a thought, is it possible for you to make a page that combines all teams together? I wanted to do some predictions of crazy matches (IRI type stuff), but there's no regional with enough of those teams to do something like that.
__________________
All opinions are my own.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-04-2013, 22:58
mmkbenbray mmkbenbray is offline
Programmer
FRC #0245 (Adambots)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Rochester
Posts: 4
mmkbenbray is on a distinguished road
Smile Re: Adambots Automated Scouting Kit

Quote:
Originally Posted by joelg236 View Post
Just a thought, is it possible for you to make a page that combines all teams together? I wanted to do some predictions of crazy matches (IRI type stuff), but there's no regional with enough of those teams to do something like that.
Absolutely, that's one of our plans for the immediate future. What makes such a task hard is the number of requests to the FIRST site necessary to gather the info for every team; all the processing is done client-side, so the number of requests to the FIRST site would be enormous, which is undesirable.

Luckily, my partner in this project came up with a better way to fetch and store so much information, and he began work on it this afternoon. We'll begin writing code tomorrow for global rating calculations and a corresponding match prediction tool, which we'll hopefully publish before the end of the day. (Last minute coding in the stands, as always!)
Reply With Quote
  #6   Spotlight this post!  
Unread 10-04-2013, 23:11
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,309
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: Adambots Automated Scouting Kit

So cool
Reply With Quote
  #7   Spotlight this post!  
Unread 10-04-2013, 23:30
hiyou102's Avatar
hiyou102 hiyou102 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2000
Location: Anywhere
Posts: 107
hiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud ofhiyou102 has much to be proud of
Re: Adambots Automated Scouting Kit

It's interesting to see the teams with a DPR of -24. It makes me wonder if that's a failure in the data or in the team.
__________________
Team 4334 2012-2014
Reply With Quote
  #8   Spotlight this post!  
Unread 10-04-2013, 23:59
Grim Tuesday's Avatar
Grim Tuesday Grim Tuesday is offline
Registered User
AKA: Simon Bohn
FRC #0639 (Code Red)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Baltimore MD (JHU)
Posts: 1,607
Grim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Quote:
Originally Posted by hiyou102 View Post
It's interesting to see the teams with a DPR of -24. It makes me wonder if that's a failure in the data or in the team.
I suppose it just means that in matches those teams played in, their opponents scored more than usual.

'DPR' might actually be another measure of schedule strength!
Reply With Quote
  #9   Spotlight this post!  
Unread 02-07-2013, 14:35
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,509
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Adambots Automated Scouting Kit

Will this be updated to include IRI?

Would it be possible to incorporate support for offline and unofficial events? The user uploads a table of match results and you calc off that?

Thanks
Reply With Quote
  #10   Spotlight this post!  
Unread 02-07-2013, 16:30
Mr. B.'s Avatar
Mr. B. Mr. B. is offline
Lead Project Manager/Mentor
AKA: David Bodmer
FRC #0011 (MORT)
Team Role: Mentor
 
Join Date: Jun 2013
Rookie Year: 2007
Location: Flanders, NJ
Posts: 35
Mr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond reputeMr. B. has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Awesome job 245! I will make sure that my team's scouting and strategy teams see this link. This is very impressive, keep up the great work! Thanks again for a great run at the Palmetto Regional!
Reply With Quote
  #11   Spotlight this post!  
Unread 02-07-2013, 16:54
JB987 JB987 is offline
Registered User
AKA: Joe Barry
FRC #0987 (HIGH ROLLERS)
Team Role: Coach
 
Join Date: May 2006
Rookie Year: 2002
Location: LAS VEGAS
Posts: 1,176
JB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Any idea why so many of the OPR values differ so much from Ed Law's and FRC Tracker's numbers?
__________________
"A genius is just a talented person who does his homework" T. Edison
Reply With Quote
  #12   Spotlight this post!  
Unread 02-07-2013, 17:06
Siri's Avatar
Siri Siri is offline
Dare greatly
AKA: 1640 coach 2010-2014
FRC #2641 (PCCR; Refs & RIs)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2007
Location: PA
Posts: 1,638
Siri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond reputeSiri has a reputation beyond repute
Send a message via ICQ to Siri
Re: Adambots Automated Scouting Kit

Quote:
Originally Posted by JB987 View Post
Any idea why so many of the OPR values differ so much from Ed Law's and FRC Tracker's numbers?
I spot-checked a few teams and didn't find any differences. Are you sure you're comparing the kit with Ed's per-event OPRs rather than the World versions?

This is fantastic, Adambots! Thanks.
__________________
Reply With Quote
  #13   Spotlight this post!  
Unread 02-07-2013, 17:19
JB987 JB987 is offline
Registered User
AKA: Joe Barry
FRC #0987 (HIGH ROLLERS)
Team Role: Coach
 
Join Date: May 2006
Rookie Year: 2002
Location: LAS VEGAS
Posts: 1,176
JB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Ed Law's Championship V4, Archimedes tab (and FRC Tracker, Archimedes data) has 987's OPR listed as 106.9 while Adambots lists OPR as only 85 and change for the division. Several other teams are listed lower as well same and other divisions.
__________________
"A genius is just a talented person who does his homework" T. Edison
Reply With Quote
  #14   Spotlight this post!  
Unread 02-07-2013, 23:29
Ed Law's Avatar
Ed Law Ed Law is offline
Registered User
no team (formerly with 2834)
 
Join Date: Apr 2008
Rookie Year: 2009
Location: Foster City, CA, USA
Posts: 752
Ed Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond reputeEd Law has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Quote:
Originally Posted by JB987 View Post
Ed Law's Championship V4, Archimedes tab (and FRC Tracker, Archimedes data) has 987's OPR listed as 106.9 while Adambots lists OPR as only 85 and change for the division. Several other teams are listed lower as well same and other divisions.
There is an issue that was identified and discussed in another post. The problem arises when there are surrogate matches.

Currently, OPR is calculated using all matches and scores. Even surrogate matches for teams are included in the calculations. However when we calculate OPR for autonomous, teleop and climb, the total points used in vector b of Ax=b does not include surrogate matches, but the matrix A contains all the matches. This makes your team's auto, teleop and climb OPR smaller because you played 9 matches but only have scores for 8 matches. It is like you get zero for everything for one match.

Hence 106.9 for overall OPR is correct. 85.4 came from adding the auto, teleop and climb OPR and it is wrong.

This is one of my summer project to do. I have a few different ideas how to compensate for it, but I want to pick one that is most mathematically sound.
__________________
Please don't call me Mr. Ed, I am not a talking horse.

Last edited by Ed Law : 02-07-2013 at 23:58.
Reply With Quote
  #15   Spotlight this post!  
Unread 02-07-2013, 23:50
JB987 JB987 is offline
Registered User
AKA: Joe Barry
FRC #0987 (HIGH ROLLERS)
Team Role: Coach
 
Join Date: May 2006
Rookie Year: 2002
Location: LAS VEGAS
Posts: 1,176
JB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond reputeJB987 has a reputation beyond repute
Re: Adambots Automated Scouting Kit

Thanks for the clarification, Ed! And please know that all of your effort is deeply appreciated.
__________________
"A genius is just a talented person who does his homework" T. Edison
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi