Trade-offs of using PORTS AND ADAPTERS
to build an MLES for the Maritime Domain

https://renatocf.xyz/icsa26-slides

2026

Renato Cordeiro Ferreira

Institute of Mathematics and Statistics (IME)
University of São Paulo (USP) – Brazil

Jheronimus Academy of Data Science (JADS)
Technical University of Eindhoven (TUe) / Tilburg University (TiU)  – The Netherlands

Reusability in MLOps

Paper

Slides

Former Principal ML Engineer at Elo7 (BR)
4 years of industry experience designing, building, and operating ML products with multidisciplinary teams

B.Sc. and M.Sc. at University of São Paulo (BR)

Theoretical and practical experience with Machine Learning and Software Engineering

Scientific Programmer at JADS (NL)

Currently participating in the projects related to the maritime and security domains

Ph.D. candidate at USP + TUe

Research about SE4AI, in particular about MLOps and software architecture of ML-Enabled Systems

Renato Cordeiro Ferreira

https://renatocf.xyz/contacts

My goal is to characterize
how complexity emerges
in the software architecture
of ML-enabled systems

This talk describes
challenges and experiences
on building OCEAN GUARD:
a system for anomaly detection in the
maritime domain

Extensibility
reusing PORTS AND ADAPTERS
allows quickly creating new services
Compatibility
reusing PORTS AND ADAPTERS
ensures services remain compatible
Generality
defining 
PORTS that are specific
and agnostic of external dependencies
Separation of Concerns
defining 
ADAPTERS that are distinct
and agnostic of business logic

System
Specification

Actors

Investigator

Anomaly
Detection
Engine

Ocean Guard

Metadata
(User retrieves more info if available)

Vessel ID
MMSI
---

Lat / Lon
Heading
COG / SOG

Date + Time Selector
(show clues of which data is available)

1
2
3
4
5
6
7
8
9
10
11
12
1
2
3
4
5
6
7
8
9
10
11
12
13
13
15
16
17
18
..

months

days

hours

Vessel
Trajectory

Known
Vessel

Known
Vessel

Known
Vessel

Known
Structure

Piraeus Sea
(35.86, 23.03)
(37.95, 23.76)

Move to another
Area of Interest

AoI Selector
(indicates where the map is zoomed in currently)

Unknown
Vessel

Unknown
Vessel

Known
Vessel

See geolocations of marine objects in a map

Filter geolocations by area of interest, date and time

I2

Discern different types of marine objects (vessels, etc.)

I3

Retrieve geolocations from different data sources.

I4

Check metadata associated with a given marine object

I5

Highlight the trajectory of a marine object

I6

See anomalies identified by the tool in a map

I7

Filter anomalies by area of interest, date and time

I8

Inspect why an anomaly was considered so by the tool

I9

I1

Ocean Guard

Metadata
(User retrieves more info if available)

Vessel ID
MMSI
---

Lat / Lon
Heading
COG / SOG

Date + Time Selector
(show clues of which data is available)

1
2
3
4
5
6
7
8
9
10
11
12
1
2
3
4
5
6
7
8
9
10
11
12
13
13
15
16
17
18
..

months

days

hours

Vessel
Trajectory

Known
Vessel

Known
Vessel

Known
Vessel

Known
Structure

Piraeus Sea
(35.86, 23.03)
(37.95, 23.76)

Move to another
Area of Interest

AoI Selector
(indicates where the map is zoomed in currently)

I3

Unknown
Vessel

I3

I7

I1

I6

I3

I3

I2

I8

Unknown
Vessel

I7

Known
Vessel

I4

Detect anomalies related to a marine object

List anomalies by area of interest, date and time

Explain why an anomaly can be
considered so

A2

A3

A1

System
Architecture

Software Architecture in Practice - ICSA 2026

Reusability in MLOps:
Leveraging Ports and Adapters
to Build a Microservices Architecture
for the Maritime Domain

https://renatocf.xyz/icsa26-paper

Data Lake
Database
Data
Processor
API
GUI
Data Broker
Data
Ingestor
Model
Evaluator
Data Source
Data
Loader
Model
Evaluator
Ocean Guard
Service
External
Service
Legend
External
Model
Data
Flow
Storage
Internal or External
Model
Ocean Guard
or 
External
Service
Internal
Model