+ All Categories
Home > Documents > Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts...

Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts...

Date post: 08-Jun-2020
Category:
Upload: others
View: 14 times
Download: 0 times
Share this document with a friend
45
Towards user-definable, semi- automated workflows for curating biodiversity data P.J. Morris R.A. Morris B. Ludäscher D. Lowery J.A. Macklin T. Song T. McPhillips J. Hanken
Transcript
Page 1: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Towards user-definable, semi-automated workflows for curating

biodiversity dataP.J. Morris R.A. Morris B. Ludäscher

D. Lowery J.A. MacklinT. Song T. McPhillips J. Hanken

Page 2: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Webinar Outline• Overview (Bertram) • Part 1: Presentation [45 min]

– 1.1 Example QC Spreadsheet & FilteredPush (Bob)– 1.2 Data Cleaning for Natural History Collections (Paul)– 1.3 Intro to current FP-Akka/post-proc. tools (Paul)– 1.4 Scientific Workflow Automation (Bertram)

• Q&A/Transition/Software check (David, Bob, Paul) • Part 2: Demo & Hands-on (optional) [55 min]

– Run FP-Akka workflow –w DwCa –a COL– …

FP2K: Towards Curation Workflows 2

Page 3: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

1.1 Example QC Spreadsheet

Bob (~ 10 min)

Page 4: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

1.2 Data Cleaning for Natural History Collections

Paul (~ 15min)

Page 5: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Continuous Quality Control

Plan

Do

Check

Act

Define

Measure

Analyze

ImproveClassical QC

Shewhart, 1939Total Data Quality

ManagementWang, 1998

With tests for Fitness for Purpose

Page 6: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Natural Science Collections DataFit for what purpose?

Classical Use by Taxonomists visiting collections, and collections managers.

Electronic Distribution: Many new uses− Species range modeling− Modeling effects of climate change− Many new uses depend on

(1) Good georeferences (where). (2) Good identifications (what taxon) (3) Good collecting event dates (when)

Page 7: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Systematic Errors

Page 8: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Illogical Values: Out of Range

Harvard University HerbariaPlant specimens (now fixed)

Latitude: North of the North Pole

Page 9: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Internal Inconsistency

Harvard University HerbariaPlant specimens, color coded by country

Latitude and Longitude: Somewhere in ChinaCountry: United States of America

Page 10: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Distribution of Rubus(Raspberries, blackberries)

Herbarium Records in GBIF, Jan 2009

Missing Data

Page 11: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Plan

Do

Check

Act

Minimal Data CaptureCurrent IDLocalityCollectorDate Collected

Georeference

Fix issues found in dataImprove Process

TrainingImproved Authority FilesImproved User Interfaces

InternalSampleLook for OutliersCompleteness

Clean Data With DataExternal AuthoritiesPatternsOutliers

Measure

Page 12: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Obvious Disguised Missing Data

Day of Month

Perc

ent o

f Col

lect

ing

Even

ts Typographic Errors?Generalization?

Day of Month of collection for about6 million specimenrecords.

Page 13: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Controlled Data Capture

Page 14: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Large controlled vocabularies: Geographic, Taxonomic, etc. authority files, with lookups.

Short controlled vocabularies,with pick lists.

Controlled Data Capture

Page 15: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

FP-DataEntryUI Service

FP-DataEntryQuery Service

Page 16: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Visualize

Page 17: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

1.3 Introduction: Current FP-Akka Workflows & Post-processing software

Paul (~ 5min)

Page 18: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Sort: Look at top and bottom

Page 19: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Examine rare values•select count(*), country from omoccurrences group by country order by count(*), country asc limit 10;•+----------+-----------------------------------------------+•| count(*) | country |•+----------+-----------------------------------------------+•| 1 | 0 |•| 1 | 1998 |•| 1 | a |•| 1 | ABKHAZIA (GEORGIA) |•| 1 | ABYSSINIA |•| 1 | Africa Occidentalis [SÜo Tom_ and PrÕncipe] |•| 1 | Alaska |•| 1 | ANDORRA |•| 1 | Arctic |•| 1 | AUSTIRA |•+----------+-----------------------------------------------+•10 rows in set (1.01 sec)

Page 20: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Look for patterns (in aggregated data)

recordedBy fieldNumber eventDate S. Hammer 7540 1999-01-00 S. Hammer 7476 1999-01-00 S. Hammer 7279 1999-01-00 S. Hammer 8237 2000-01-00 S. Hammer 8321 2000-01-00 S. Hammer 8204 2000-01-00 S. Hammer 7843 2000-07-00 S. Hammer 7851 2000-07-00 S. Hammer 7853 2000-07-00 S. Hammer 7849 2000-07-00 S. Hammer 7904 2000-08-09S. Hammer 7909 2000-08-09S. Hammer 8002 2000-12-00 S. Hammer 8028 2000-12-00

Integer field numberthat gets largerover the life of thecollector got smallerhere.

Page 21: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Data cleaning workflowLoad Data

Check scientific name

Check basisOfRecord

Check date collected

Check lat/long

Write out results

IPNI, IF,WoRMSCOL,GBIF

Geolocate

HUHBotanists

SCANEntomo.

GNI

GBIF

Page 22: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

| sign changed coordinates are on the Earth's surface. | Coordinates not inside country. | transposed/sign changed coordinates to place inside the provided Country UNITED STATES | Transposed/sign changed coordinates are near (within 200.0 km) georeference of locality from the Geolocate service.

Page 23: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

| can't construct sciName from atomic fields | Found accepted name Placopecten magellanicus in Catalog of Life service. | Authorship: Differ only in Parentheses Similarity: 0.8333333333333334

Placopecten magellanicus WAS: Gmelin, 1791; CHANGED TO: (Gmelin, 1791)

Check names against nomenclatorsand taxonomic authority sources

Page 24: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Plan

Do

Check

Act

Minimal Data CaptureCurrent IDLocalityCollectorDate Collected

Georeference

Fix issues found in dataImprove Process

TrainingImproved Authority FilesImproved User Interfaces

InternalSampleLook for OutliersCompleteness

Clean Data With DataExternal AuthoritiesPatternsOutliers

Measure

Page 25: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

1.4 Scientific Workflow Automation:- FilteredPush curation workflows- Towards Kurator/P

Bertram (~ 10min)

Page 26: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

What problems are we trying to solve?• Detect and flag data quality issues• Repair if possible

– … ask human curators as needed

• Keep track of provenance– (semi-)automatic repairs– human curators’ edits

• Employ workflow (semi-)automation– Scientific workflow systems:

• Kepler/COMAD, Restflow, Galaxy, Biovel/Taverna, Argo, VisTrails, …

– Related technologies• Akka parallel execution platform• Script-based automation (e.g. Python, R), digital notebooks (iPython)

26FP2K: Towards Curation Workflows

Page 27: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Curation Workflows Users

• Collection Managers – … who are managing the collections databases– Can run curation workflows periodically

• … in the presence of new data and/or new curation services

• (Biodiversity) Researchers– To perform an analysis in the presence of (partially)

dirty data, researchers need to• Clean or fix dirty data• Throw out unfixable data

– Reporting back to the collection managers (.. push)

27FP2K: Towards Curation Workflows

Page 28: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

FilteredPush and Kepler Curation Workflows

• Today: FP-Akka workflow: – Validation of (1) SciName; (2) GeoReference; (3) CollectionDate

• Oh, and why workflows?? ASAP!

FP2K: Towards Curation Workflows 28

Dou, Lei., G. Cao, P.J. Morris, R.A. Morris, B. Ludäscher, J.A. Macklin, J. Hanken. 2012. Kurator: A Kepler Package forData Curation Workflows, Procedia Computer Science, 9:1614-1619, doi:10.1016/j.procs.2012.04.177

Page 29: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Scientific Workflows: ASAP! • Automation

– wfs to automate computational aspects of science

• Scaling (exploit and optimize machine cycles)

– wfs should make use of parallel compute resources – wfs should be able handle large data Akka dataflow platform

• Abstraction, Evolution, Reuse (human cycles)

– wfs should be easy to (re-)use, evolve, share

• Provenance– wfs should capture processing history, data lineage traceable data- and wf-evolution Reproducible Science

TridentWorkbench

VisTrails

FP2K: Towards Curation Workflows 29

Page 30: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

So many choices … • Why not just use system X?

– Askalon, Kepler, Taverna, Trident, Triana, …• Works well for:

– custom libraries and– parameterized workflows

• But there are challenges: – … new actors/functionality (extensibility for mere mortals!)

• powerful but also complex underlying MoCs (“PhD effect”)– … adopting system X = learning new language X

• (tool makers already “speak” languages != X)– … sci-wf systems emphasize process– … but curation about data!

30FP2K: Towards Curation Workflows

Page 31: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Scientific Workflows & Scripts• New Kurator Approach

– Custom GUI (for tool users) [Kurator Phase 2] • for custom workflows built from a small library• technology/system agnostic • include data viewer

– Kurator/P (for tool makers) [Kurator Phase 1]• empower makers of curation tool• scientific workflow techniques for the rest of us• meeting (script-, batch-) programmers half way• easy integration with Custom GUI (Phase 2)

• Spectrum of curation technologies:Scientific workflows … YesWorkflow … anyScript

31FP2K: Towards Curation Workflows

Page 32: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

YesWorkflow Example (EnviRecon.org)

FP2K: Towards Curation Workflows 32

• Python, MATLAB, Bash, … R scripts revealed as workflows with YesWorkflow!

Kyle B., (computational R-)archaeologist: "It took me about 20 minutes to comment. Less than an hour to learn and YW-annotate, all-told."

Page 33: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

2 FP-Akka Workflow Demo & Hands-On Part (optional)

Paul (~ 55 min)

http://wiki.datakurator.net/web/iDigBioWebinar_May2015

Page 34: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Acknowledgments

• NSF-DBI Filtered Push: Continuous Quality Control for Distributed Collections and Other Species-Occurrence Data (ending)

• NSF-DBI Kurator: A Provenance-enabled Workflow Platform and Toolkit to Curate Biodiversity Data (started Aug. 2014)

FP2K: Towards Curation Workflows 34

Page 35: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Additional Material

…not part of the presentation…(for Q&A as needed)

Page 36: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Date Validation• Check:

– Collector’s life span – .. vs. Date-Collected

• Possible outcomes:– Valid– Corrected– Unable to validate

• Internal inconsistency– Contradicting dates

• External inconsistency– Lack of date data

36FP2K: Towards Curation Workflows

Page 37: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

… Logic Behind Each Step (cont’d)

• Scientific Name Validation– Customer-dependent:

• Collection Managers:– Nomenclature

• Researchers:– Taxonomy (current names)

– Several Remote services• IPNI, GNI, …

• …. <your logic here> …

37FP2K: Towards Curation Workflows

Page 38: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Example Output …

FP2K: Towards Curation Workflows 38

Page 39: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

… close up …

FP2K: Towards Curation Workflows 39

Page 40: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Kurator/P & YW: the road ahead …

• YesWorkflow:– … finishing support for retrospective provenance

without using a runtime provenance recorder!– Key insight: scientists already leave provenance “bread

crumbs” behind! (it’s not an accident!)– Exploit that via annotations: URI-templates

• Kurator[/P]:– How far can we go towards ASAP via YW?

FP2K: Towards Curation Workflows 40

Page 41: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

YesWorkflow.org

FP2K: Towards Curation Workflows 41

Page 42: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

YW-RECON: Prospective & Retrospective Provenance … (almost) for free!

• YW annotations in the script (R, Python, Matlab) are used to recreate the workflow view from the script …

FP2K: Towards Curation Workflows 42

Page 43: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

YW-RECON: Prospective & Retrospective Provenance … (almost) for free!

FP2K: Towards Curation Workflows 43

• URI-templates link conceptual entities to runtime provenance “left behind” by the script author …

• … facilitating provenance reconstruction

Page 44: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Summary: Data Curation with Scientific Workflow Systems

Scientific Workflows• [+] Automation• [+] Scalability• [+] Abstraction• [+] Provenance• …• [+/0] Easy to use

– [0] learning a new paradigm• [-] Teaching resources: learning a new language!• [-] Special expertise needed for deep changes

e.g. new Java actors, shims, …

FP2K: Towards Curation Workflows 44

Page 45: Towards user-definable, semi- automated workflows for ...€¦ · Scientific Workflows & Scripts • New Kurator Approach – Custom GUI (for tool users) [Kurator Phase 2] • for

Kurator/P: Scripts + YesWorkflow ++Scripts: [+] Automation, [0] Scalability, [-] Abstraction, [0/-] Provenance

Now: Scripts + YesWorkflow Annotations• [+] Abstraction

– explain your methods to mere mortals=> encourage (re-)use

• [+] Provenance:– YesWorkflow (prospective and retrospective provenance)

• [+] Language independent (R, Matlab, Python, …) • [+] Empower tool makers (script programmers): give them …

– … some immediate benefits (workflow views, retrospective provenance)– … some long term benefits: think about your methods differently => dataflow programming => [+] Scalability

FP2K: Towards Curation Workflows 45


Recommended