Repository navigation
Understanding Aggregation Results
Aggregation is the process of converting the raw user input (classifications,markings,transcriptions etc.) into results that researchers can use. For example, if 5 people see an image and 4 classify that image as containing a zebra, the aggregation engine would report a probability of 0.8 of that image containing a zebra. (The researchers would then need to decide on a threshold, e.g. if the probability is at least 0.8, we accept that the image does indeed contain a zebra. This would obviously involve a tradeoff between missing true positives, e.g. images that actually contain zebras, and including false positives, images that do not have zebras. This sort of trade off could be explored using an [ROC curve] (https://en.wikipedia.org/wiki/Receiver_operating_characteristic) and gold standard data.)
The type of aggregation depends on the type of user input. For example, we could have users mark points of interest on an image (maybe all of the penguins in the image). Aggregation would then be clustering - grouping markings into sets (or clusters) such that each cluster refers to a single unique penguin.
When you request an aggregation export, you'll receive a tar.gz file (with a long, meaningless name) that you'll need to unpack. The unpacked directory will be labeled with your project ID.
There will be a subdirectory for each workflow within that project, labeled with the workflow ID and the workflow name (e.g. "84_Fluke_finder__uncropped"). Each workflow directory contains a set of csv files corresponding to the tasks within with that workflow. These files are identified by a the task id and a snippet of the instructions given to the users.
For question tasks have two files, a main file and a "summary" file. The first file, labeled with the task ID and snippet of instructions and no suffix (e.g. "T3How_much_of_the_animal_is_visible.csv") has the following columns:
- subject_id
- p(...) - a series of columns with one column for each possible answer, providing the percent of users who chose that answer
- num_users - number of users who did this task for the given subject id
If the question task included a follow up question (e.g. "what colour is the penguin you just marked?"), then it includes an extra column:
- cluster_index
which provides a unique ID for the corresponding marking.
The second file is denoted by "_summary" and has the columns:
- subject_id
- most_likely - the answer with the highest percentage of users that chose each possible result (NB If equal then first by index is selected - you should check for this if it is important to you)
- p(most_likely) - the perecentage of users who chose this most_likely result
- shannon_entropy - a measure of agreement between users
- [cluster_index - if relevant]
- mean_agreement,median_agreement - average p() over all labels
- num_users
For marking files other than polygons we have two files. The first has one line per cluster (consensus result) and the columns:
- subject_id
- cluster_index - for each subject, each cluster (e.g. each consensus penguin) is assigned a unique id. These are used when there are follow up questions.
- most_likely_tool - The clustering routine does not know which labels were applied to markings - e.g. if you offer a penguin marking option and a chick marking option the two will both contribute to the clusters. Most_likely_tool contains the option which reflects the majority. If they are equal the first one by index is selected.
There is then a series of columns which give position and, if relevant, size of the consensus results. The exact format depends on the type of marking. For all images the origin is the top-left (NOT the bottom left).
- for points we have x,y - the median position of the points contributing to the cluster, in pixels with the origin at the top left. For a description of the clustering algorithm used - see here (This site is currently having severe issues loading - we are looking to alternatives. In the mean time if you get a 403 error or page not found, just keep reloading.) This clustering algorithm is used for points, lints, ellipses and rectangles.
- for lines we have x1,y1,x2,y2 - a consensus line running from median start point (x1,y1) to median end point (x2,y2)
- for rectangles we have x1,y1,x2,y2 - a consensus rectangle
- for ellipses we have x1,y1,r1,r2,theta - where (x1,y1) are the coordinates of the median centre, r1 is the median major axis, r2 is the median minor axis and theta the median rotation. Greg: theta from what reference point? CCW from +x, for example?
Continuing with the rest of the columns:
- p(most_likely_tool) what percentage of markings agreed on the most likely tool
- p(true_positive) what percentage of users who say this subject have markings in this cluster
- num_users - number of users to have seen this subject
The second file has one line per subject, is denoted by "_summary" and has the following columns:
- subject_id
- median(...) - the median number of each type of marking made by each user who has seen this subject
- mean_probability,median_probability - mean/median of p(true_positive) for all clusters identified in the subject. If mean_probability is close to 1, (almost) all users who saw the subject marked (almost) all the clusters. If mean probability is low, few users contributed to each cluster.
- mean_tool,median_tool - mean/median of p(most_likely_tool)
For polygons we also have two files have:
- subject_id
- cluster_index
- most_likely_tool
- area - percentage of the image taken up by that polygon - you may want to throw away the very large or very small ones.
- list of xy polygon coordinates - a list (in square brackets) giving all the vertices in the consensus polygon
The second file is denoted by "_summary" has the columns:
fill in column definitions
This directory contains the aggregation results that you requested for your Zooniverse project. The file contains important information to help you understand what is in this directory. If you have any questions, please go the Aggregation talk board on the Zooniverse site.
Aggregation is the process of combining classifications/markings from multiple users for a single subject into one answer. A subject is a single image or group of images that the user views at a time. Users will often disagree with each other - this is why every subject needs to be shown to multiple users. However, an aggregate answer based on multiple users is usually highly accurate.
Our aggregation engine is designed to work with all Panoptes projects. This means that the analysis is not necessarily optimized for your project. Many of the algorithms use values, listed below, which seem to work well in practice. However, you may want to experiment and try to find better settings. You may even want to create your own algorithms. In either case, feel free to fork the the zooniverse/aggregation repo. If you create code that you feel would benefit others, feel free to make a pull request.
The flexibility of Panoptes means that we don’t know exactly how you want to use your data. So we may provide several different files, each with a different type of analysis or summary in them. Not all of the files may be relevant to your project. Use the rest of this readme file to help understand what specific files and values you want.
If you do use any of the aggregation results, please cite Zooniverse. (We are working on publishing the papers and will update this readme accordingly.) This code is still very much being developed. There are a few things that still need to be done and these are highlighted in the documentation.
Some of the subjects will have less classifications/markings then the retirement threshold you set. These cases are most likely due to you changing the workflow while the project is live. (Since we have no way of comparing the semantics of different workflows, classifications/markings for previous workflows are ignored.) This may also be due to the fact that other than the initial task, there may be no guarantee that each user does each task (this depends on your workflow). There has been some trouble with double counting of classifications. This has been mostly resolved by ask Martin for details.
Welcome to the Aggregation Engine Github Repo.