Skip to content
ModelListedExternal
Download

Ais Anomaly Vit v2

AIS Anomaly ViT v2 is a Vision Transformer (ViT) model fine-tuned for maritime anomaly detection using visual representations derived from Automatic Identification System (AIS) vessel tracks.

KindOtherVersionRevision f0edb59

Model source

Kind
Other
File size
327 MB
Version
vRevision f0edb59
Updated
Sep 21, 2026
Downloads
10
Source
Hugging Face

Source description

AIS Anomaly ViT v2

ais_anomaly

Model Overview

AIS Anomaly ViT v2 is a Vision Transformer (ViT) model fine-tuned for maritime anomaly detection using visual representations derived from Automatic Identification System (AIS) vessel tracks.

The model classifies vessel trajectory images into:

  • Normal Maritime Behavior
  • Anomalous Maritime Behavior

The objective is to support maritime domain awareness, vessel monitoring, maritime security operations, and geospatial intelligence workflows by automatically identifying suspicious vessel movement patterns from AIS-derived visualizations.

The model was trained using the AIS Anomaly v1-30 dataset.

Model Details

PropertyValue
ArchitectureVision Transformer (ViT)
Base Modelgoogle/vit-base-patch16-224
TaskImage Classification
DomainMaritime Analytics
InputAIS Track Images
OutputBinary Classification
ClassesNormal, Anomaly
FrameworkTransformers
Training DatasetNeo111x/ais-anomaly-v1-30

Intended Use

Primary Use Cases

  • Maritime anomaly detection
  • Vessel behavior monitoring
  • Maritime traffic surveillance
  • Illegal fishing detection support
  • Dark vessel activity analysis
  • Maritime OSINT and GEOINT workflows
  • Maritime security research
  • AIS trajectory intelligence

Example Applications

  • Coast guard monitoring systems
  • Maritime traffic management
  • Port security operations
  • Maritime threat intelligence platforms
  • Geospatial AI research
  • AIS analytics dashboards

Dataset

AIS Anomaly v1-30

The model was trained on:

Dataset: Neo111x/ais-anomaly-v1-30

The dataset contains AIS trajectory visualizations generated from vessel movement data.

Each image represents a vessel track encoded as a visual pattern suitable for computer vision models.

Classes include:

  • Normal vessel movement
  • Anomalous vessel movement

Potential anomaly categories represented in the data may include:

  • Unusual route deviations
  • Suspicious loitering
  • AIS gaps or interruptions
  • Unexpected course changes
  • Irregular movement behavior

Training Procedure

Preprocessing

AIS trajectories are transformed into image representations before training.

Typical preprocessing steps include:

  1. AIS trajectory extraction
  2. Geographic normalization
  3. Route visualization generation
  4. Image resizing to ViT input dimensions
  5. Dataset balancing and augmentation

Training Configuration

ParameterValue
Model TypeVision Transformer
Image Size224 × 224
Classification TypeBinary
OptimizerAdamW
FrameworkPyTorch + Transformers

Evaluation

The model was evaluated on a held-out validation split derived from the AIS Anomaly v1-30 dataset.

Evaluation metrics may include:

  • Accuracy
  • Precision
  • Recall
  • F1 Score
  • Confusion Matrix Analysis

Users are encouraged to perform independent evaluation on operational maritime datasets before deployment in production environments.


Usage

Install Dependencies

pip install transformers torch pillow

Load the model

from transformers import AutoImageProcessor, AutoModelForImageClassification

model_name = "Neo111x/ais-anomaly-vit-v2"

processor = AutoImageProcessor.from_pretrained(model_name)
model = AutoModelForImageClassification.from_pretrained(model_name)

Inference example

from PIL import Image
import torch
from transformers import AutoImageProcessor, AutoModelForImageClassification

model_name = "Neo111x/ais-anomaly-vit-v2"

processor = AutoImageProcessor.from_pretrained(model_name)
model = AutoModelForImageClassification.from_pretrained(model_name)

image = Image.open("trajectory.png").convert("RGB")

inputs = processor(images=image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)

predicted_class = outputs.logits.argmax(-1).item()

print("Predicted class:", predicted_class)

Citation

@misc{cherif2026aisanomalyvitv2,
  title={AIS Anomaly ViT v2},
  author={Bilel Cherif},
  year={2026},
  publisher={Hugging Face},
  url={https://huggingface.co/Neo111x/ais-anomaly-vit-v2}
}

Sources

1 source
Hugging FacePrimaryVersion f0edb593a79166190b02e431ff1282bfc96d16ad
huggingface.co/Neo111x/ais-anomaly-vit-v2/tree/f0edb593a79166190b02e431ff1282bfc96d16ad

Verified Sep 10

Model artifacts

1 artifact

model.safetensors

safetensors · 327 MB · SHA-256 42a3685e0841…296f · Hugging Face

Download

Source excerpts

2 excerpts

--- license: apache-2.0 library_name: transformers pipeline_tag: image-classification tags: - vision-transformer - vit - maritime - ais - anomaly-detection - vessel-monitoring - geospatial-ai - remote-sensing - maritime-security - transportation datasets: - Neo111x/ais-anomaly-v1-30 model-index: - name: AIS Anomaly ViT v2 results: [] --- # AIS Anomaly ViT v2 ![ais_anomaly](https://cdn-uploads.huggingface.co/production/uploads/64d3db80aea0ccb1b4975d95/oUxCihORp0eM1ChNrKADZ.png) ## Model Overview AIS Anomaly ViT v2 is a Vision Transformer (ViT) model fine-tuned for maritime anomaly detection using visual representations derived from Automatic Identification System (AIS) vessel tracks. The model classifies vessel trajectory images into: - **Normal Maritime Behavior** - **Anomalous Maritime Behavior** The objective is to support maritime domain awareness, vessel monitoring, maritime security operations, and geospatial intelligence workflows by automatically identifying suspicious vessel movement patterns from AIS-derived visualizations. The model was trained using the **AIS Anomaly v1-30** dataset. ### Model Details | Property | Value | |-----------|---------| | Architecture | Vision Transformer (ViT) | | Base Model | google/vit-base-patch16-224 | | Task | Image Classification | | Domain | Maritime Analytics | | Input | AIS Track Images | | Output | Binary Classification | | Classes | Normal, Anomaly | | Framework | Transformers | | Training Dataset | Neo111x/ais-anomaly-v1-30 | --- ## Intended Use ### Primary Use Cases - Maritime anomaly detection - Vessel behavior monitoring - Maritime traffic surveillance - Illegal fishing detection support - Dark vessel activity analysis - Maritime OSINT and GEOINT workflows - Maritime security research - AIS trajectory intelligence ### Example Applications - Coast guard monitoring systems - Maritime traffic management - Port security operations - Maritime threat intelligence platforms - Geospatial AI research - AIS analytics dashboards --- ## Dataset ### AIS Anomaly v1-30 The model was trained on: **Dataset:** `Neo111x/ais-anomaly-v1-30` The dataset contains AIS trajectory visualizations generated from vessel movement data. Each image represents a vessel track encoded as a visual pattern suitable for computer vision models. Classes include: - Normal vessel movement - Anomalous vessel movement P...

Source context: 10 downloads · 0 likes · Pipeline image-classification · Library transformers · Repo Neo111x/ais-anomaly-vit-v2