mbari media management tools for turning video into data · program development history single...

79
MBARI Media Management Tools for Turning Video into Data Brian Schlining

Upload: others

Post on 21-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

MBARI Media Management

Tools for Turning Video into Data

Brian Schlining

Page 2: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

MBARI Media Management

Video Annotation and Reference System

Brian Schlining

Page 3: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

MBARI Media Management

Video Annotation and Reference System

Brian Schlining

M3

VARS

Page 4: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

About MBARI

Page 5: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 6: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 7: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 8: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 9: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Underwater video ...

Page 10: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

A novel approach

● Collect a lot of video

● Systematically catalogued =

easily retrievable

● Managed as institutional

resource

Page 11: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 12: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video workflow

Control Room - video recording &

preliminary analysis

Onshore -

video

archivingVideo Lab - comprehensive annotation

At sea…

Page 13: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Today - scientific value

● Annotation expertise

● Video Annotation and Reference (VARS) software● 27,000 hours of video

● 6+ million observations

Central management & careful cataloguing =

● Exploration, discovery, biodiversity baselines,

long term monitoring

● 400+ peer-reviewed publications

Visualize and understand…ecosystem dynamics, biogeochemical cycles, and human impacts

Page 14: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Program development history

Single platform support - ROV video recordings

Single media type - TAPES

1990 2000 2005 2010 20151995

640x480

SD analog

Beta SP videotape

720x486

SD digital

DigiBeta videotape

1920x1080

HD digital

D5 videotape

Crude annotation

Controlled annotation

Refined annotation

(VARS)

Data Products

(DSG)

External dissemination

(software + data)

Page 15: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Program development history

Single platform support - ROV video recordings

Single media type - TAPES

1990 2000 2005 2010 20151995

Current project

640x480

SD analog

Beta SP videotape

720x486

SD digital

DigiBeta videotape

1920x1080

HD digital

D5 videotape

1920x1080

HD digital

video data files

Modern & versatile annotation

MBARI Media Management (M3)

Crude annotation

Controlled annotation

Refined annotation

(VARS)

Multiple platform support - MiniROV, AUV, Rover, observatory, etc.

Multiple media types - TAPES, FILES, and STILL IMAGES

Data Products

(DSG)

External dissemination

(software + data)

Page 16: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Exploring the field

➔ Institutions

◆ Ocean Networks Canada (Neptune)

◆ Okeanos Explorer (NOAA)

◆ Nautilus

◆ WHOI (Alvin)

◆ R/V Thompson, MARS cable network

◆ Pacific Research Platform (Cinegrid industrial

collaboration)

◆ Schmidt Ocean Institute

◆ JAMSTEC

➔ Industry (news and film)

◆ NHK, CNN, KQED

◆ National Geographic

◆ WWF

◆ Field experts: Adam WIlt, Larry

Jordan

➔ Museums

◆ USC Digital Library

◆ US Holocaust Museum

◆ Smithsonian Institution

Archives

Relevancy, failures, success in technology and workflow

Page 17: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

So … what did MBARI build?

1. Video Capture and Archiving

Page 18: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

So … what did MBARI build?

1. Video Capture and Archiving

2. Video and Annotation

Management Services

Page 19: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

So … what did MBARI build?

1. Video Capture and Archiving

2. Video and Annotation

Management Services

3. Video Annotation applications

Page 20: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 21: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

Page 22: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

Page 23: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

Video is recorded in 15 minute chunks

ProRes HQ

H264/MP4

Page 24: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

Video is recorded in 15 minute chunks

ProRes HQ

H264/MP4

~ 25GB

~ 2.5GB

Page 25: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

ProRes HQ

H264/MP4

Each video has correct

creation-time metadata

Page 26: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

140 dives/yearx 2 shipsx 8 hours/divex 4 videos/hourx 2 versions/video------------------------= 17920 videos/year

Page 27: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

8960 ProResx 25 GB+ 8960 H264x 2.5 GB------------------------= 246400 GB/year= 246.4 TB/year

Page 28: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 29: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

Page 30: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Capture

Page 31: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 32: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 33: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Watches the filesystem for new videos.

Extracts metadata from new videos

Page 34: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Watches the filesystem for new videos.

Extracts metadata from new videos

Registers video with video-asset

manager

Page 35: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Service

Video Asset Service

Knowledgebase

User Service

Annotation Service

M3 Microservices

Page 36: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Service

Video Asset Service

Knowledgebase

User Service

Annotation Service

M3 MicroservicesToolkit for building video annotation applications

Page 37: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Discrete microservices- A microservice

- provides a web API

- owns its own data

- does one thing and does it well

- Independent of other services

Page 38: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Microservices pros:1. Independent

a. Do not need to understand entire system

b. Services can be written in different programming languages

c. Use appropriate data-store (database, text file, NoSQL)

d. Easy to upgrade and deploy

Page 39: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Microservices pros:1. Independent

2. Scalable Proxy/Load-Balancer

Page 40: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Microservices pros:1. Independent

2. Scalable Proxy/Load-Balancer

Page 41: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Microservices pros:1. Independent

2. Scalable

3. Language Agnostic

a. HTTP

b. REST

c. JSON

Python:

j = requests.get('http://foo.org/concept/Nanomia')

.json()

Matlab:

j = webread('http://foo.org/concept/Nanomia')

R:

j <- fromJSON(

readLines('http://foo.org/concept/Nanomia'))

Perl:

$j==0&&($C++,$C>=$a&&($C=0));$j==2&&($C||($C=$a),$C--);

$j==3&&($R++,$R>=@B&&($R=0));$j==1&&($R||($R=@B),$R--);}

KP($){push@S,shift}KJ(){pop@S||0}KX(){@S[-1,-2]=@S[-2,-

1]}KR(){push@S,$S[-

1]}KW($$){"Z".$_[0]."Z,K{".$_[1]."},"}KG($){($_)=($a)=@_;y/\`/>/;W$a

," X;P(J$_ J)"}KD($){($a)=@_;W$a,ZP Z.$a}KE($){($_)=($a)

=@_;y/0123/>^<v/;W $_,"N $a"}';

Page 42: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Microservices pros:1. Independent

2. Scalable

3. Language Agnostic

4. Easy to Customize (via Docker)

.

├── Dockerfile

├── conf

│ ├── application.conf

│ └── logback.xml

└── lib

└── postgresql-

42.2.5.jar

# Dockerfile

FROM mbari/annosaurus

ADD conf ${APP_HOME}/conf

ADD lib ${APP_HOME}/lib

EXPOSE 8080

ENTRYPOINT ${APP_HOME}/bin/jetty-main

Page 43: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Microservices pros:1. Independent

2. Scalable

3. Language Agnostic

4. Easy to Customize (via Docker)

.

├── Dockerfile

├── conf

│ ├── application.conf

│ └── logback.xml

└── lib

└── postgresql-

42.2.5.jar

# Dockerfile

FROM mbari/annosaurus

ADD conf ${APP_HOME}/conf

ADD lib ${APP_HOME}/lib

EXPOSE 8080

ENTRYPOINT ${APP_HOME}/bin/jetty-main

docker build -t m3/annosaurus .

docker run -p 8080:8080 m3/annosaurus

Page 44: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 45: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Service

Video Asset Service

Knowledgebase

User Service

Annotation Service

M3 Microservices

Page 46: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Service

Video Asset Service

Knowledgebase

User Service

Annotation Service

M3 Microservices

Answers the questions:

Where is the video?

What recorded the video?

When was the video recorded?

What is the video’s deployment

id?

... other video metadata

Page 47: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Service

Video Asset Service

Knowledgebase

User Service

Annotation Service

M3 Microservices- Defines annotation terms

- Provides hierarchy (e.g. phylogeny)

Greatly improves consistency and

searchability of annotations

Page 48: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Spelling Matters

Quiz time - Which is the correct spelling

for the cockatoo squid’s family?

A. Cranchiidae

B. Cranciidae

C. Cranchida

D. Crancidae

Page 49: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Spelling Matters

Quiz time - Which is the correct spelling

for the cockatoo squid’s family?

A. Cranchiidae

B. Cranciidae

C. Cranchida

D. Crancidae

Page 50: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Spelling Matters

Quiz time - Which is the correct spelling

for the cockatoo squid’s family?

A. Cranchiidae

B. Cranciidae

C. Cranchida

D. Crancidae

Wouldn’t it be great if you could just use

‘cockatoo squid’?

Page 51: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Service

Video Asset Service

Knowledgebase

User Service

Annotation Service

M3 Microservices

Page 52: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Anatomy of an Annotation

Media Identifier (UUID)

Page 53: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Anatomy of an Annotation

Media Identifier (UUID)

Index into Media (Elapsed time)

65432 millis

Page 54: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Anatomy of an Annotation

Media Identifier (UUID)

Index into Media (Elapsed time)

Concept name (constrained by knowledgebase terms)

65432 millis

Grimpoteuthis

Page 55: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Anatomy of an Annotation

Media Identifier (UUID)

Index into Media (Elapsed time)

Concept name (constrained by knowledgebase terms)

Other data (date/time, position, CTD, description, etc.)

65432 millis

Grimpoteuthis 2013-05-06T03:20:03Z, 36.21111, -121.3322,

surface-color | self | white, ...

Page 56: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 57: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Annotation

QueryKnowledgebase

VARS/M3

Page 58: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Knowledgebase

Page 59: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005
Page 60: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Annotation

Page 61: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Annotation Customizable

by each user

Page 62: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Annotation Customizable

by each user

Constrained

vocabulary

Page 63: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Annotation Customizable

by each user

Constrained

vocabulary

Add details to

each annotation

Page 64: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Annotation Customizable

by each user

Constrained

vocabulary

Add details to

each annotation

Capture Images

from Video

Page 65: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Annotation

Page 66: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

VARS Query

Simple, Flexible Query tool

Q: Find all squid eating

something between 500 and

1200 meters.

Q: Find all jellies seen on

expedition IN2017.

Q: Find a particular species

of sea cucumbers on rocky

substrate.

Page 67: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Annotation service

Video Asset

Manager

Knowledgebase

Image Archiver

Future Proofing

Page 68: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Annotation service

Video Asset

Manager

Knowledgebase

Image Archiver

Future Proofing

Independently Evolving Components

Page 69: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Annotation service

Video Asset

Manager

Knowledgebase

Image Archiver

Future Proofing

Native Video Players for different needs

Page 70: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Annotation service

Video Asset

Manager

Knowledgebase

Image Archiver

Future Proofing

Integrate or Create Custom Annotation Applications

Page 71: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Image Archiver

Knowledgebase

Video Asset

Manager

Annotation serviceNovel Applications

Training Set

Extraction

Example: Find all

annotations of Nanomia

bijuga and extract

images from the video

Page 72: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Video Asset

Manager

Image Archiver

Knowledgebase

Annotation serviceNovel Applications

Automated Detector

and Classifier

Page 73: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Open-sourcehttps://github.com/mbari-media-managementhttps://hub.docker.com/u/mbari/

Page 74: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

Acknowledgements

Current MBARI team

For more information:

Brian Schlining

[email protected]

https://www.mbari.org/schlining-

brian/

Page 79: MBARI Media Management Tools for Turning Video into Data · Program development history Single platform support - ROV video recordings Single media type - TAPES 1990 1995 2000 2005

The End

Thank you!