Skip to main content
Erschienen in: Diagnostic Pathology 1/2013

Open Access 01.09.2013 | Proceedings

An open-source, MATLAB based annotation tool for virtual slides

verfasst von: Riku Turkki, Margarita Walliander, Ville Ojansivu, Nina Linder, Mikael Lundin, Johan Lundin

Erschienen in: Diagnostic Pathology | Sonderheft 1/2013

download
DOWNLOAD
print
DRUCKEN
insite
SUCHEN
Hinweise

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

RT planed and wrote the code for the annotation tool. MW and VO reviewed the implementations and suggested modifications. ML consulted on the use of the virtual microscopy platform. RT drafted the article and NL and JL contributed by supervision of the work and review of the manuscript. All authors read and approved the final manuscript.
Abkürzungen
ECW
Enhanced Compressed Wavelet
GUI
Graphical User Interface
HTTP
Hypertext Transfer Protocol
kNN
k-Nearest Neighbour
SVM
Support Vector Machine
URL
Uniform Resource Locator

Background

Computer aided analysis of virtual slide images has become an increasingly popular research topic and area of development. Novel applications are aimed for instance at automation of certain stages in sample assessment and assay readout (e.g. segmentation, detection, etc.) [2] or for reproducible measurement of a sample’s visual appearance (e.g. grading, morphological classes etc.) [3].
Statistical learning methods are one of the key algorithms used in building these image analysis applications. Especially supervised algorithms (e.g. support vector machines (SVM), AdaBoost, k nearest neighbour (kNN), etc.) offer a way to train a classifier that can perform complex quantification tasks. The process requires annotation of labelled examples in order to describe the task and learn a model. Recently, image acquisition techniques for large-scale digitization of tissue samples have become common and require new methods to perform the annotation and associated labelling [4].
In this study we present an annotation tool that combines 1) direct interaction with a remote slide collection (a web based virtual microscopy application), 2) an interface to annotate points of interest in the virtual slides and 3) fast transition from annotation to development of image analysis methods.

Methods

The annotation tool is written in MATLAB (matrix laboratory) that is a cross-platform numerical computing environment (MathWorks, Natick, MA). MATLAB is a tool with a wide range of application areas and adopted by the image analysis community because of its versatile features. The programming language and its computing environment offers tools for testing and implementation of methods from a number manipulation to creating interactive graphical user interface (GUI) applications.
The annotation tool is based on exploiting two important properties of the current platform: 1) a random code-stream access featured image format (e.g. ECW or JPEG 2000) and 2) a compression streamlining protocol. The random code-stream compression makes it possible to extract sub-images from a large virtual slide file. Thus, the user can download only a field of interest, instead of loading the whole image file, which might be of gigapixel size. The other required property, the compression streamlining protocol, basically implements this sub-image extraction over standard hypertext transfer protocol (HTTP) in an efficient way.
With the advantages of the above-mentioned properties that a slide collection should have, it is reasonably straightforward to implement a MATLAB based tool to operate a remote database. The overall structure of the tool is illustrated in Figure 1. In a first phase the tool reads the metadata of a virtual slide file and deduces its height and width. Using a server’s streamlining protocol, uniform resource locators (URL) are defined to extract the tiles from the pre-calculated coordinates within the virtual slide. In the annotation phase, the tiles are extracted and downloaded one at the time from the server and displayed to an annotator and requested for annotations. The locations and labels of the annotations are saved locally in MAT files.

Results and discussion

We implemented a MATLAB based annotation program capable of accessing a remote slide collection. The implementation is demonstrated within a previously described virtual microscopy environment [1, 5] running image web server software (Erdas Inc., Atlanta Georgia), but is modifiable to pair with other platforms as well. The current virtual microscopy platform has proprietary server software (Image Web Server) that accepts both JPEG 2000 and ECW compressed files. The slides are made accessible via an ImageX protocol, which is implemented by the server. Other platforms, which have the ability to use JPEG 2000 files only, can utilize the JPIP (JPEG 2000 Interactive Protocol) to extract the metadata and tiles from a virtual slide over HTTP [6]. The code for the proposed tool is freely available [7].
The annotation tool keeps a record of all markings and enables the slides to be annotated in parts: it is possible to continue the annotation process from the beginning of a slide, or alternatively from a tile where the annotation was previously interrupted. The tool also keeps record of tiles that are already displayed to an annotator, which allows the areas that have not been annotated to be excluded from later processing if wanted. All the data are saved locally on the user’s computer in standard MAT files.
The tiles are loaded one at the time from the image server and displayed to the annotator. The annotation window of an annotation process in a digitized thin blood smear film is illustrated in Figure 2. All the annotations are visualized with circles, which are coloured according to their labels. The tool can be set to handle at the most ten different labels.
The actual annotation process is kept as simple as possible to provide a fast and easy-to-use interface. The user is able to add and remove an annotation by simple mouse clicks: the left button for adding a new annotation and the right button to delete the nearest detected annotation. The keyboard’s number keys are used to set the active category label and by keys N (next) and P (previous) the user can move between the tiles.
The work was motivated by our own need to annotate large virtual slide collections. In addition to the proposed applications, the tool can be applied to any kind of analysis of virtual slides. For instance, the tool offers a way to compare the agreement and accuracy of human annotators to recognize and locate objects, or it can be used to deliver one’s annotations to a shared resource.

Conclusions

We have described a simple and effective way to combine a computational environment with a virtual microscopy environment [1] to allow fast transition and iteration between method development and data annotation. The code for the annotation tool is freely available [7] and can be modified to suit different server settings. The use of the tool is demonstrated on a virtual microscopy platform by providing example slides of thin blood films.

Acknowledgements

The study was kindly supported by the national Biomedinfra and Biocenter Finland projects.
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://​creativecommons.​org/​licenses/​by/​2.​0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

RT planed and wrote the code for the annotation tool. MW and VO reviewed the implementations and suggested modifications. ML consulted on the use of the virtual microscopy platform. RT drafted the article and NL and JL contributed by supervision of the work and review of the manuscript. All authors read and approved the final manuscript.
Literatur
2.
Zurück zum Zitat Linder N, Konsti J, Turkki R, Rahtu E, Lundin M, Nordling S, Ahonen T, Pietikainen M, Lundin J: Identification of tumor epithelium and stroma in tissue microarrays using texture analysis. Diagn Pathol. 2012, 7: 22-10.1186/1746-1596-7-22.PubMedCentralCrossRefPubMed Linder N, Konsti J, Turkki R, Rahtu E, Lundin M, Nordling S, Ahonen T, Pietikainen M, Lundin J: Identification of tumor epithelium and stroma in tissue microarrays using texture analysis. Diagn Pathol. 2012, 7: 22-10.1186/1746-1596-7-22.PubMedCentralCrossRefPubMed
3.
Zurück zum Zitat Dalle JR, Leow WK, Racoceanu D, Tutac AE, Putti TC: Automatic breast cancer grading of histopathological images. Engineering in Medicine and Biology Society, 2008. EMBS 2008. 30th Annual International Conference of the IEEE. 2008, 3052-3055.CrossRef Dalle JR, Leow WK, Racoceanu D, Tutac AE, Putti TC: Automatic breast cancer grading of histopathological images. Engineering in Medicine and Biology Society, 2008. EMBS 2008. 30th Annual International Conference of the IEEE. 2008, 3052-3055.CrossRef
4.
Zurück zum Zitat Kayser K: Introduction of virtual microscopy in routine surgical pathology-a hypothesis and personal view from Europe. Diagn Pathol. 2012, 7: 48-10.1186/1746-1596-7-48.PubMedCentralCrossRefPubMed Kayser K: Introduction of virtual microscopy in routine surgical pathology-a hypothesis and personal view from Europe. Diagn Pathol. 2012, 7: 48-10.1186/1746-1596-7-48.PubMedCentralCrossRefPubMed
5.
Zurück zum Zitat Szymas J, Lundin M: Five years of experience teaching pathology to dental students using the WebMicroscope. Diagn Pathol. 2011, 6 (Suppl 1): S13-10.1186/1746-1596-6-S1-S13.PubMedCentralCrossRefPubMed Szymas J, Lundin M: Five years of experience teaching pathology to dental students using the WebMicroscope. Diagn Pathol. 2011, 6 (Suppl 1): S13-10.1186/1746-1596-6-S1-S13.PubMedCentralCrossRefPubMed
Metadaten
Titel
An open-source, MATLAB based annotation tool for virtual slides
verfasst von
Riku Turkki
Margarita Walliander
Ville Ojansivu
Nina Linder
Mikael Lundin
Johan Lundin
Publikationsdatum
01.09.2013
Verlag
BioMed Central
Erschienen in
Diagnostic Pathology / Ausgabe Sonderheft 1/2013
Elektronische ISSN: 1746-1596
DOI
https://doi.org/10.1186/1746-1596-8-S1-S30

Weitere Artikel der Sonderheft 1/2013

Diagnostic Pathology 1/2013 Zur Ausgabe

Neu im Fachgebiet Pathologie

Molekularpathologische Untersuchungen im Wandel der Zeit

Open Access Biomarker Leitthema

Um auch an kleinen Gewebeproben zuverlässige und reproduzierbare Ergebnisse zu gewährleisten ist eine strenge Qualitätskontrolle in jedem Schritt des Arbeitsablaufs erforderlich. Eine nicht ordnungsgemäße Prüfung oder Behandlung des …

Vergleichende Pathologie in der onkologischen Forschung

Pathologie Leitthema

Die vergleichende experimentelle Pathologie („comparative experimental pathology“) ist ein Fachbereich an der Schnittstelle von Human- und Veterinärmedizin. Sie widmet sich der vergleichenden Erforschung von Gemeinsamkeiten und Unterschieden von …

Gastrointestinale Stromatumoren

Open Access GIST CME-Artikel

Gastrointestinale Stromatumoren (GIST) stellen seit über 20 Jahren ein Paradigma für die zielgerichtete Therapie mit Tyrosinkinaseinhibitoren dar. Eine elementare Voraussetzung für eine mögliche neoadjuvante oder adjuvante Behandlung bei …

Personalisierte Medizin in der Onkologie

Aufgrund des erheblichen technologischen Fortschritts in der molekularen und genetischen Diagnostik sowie zunehmender Erkenntnisse über die molekulare Pathogenese von Krankheiten hat in den letzten zwei Jahrzehnten ein grundlegender …