Human–Object Interaction on Custom Data
Custom subject–interaction–object annotation and STIP-based training, connecting localized human–object pairs with structured action predictions.

Tools & Skills
- Human-Object Interaction
- STIP
- DETR
- Transformer
- VGG Image Annotator
- Object Detection
- Structured Annotation
Problem and contribution
Recognizing an interaction requires identifying both the person and the object involved. A useful prediction is a structured triplet such as person → holding → object, with the subject and object localized in the image.
For this project, I adapted VGG Image Annotator to label subject–relationship–object triplets, manually annotated custom interaction data, and trained an STIP-based model for the target domain.
Annotation structure
The annotation workflow connects a subject box, an object box, and an interaction label. Keeping those relationships explicit distinguishes this task from image-level action classification: two people in the same image can interact with different objects, and a single person can participate in several relationships.
Dataset preparation therefore needs to preserve both the object-category vocabulary and the action vocabulary, along with the indices linking each relationship to the correct instances.
STIP interaction model
The STIP implementation starts with DETR-based object detection. It constructs candidate human–object pairs, scores relation proposals, and selects proposals for the interaction decoder.
The model combines information about the subject, object, and their spatial relationship. Region features and interaction queries feed the decoder, which predicts action scores associated with each localized pair.
| Component | Role |
|---|---|
| Object detector | Locate people and candidate interaction objects |
| Pair construction | Associate a human candidate with an object candidate |
| Relation proposal stage | Rank candidate interactions for further processing |
| Interaction decoder | Predict action labels for the selected pairs |
Training and project scope
The work joined custom annotation preparation with an existing structured interaction model. I also investigated related HOI approaches, including QPIC and transformer-based alternatives, as part of the method comparison.
The retained STIP training and evaluation pipeline includes V-COCO and HICO-DET dataset support. Those public benchmark label spaces are distinct from the project’s custom annotations; benchmark settings or published scores should not be read as custom-data results.
Outcome
The project established a custom HOI annotation and training workflow focused on who interacts with what, and how. The contribution centered on adapting the data and application workflow, while using STIP as the underlying interaction-recognition method.


