Help & Documentation
Help HomePre-Graded Image Uploads
This guide explains how to upload images that have already been graded, either by AI systems or by human graders. The pre-graded upload process consists of two main steps: uploading the images and importing the corresponding grades.
Overview
Pre-graded uploads allow you to import existing grading data into the system for review, analysis, or training purposes. This is particularly useful for: - Importing grades from external AI systems - Migrating data from legacy systems - Creating training datasets with known ground truth - Benchmarking AI performance against human graders - Quality assurance and review processes
Accessing Pre-Graded Uploads
Required Permissions
- Admin: Full access to all pre-graded upload features
- Data Manager: Can upload pre-graded images for assigned lab units
- File Uploader: Can upload pre-graded images
- Optometrist: Limited access based on permissions
Navigation Paths
- Upload Images: Navigate to Direct Uploads → Pre-Graded Upload
- Import Grades: Navigate to Direct Uploads → Pre-Graded Grades
Pre-Graded Image Upload Process
Step 1: Prepare Your Images
- Collect the images that have been pre-graded
- Ensure images are in supported formats (JPG, PNG)
- Organize images by hospital, lab unit, and disease type
- Check that images meet size requirements (typically max 5MB per file)
Step 2: Upload Pre-Graded Images
- Navigate to Direct Uploads → Pre-Graded Upload
- Fill in the required information:
- Hospital: Select the hospital where images originated
- Lab Unit: Select the specific lab unit
- Camera: Choose the camera type used
- Disease: Select the disease type (DR, Glaucoma, AMD, etc.)
- Area: Select the anatomical area
- Dataset Label: Optional label to identify this batch
- Mydriatic: Indicate if images were taken with mydriasis
- Select the image files to upload
- Click Upload to process the images
Step 3: Automatic Processing
When images are uploaded: 1. The system creates a job to track the upload process 2. Each image is stored with a unique identifier 3. Images are automatically marked as pre-graded 4. A verification record is created for each image 5. Grading tasks are created for each image
Pre-Graded Grade Import Process
Step 1: Prepare Grade Data
Create an Excel file with the following structure:
Required Columns
- image_name: The filename of the graded image (must match uploaded files)
- {role}_grade: Grade value for the specific role
- For resident grades:
resident_grade - For resident2 grades:
resident2_grade - For AI grades:
ai_grade
Optional Columns
- {role}_remarks: Additional notes or comments
- For resident grades:
resident_remarks - For resident2 grades:
resident2_remarks - For AI grades:
ai_remarks - ai_probability: Confidence score for AI grades (only for AI grades)
Step 2: Import Grades
- Navigate to Direct Uploads → Pre-Graded Grades
- Select the grader type:
- Resident: For resident doctor grades
- Resident2: For resident2/ophthalmologist grades
- AI: For artificial intelligence grades
- Fill in the required information:
- Hospital: Select the hospital (must match image upload)
- Lab Unit: Select the lab unit (must match image upload)
- Disease: Select the disease type (must match image upload)
- Grader: Select the user who performed the grading (for human grades)
- AI Model: Select or create AI model information (for AI grades)
- Upload the Excel file containing grade data
- Click Upload to process the grades
Step 3: Grade Mapping
If the system encounters grade values it doesn't recognize: 1. A mapping interface will appear 2. You'll see unrecognized grade values from your file 3. Map each value to the appropriate system grade,=. This is to be done by the user 4. The system may auto-map some values based on text matching 5. Complete the mapping and click Import
Step 4: Processing Results
The system will: 1. Validate all grade mappings 2. Match grades to uploaded images by filename 3. Create grade records for each image 4. Update task states for human grades 5. Create consensus grades for resident2 grades 6. Display a summary of successful and failed imports
Supported Grade Types
Resident Grades
- Who: Medical residents in training
- Requirements: User must have "resident" or "ophthalmologist" role
- Process: Grades are imported and task states are updated
- Use Case: Training evaluation, quality assessment
Resident2 Grades
- Who: Senior ophthalmologists and resident2 members
- Requirements: User must have "ophthalmologist" role
- Process: Grades are imported and consensus is calculated
- Use Case: Gold standard grades, reference data
AI Grades
- What: Grades generated by artificial intelligence systems
- Model Information: Can select existing AI models
- Process: Grades are imported with model metadata
- Use Case: AI validation, model comparison, research
Grade Matching Process
The system follows these steps to match grades to images:
- Filename Matching: Looks for exact filename matches (case-insensitive)
- Location Filtering: Filters by hospital, lab unit, and disease
- Pre-Graded Filter: Only matches images marked as pre-graded
- Most Recent: If multiple matches exist, uses the most recent upload
- Task Creation: Ensures grading tasks exist for matched images
Duplicate Handling
Image Duplicates
- Pre-graded images use the same duplicate detection as regular uploads
- MD5 hash is calculated and checked against existing images
- Duplicate images are stored in a separate folder
- Upload status shows "Duplicate file" for duplicates
Grade Duplicates
- New grades can override existing grades for the same grader type
- Multiple different grader types can be applied to the same image
- AI grades can be imported multiple times with different models
- The system tracks all grade changes with timestamps
Quality Assurance
Validation Checks
- Filename Validation: Ensures all grade entries have matching images
- Grade Validation: Verifies grade values are within allowed ranges
- Permission Validation: Checks user permissions for lab units
- Format Validation: Ensures Excel file has correct structure
Error Handling
- Missing Images: Grades without matching images are flagged as errors
- Invalid Grades: Grade values that can't be mapped are rejected
- Permission Issues: Attempts to upload to unauthorized lab units are blocked
- Format Errors: Invalid Excel formats are rejected with helpful messages
Best Practices
File Preparation
- Consistent Naming: Use consistent filenames for images and grade files
- Complete Data: Ensure all required fields are filled in
- Valid Grades: Use grade values that exist in the system
- Test Samples: Test with a small sample before large imports
Upload Process
- Upload Images First: Always upload images before importing grades
- Verify Matching: Check that image names match exactly
- Review Results: Review import results for any errors
- Handle Errors: Address any mapping or matching issues promptly
Data Management
- Organize by Batch: Use dataset labels to organize uploads
- Document Sources: Keep track of where grades originated
- Version Control: Use AI model versioning for AI grades
- Quality Review: Periodically review imported grades
Troubleshooting Common Issues
Image Not Found
- Problem: Grade references an image that wasn't uploaded
- Solution: Ensure all images are uploaded before importing grades
- Check: Verify filenames match exactly (including extensions)
Grade Mapping Errors
- Problem: System doesn't recognize grade values
- Solution: Use the mapping interface to match values to system grades
- Prevention: Use standard grade terminology in your files
Permission Denied
- Problem: User can't upload to selected lab unit
- Solution: Contact administrator for appropriate permissions
- Check: Verify you're selecting the correct lab unit
Import Failures
- Problem: Partial or complete import failure
- Solution: Review job details for specific error messages
- Common Causes: Invalid formats, missing data, permission issues
Integration with Grading Workflows
Task Creation
- Pre-graded uploads automatically create grading tasks
- Tasks are marked with appropriate grader assignments
- Human grades update task states automatically
- Resident2 grades trigger consensus calculations
Review Process
- Pre-graded images appear in regular grading queues
- Graders can see pre-assigned grades when evaluating
- Discrepancies between graders are tracked
- Quality metrics include pre-graded data
Security and Privacy
- Access Control: Only authorized users can upload pre-graded content
- Audit Trail: All uploads and imports are logged
- Data Integrity: Verification ensures data consistency
- Privacy Compliance: Patient data is handled according to regulations
Getting Help
For pre-graded upload issues: 1. Check the error messages in the job details 2. Verify your data format matches requirements 3. Ensure you have appropriate permissions 4. Contact your system administrator for assistance