XPENG RoboticsCompany & role details

Spatio-Temporal Human Action Recognition and Localization

Custom actor-level action recognition with ACAR-Net and SlowFast, including an 18-class configuration, temporally aligned annotations, and video prediction exports.

Illustration of people with action labels, video clips, and an ACAR-Net actor–context pipeline with person detection, ROI Align, and an 18-class action configuration.
Project summary illustration. Example labels and prediction scores are illustrative.

Tools & Skills

  • Action Recognition
  • ACAR-Net
  • SlowFast
  • ResNet-50
  • YOLOv5
  • ROI Align
  • Temporal Modeling
  • Video Annotation

Problem and contribution

Recognizing a person’s action requires more than detecting their bounding box. Motion across frames, nearby people, and the surrounding scene can help distinguish visually similar activities.

I studied ACAR-Net, actor–context interaction approaches, and long-term feature banks, then prepared and annotated custom 30 FPS video for ACAR-based action recognition. The implementation includes a custom dataset loader, an 18-class training configuration, and video inference tools.

Actor–context model

The model uses a SlowFast video backbone to extract spatio-temporal features. Person boxes define actor regions, which are pooled with ROI Align and combined with the surrounding feature map.

The ACAR head models higher-order relations between actors and their context before predicting action scores. The custom configuration uses a SlowFast ResNet-50 backbone, an 18-class output, and a two-layer relation head with 7 × 7 actor features.

This is action detection: predictions are attached to localized people at a video timestamp, allowing a scene to contain multiple actors and multiple action labels.

Custom-data workflow

  1. Label people and their actions in the target video data.
  2. Load clips together with actor boxes and action targets.
  3. Apply spatial transforms to both the images and their boxes, preserving their alignment.
  4. Extract temporal features and classify each actor using the relation head.
  5. Inspect localized predictions and their action scores.

One custom training setup uses eight-frame clips with a sampling step of one and Kinetics-pretrained weights. The source video frame rate, the number of sampled frames, and inference throughput are separate quantities.

Video demonstration path

A separate demonstration combines YOLOv5 person detection with a pretrained AVA action model. It writes annotated video and structured predictions containing the frame, timestamp, normalized actor box, action class, and score.

The AVA demonstration and the custom 18-class experiment use different label spaces and configurations. Keeping those paths distinct makes the project’s outputs easier to interpret.

Outcome

The work established a custom-data action-detection workflow and tools for reviewing its spatial and temporal behavior. The archived custom configuration includes an explicit overfitting experiment, so it is not presented as evidence of held-out accuracy or generalization.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.