Gradebook Analysis - Error Checking The Gradebook

garth
Community Champion
5
5427

Background

Recently I was asked to develop an LTI to allow faculty to submit their grades directly from Canvas back to the SIS.  The obvious benefit is that faculty would not have to do double entry, i.e. work with the Canvas gradebook and then have to manually translate their grades to the SIS gradebook.  This was well received and was well worth the effort.  Working through the process of submitting grades, we gained knowledge and ideas associated with this article.

As we implemented at our institution, we received several tickets stating that the Canvas gradebook wasn't reporting the correct grades.  What we learned from these tickets was that faculty who are new to LMS in general were not aware of some details that could cause grades to be inaccurate.  Faculty who had been using pencil/paper or even an Excel spreadsheet were simply used to doing things themselves, and did not really understand things like grading schemes, or assignment groups, or the effect of ungraded assignments.

Someone might be asking why the faculty didn't receive training, a valid question.  In our case training was provided.  I am sure we can all agree that everyone learns at their own pace, even faculty.  Learning new technology can sometimes be daunting, in a company or on a college campus, and in just about any scenario training or learning is not fully absorbed right away.  In our environment, faculty need to focus on what they are teaching, and the tools they use should not interfere with their instruction.  It is our job to try and make things easier, not harder.

So we came up with the idea of a "gradebook checker".  What if we could inspect the gradebook for items that obviously stand-out, and we could alert the instructor to those items?  If we could do this, the instructor could receive a preemptive report showing them which items could potentially cause an incorrect grade to be displayed or reported.  The instructor then has an opportunity to correct those items or ask questions to clarify why those items might cause inaccuracy.

Approach Using the Canvas API

While developing the SIS grade submission algorithms, we learned quite a bit about the Canvas API.  This development processes gained us a high level of comfort not only with how to use the API, but also with the API documentation, which can be found here:

Canvas LMS REST API Documentation

The API will allow you to build tools to achieve many different goals.  I will discuss the API calls that we used to create our "gradebook analysis", and will cover some of the specific details that we look for to alert faculty to potential issues.

Multiple API calls are required to compile the data necessary to create the analysis report.  Because of this, we are using a workflow.  When the user requests an analysis of their gradebook, we return immediately with a message letting them know their request has been received and they will receive the results in the email.  Our aynchronous workflow can then run, throttled if necessary, and complete the report at it's own pace to create the report.

What Issues are Detected?

Following is a list of some common items included in our report.  Most of these were seen prior to this report being developed, and some were thought of while we were designing the report.  Some are more important than others, some are considered simple warning.  For example, over-grading might be done on purpose for extra credit, but we have no way of knowing that.  If you have common issues that you come across, please share them and let's see if we can expand on the report:

  • No grading scheme assigned to the course - this can happen when a new instructor is creating their own course for the first time, but this can also happen when a new staff member is hired to help build courses, it is easy to overlook.
  • Assignment has a zero point value - this may be intentional, but deserves mention as it will not count towards the final grade and has been the root cause of a reported "incorrect grade".
  • Assignment is past due, has no submissions and/or has not been graded - are all students going to receive a zero?  Should the assignment be removed?  This has been the root cause of a reported "incorrect grade".
  • At least one student has been graded for the assignment, but other students have not been graded - again, ungraded work does not count as zero, and will not be included in the final grade calculation.  If some students are graded but others aren't, the ungraded students will potentially reflect an inflated grade.  This has been the root cause of a reported "incorrect grade".
  • Assignment has not been published - it may be that the instructor is still working on an assignment, but this is worth mentioning as we have received tickets from students stating they are unable to access an assignment they are expecting to see in a course.
  • Assignments that don't have a due date - this doesn't necessarily cause inaccurate grades, but this is important to students with respect to time management
  • Assignments that have been over-graded - it is possible that the assignment was overgraded for extra credit, however we have seen instructors put in the percentage instead of points, i.e. it was a 10 point assignment and the student got 8 questions right, so they instructor entered 80.  Canvas won't complain, and this dramatically inflates the student grade.  This has been the root cause of a reported "incorrect grade".
  • At least one student has submitted work that has not been graded - this is reported for assignments that are past due, ungraded work does not count as a zero, and will not count toward the final course grade.  This has been the root cause of a reported "incorrect grade".
  • Assignment group worth 0% - any assignments in the group will not count towards final grade, this is fine if this is what the instructor intended.   This has been the root cause of a reported "incorrect grade".
  • Assignment group has no assignments - this does not necessarily hurt anything unless it is a weighted assignment group.  We advise instructors to remove empty assignment groups to simplify their gradebook.
  • Duplicate assignment group names - we advise instructors to combine the two groups, or correct the group names.

There are many scenarios that can be derived from the data that is available.

Collecting Gradebook Information

Keep in mind that our gradebook analysis request is provided to our faculty through an LTI app.  When the faculty request an analysis report, we know who is making the request and which course they are interested in through the LTI integration.  I am going to try and cover our approach in very general terms in hopes that it can be translated into whatever solution you have in mind.  There is always more than one way to solve a problem, please share any ideas you have.  I would love to hear how you would improve or add to this idea.

If some of these API calls seem obvious, keep in mind there may be people reading this who haven't yet used the API, and they may benefit from the obvious.  It is also worth mentioning that you will want to store the results of these API calls so the data can be inspected along the way.  You may want to use dictionaries, or maybe hash tables, to make lookups easy; it is up to you to store the results using techniques specific to your approach to analyzing the API results.

Get Course Details

For reporting purposes, we need to have the course details.  Again, the report will be sent in email.  If the instructor has requested analysis of multiple gradebooks we want to clearly identify the course in each email.

The API call to get course details can be found here:

Canvas LMS REST API Documentation - Get a Single Course

This API call returns a JSON object, which is defined on the same page here:

Canvas LMS REST API Documentation - Course JSON Definition

Get Course Assignments

The gradebook is essentially a "view" of the assignments.  When you create an assignment, that assignment automatically appears in the gradebook, you do not have to create an entry in the gradebook to represent that assignment.  So to analyze the gradebook, you need to analyze the assignments.  To do this you will need a list of assignments.

The API call to get a list of course assignments can be found here:

Canvas LMS REST API Documentation - List Course Assignments

This API call returns a list of JSON objects representing each assignment, the assignment object is defined here:

Canvas LMS REST API Documentation - Assignment JSON Definition​​

Note: In my scenario, I stored the list of JSON assignments in a dictionary<assignment_id, assignment> to allow me to easily iterate through each assignment, or lookup a specific asssignment by id.

Get Assignment Submissions

To determine if there is there are students who have not submitted their work you will need to inspect each assignment for any associated submissions, and determine which students have or have not submitted the work.

The API call to get submissions for an assignment can be found here:

Canvas LMS REST API Documentation - List Assignment Submissions

This API call returns a list of JSON objects representing each submission associated with the specific assignment, the submission JSON object is defined here:

Canvas LMS REST API Documentation - Submission JSON Defnition

Note: In my scenario I stored submissions for each assignment in a dictionary<user_id, submission>, so I could easily find a submission specific to a student, or determine if a submission for a specific submission even existed

Get Course Enrollments

We provide student names to direct the instructor to specific items in the gradebook that have not been graded, or work that has not been submitted.  To do that we need to retrieve the course roster.

The API call to get a list of enrollments can be found here:

Canvas LMS REST API Documentation - List Course Enrollments

This API call returns a list of JSON enrollment objects, the enrollment JSON object is defined here:

Canvas LMS REST API Documentation - Enrollment JSON Definition

Note: In my scenario I stored enrollments in a dictionary<user_id, enrollment>, so I could easily iterate through each enrollment, or find a specific enrollment by user_id

Get Assignment Groups

We also inspect assignment groups for some of the details defined above.  Obvious potential issues include weighted assignment groups where a group has a 0% weight, or duplicate group names, or an empty assignment group (particularly if the weight of the group is > 0%).

The API call to get a list of assignment groups can be found here:

Canvas LMS REST API Documentation - List Assignment Groups

This API call returns a list of AssignmentGroup JSON objects, defined here:

Canvas LMS REST API Documentation - AssignmentGroup JSON Definition

Note: In my scenario I stored groups in a dictionary<group_id, assignmentgroup>, so I could easily iterate through the list of assignment groups, or find a specific assignment group by id

Analyzing Gradebook Data

The API calls above will  essentially gather all the data you need to start "interrogating" the gradebook.  How do you do that?  It's really all about digging into the JSON objects that have been collected by the API calls, and knowing what variables and information are exposed in those objects.  Here I'll give you a few simple examples.

Detect Missing Grading Scheme

Assume we stored the result of the course details in a variable: courseDetails

Looking at the JSON definition, we want the value of courseDetails.grading_standard_id to be an integer greater than zero.

Detect Assignment Without Due Date

Looking at the JSON defnition of the assignment objects, we want inspect assignment.due_at

Detect Assignment Over-grading

Iterate through each of the enrollment records, and retrieve the submission for each student.

From the submission you should be able to retrieve the assignment, i.e. assignment[submission.assignment_id]

If the submission.score is greater than the associated assignment.points_possible, then that student has been over-graded and we should alert the instructor.

If the instructor intentionally over-graded the student, then it is up to them to simply ignore the warning.

if the instructor did not mean to over-grade the student, then they have the opportunity to correct the score or ask why they are getting the warning.

Detecting other conditions...

Once you familiarize yourself with the JSON object definitions, you will start to see how other scenarios can be detected.  It's really all about learning what values are exposed in which objects, and building the logic around them.  More complex scenarios simply require putting the puzzle pieces together.

Conclusion

By providing this analysis to the instructors, potential problems can be corrected before the data is transferred to the SIS.  Problems can also be corrected during the semester to ensure that students are seeing grades that accurately reflect their current status.

Hopefully walking through the use of the API for this scenario gives you some ideas of how you can take advantage of the data that is available to you.  If you are using the Canvas Data Portal, you may be able to simplify this process greatly.  I hope to have an opportunity to explore that path in the near future and would be interested to know if others are using the data portal for similar goals.

I look forward to any feedback and ideas that others have, please share.

2016.11.14 - Update

If you would like to see source code demonstrating how to make API calls in .NET, I have published a blog here:

From this code you can create automation of administrative tasks and reporting to meet your needs.

5 Comments
MattHanes
Community Champion

Awesome write up here  @garth ​,

I'm one of the folks responsible for gradebook training in our K12 school district and our programmers built a very similar tool for checking grades in our SIS system. I think the average person would be extremely alarmed at some of the grading inaccuracies that would never have been caught without a tool designed to check up on it.

dranzolin
Community Novice

Strong work here,  @garth , thanks. But is this really the easiest way to get a course gradebook? Iterate through every assignment id and format the output into a table? There's no one API call that returns the gradebook object?

garth
Community Champion
Author

 @dranzolin ​ for sure I am not an advocate of re-inventing the wheel.

At the time I worked on this, I was not able to find a magic bullet, a single API call that would return the entire gradebook.

Canvas is adding to the API, and maybe something has been published recently.

Reviewing the API documentation associated with "grades", I don't see anything.

My analysis algorithm also looks at assignment groups and associated weights, as well as warning of "unpublished" assignments.  The "gradebook" in Canvas doesn't show unpublished assignments.  You can get a great deal of detail from the API calls that isn't in the gradebook.  The items I mention in my post are only part of what I'm doing, meant to poke your imagination.

If you find an alternative solution please share, I'm all about faster and easier : )

dranzolin
Community Novice

Well, I don't know if this is faster, but I translated your process into an R function. Gist here: Function to obtain course gradebook from Canvas · GitHub​. Still seems somewhat inefficient.

After some additional testing, I plan to implement this function in rcanvas: GitHub - daranzolin/rcanvas: R Client for Canvas API

garth
Community Champion
Author

Awesome, I am not too familiar with R, interested to take a look.

Maybe the rubric data will pop out of the data portal one day and make our lives a little easier : )

Thanks for posting an alternate solution.