Introduction About Site Map

XML
RSS 2 Feed RSS 2 Feed
Navigation

Main Page | Blog Index

Archive for the ‘Research’ Category

Free Datasets With Segmentation and Tagging (Cardiac and Brain)

Keywords: Open Access; Free software; Cardiac cine-MRI; Brain; Segmentation; Tagging; Cardiac deformation analysis

Overview

This informal post presents a quick survey of what’s available for one to find when it comes to heart tagging downloads (without having to go through radiologists and all sorts of burdensome forms). It is a problem I’ve been tackling recently and I would like to share my findings to make life easier for other scientists who find themselves in the same situation.

Some Background Information

A WEEK OR SO ago I decided to share information about the availability of datasets for researchers. When faced with the problem of looking for, say, ‘”tagged MR” images heart download dicom’ (and a lot of searching around this phrase) I was surprised to find that almost nobody publicly shared or made discoverable a dataset one can use for research purposes. In order to simplify the task for others who find themselves in a similar situation, several days ago I wrote about my intentions to make a sort of summary [1, 2].

As a bit of background, our original plan was to write and implement special protocols with engineers at the MRI scanner, as part of the research effort by which special types of data are obtained for a novel approach to be tested. This is explained in a paper I’ll put up in the site pretty soon.

At the moment, due to particular constraints, we are working on analysis of sequences of tagged data. This obviously requires not just MR images of the heart but also sequences and these, preferably sequences that must have particular types of tags which a radiologist would use. Data can be acquired/sliced from different angles and obtained from any subject/patient at the hospital*, but for this particular approach that we test (to be covered in a separate post) this is rather irrelevant as we want it to be applicable regardless of factors like angles, subjects, and potentially their atrophies.

Resources

SourceForge hosts quite a few MRI-related software projects which are free/libre and thus of value to MRI-based research (our methods and data should be made freely accessible for independent validation). One of these projects is the cardiac MR toolbox for Matlab, which may also be fully compatible with Octave (free/libre software). “The cardiac MR (CMR) toolbox for Matlab,” explains the official Web page, “provides tools for image registration, perfusion analysis, segmentation, and image reconstruction from sparsely sampled data.” Here is the alternative project homepage. It states:

This is the Cardiac MR toolbox for Matlab project (“cmr-toolbox”)

This project was registered on SourceForge.net on Mar 29, 2010, and is described by the project team as follows:
The cardiac MR (CMR) toolbox for Matlab provides tools for image registration, perfusion analysis, segmentation, and image reconstruction from sparsely sampled data.”

For brain MRI there is the RESCUE brain MRI segmentation project. It is not yet available, but it soon will be. Its author states: “RESCUE will be made available after publication of the PhD thesis of James Withers (Uni of Edinburgh, UK). The first version of the package will initially include super-resolution, thin structure detection, and partial volume estimation components.”

Of course, one can get brain datasets from the rather famous BrainWeb (more here) and some more data resides in my site, including a sample set of images and some DICOM-formatted data of my own brain (acquired at Hope Hospital for a colleague’s experiment back in 2005).

Moving on to the heart, there is a cardiac MRI dataset which is not terribly useful because almost everything is encoded and stored in MATLAB format and may therefore require some loaders that are proprietary (Octave does not cope so well with those).

There is another project called inTag and this Web pageoffers a a look at what’s done there. Another page offers a look at how it’s used. It is “a software to calculate, display and analyze myocardial strains and intra-myocardial mechanics from cardiac MR images with a tagging pattern.”

The dependencies on proprietary software are unfortunate though. As the page puts it: “After a preliminary prototyping step in Matlab ®, InTag is now available as a plugin in OsiriX, the advanced open-source image processing software. It benefits of all its unique capabilities for navigation, visualisation of multimodality and multidimensional images, and data management.”

This requires OsiriX, which is Free/open source software, but only for Macs, which is not terribly useful then. Here is some tagging from this software package called inTag. It’s just a group of some very low-resolution images in DICOM format (small and not so useful at all).

Another dataset which I find odd (not because it’s made available just in very low resolution but because there is something odd in orientation) comes from New Zealand. Images are said to be available for download, but they are all encoded as AVI-formatted slanted videos and also compressed. The only one set with tagging data is not too helpful, either. The page states that “The Auckland MRI Research group has agreed to make freely available 256×256 JPEG images and image orientation information for download. In addition the Auckland MRI Research group has also agreed to make freely available the cines in AVI format”. What’s listed in the page as an overview is as follows:

All 119 T1-weighted jpeg images
akld-mrirg-atlas-jpegs.zip (4.33MB)
12 Long axis trueFisp avi movies
akld-mrirg-cines-truefisp-long.zip (21.76MB)
1-15 Short axis trueFisp avi movies
akld-mrirg-cines-truefisp-short-a.zip (25.32MB)
16-30 Short axis trueFisp avi movies
akld-mrirg-cines-truefisp-short-b.zip (28.61MB)
3 Aorta and 1 RVOT trueFisp avi movies
akld-mrirg-cines-truefisp-aorta-rvot.zip (7.42MB)
11 Long axis and 15 Short axis tagged avi movies
akld-mrirg-cines-tagging.zip (26.46MB)
Aorta(2) / Right(2) and Left(2) Pulmonary arteries(4) phase contrast avi
movies akld-mrirg-cines-phasecontrast.zip (10.34MB)

Those sets are not tagged except akld-mrirg-cines-tagging.zip. There is also no data from the Cincinnati Children’s Hospital Medical Center, which shows up among many search results. Search for data has proven to be quite fruitless, generally speaking.

Eventually I used data which I acquired from someone’s thesis frame by frame, only to be seen as a temporary solution until data comes from a group that keeps it for internal use. The conclusion is that the Web is generally a poor resource for such data, especially if tagging is a requirement. If someone knows of an exception, please comment below.

Some References

On this fruitless pursuit for data the following references were seen as potentially relevant (publication names mostly omitted as it’s easy to search by title).

DN Metaxas, “A Segmentation and Tracking System for 4D Cardiac Tagged MR Images,” 2008.

L Axel, “Tagged MRI-Based Studies of Cardiac Function,” Computerized Medical Imaging and Graphics, Volume 29, Issue 8, December 2005, Pages 607-616, 2003.

D Goksel, “Towards rapid screening of tagged MR images of the heart,” 2002.

NF Osman, “Angle Images for Measuring Heart Motion from Tagged MRI.”

L Axel, “An Integrated Program for 2-D and 3-D Analysis of Heart Wall…,” 2002.

Y. Chenounea, “Segmentation of cardiac cine-MR images and myocardial deformation assessment using level set methods,” 2005.

(Abstract: “In this paper, we present an original method to assess the deformations of the left ventricular myocardium on cardiac cine-MRI. First, a segmentation process, based on a level set method is directly applied on a 2D+t dataset to detect endocardial contours. Second, the successive segmented contours are matched using a procedure of global alignment, followed by a morphing process based on a level set approach. Finally, local measurements of myocardial deformations are derived from the previously determined matched contours. The validation step is realized by comparing our results to the measurements achieved on the same patients by an expert using the semi-automated HARP reference method on tagged MR images.)
____
* Some are too blurry and others paint areas with blood presence black, which help isolate the boundaries of important structures for subsequent analysis.

Animated Example of Cardiac Tagging

Tagging of heart

I intend to publish a long overview of Web resources for tagged data. In the mean time, based on the excellent Web page of Zhen Qian I have managed to piece together something for people to play with. From his thesis [PDF] I’ve extracted a series of 6 frames that I’ve produced the above videos from. I’m hoping to receive high-resolution data to test code with, probably later this month. If the data can be legally shared, I will try to ensure people can get it from this Web site so that getting things done becomes less of an unnecessary ordeal to others.

MRI Tagging

Tagged heart

Sudden change in plans and improvement of research direction leads me to the exploration of MRI tagging, which proves to be difficult when one tries to actually find raw data to work with, not information about it. In the coming days I plan to prepare a post explaining to people where they can obtain tagged data of the brain and the heart (trying to help others solve the problem which occupies many hours of my time). The Internet is extremely mature when it comes to sharing of text and sometimes even audio and film, copyright being an obvious barrier. When it comes to medical data, however, it is another story altogether, even if it’s totally anonymised. Personally, I’ve put 3-D scans of my brain on this Web site, hoping to provide people with the sort of data I sometimes struggle to get a hold of.

DICOM Viewers for GNU/Linux

DICOM in Octave

DICOM in viewer

IT HAS been a while since I last did a comprehensive survey of DICOM-related software and since I am ditching MATLAB (in the quest for Free software-only research) I decided to review or at least check out what’s available at the end of 2010. Other people may find this handy.

DICOM is notorious for being the standard that’s not quite the standard and is actually somewhat proprietary and controlled by one entity. As someone pointed out the other day, DICOM is considered “extensible”, which implies that the usual type of format ‘bastardisation’ will always occur. It’s just an inconsistent data format as someone warned, so some software would cough at it and sometimes manage to salvage some data. According to Wikipedia, some tagging of the image/s is accompanied by data fields like:

Value Representation Description
AE Application Entity
AS Age String
AT Attribute Tag
CS Code String
DA Date
DS Decimal String
DT Date/Time
FL Floating Point Single (4 bytes)
FD Floating Point Double (8 bytes)
IS Integer String
LO Long String
LT Long Text
OB Other Byte
OF Other Float
OW Other Word
PN Person Name
SH Short String
SL Signed Long
SQ Sequence of Items
SS Signed Short
ST Short Text
TM Time
UI Unique Identifier
UL Unsigned Long
UN Unknown
US Unsigned Short
UT Unlimited Text

Let us say that we are more interested in the raw image data and not so much in the metadata. If that’s the case, batch conversion to a more manageable format is worthwhile. Here is the command-line converter that I use (some are for Windows only and they are proprietary) and some other options can be found on the Web through directories. There are also good software resources on scientific data formats and there is radiology CEU information regarding PACS and DICOM viewers. There is actually far more choice out there than there was a few years ago. For GNU/Linux and Free software proponents there is no lack or deficiency, either.

Octave Packages – The Free Software Candy Store

Octave packages

Octave packages - window

THIS POST is part of a series that I do about my incursions moving from MATLAB to Octave, which has so far been a pleasant experience. QtOctave looks better and is easier to install than MATLAB (on GNU/Linux with KDE at least). For those who experienced being a customer/user of MATLAB, it can really be a pain in the butt, licence-wise. The parent company, MathWorks, can be very aggressive when it comes to licensing (it pays the BSA after all), so people are kept tied to particular IP addresses and must renew something to remove artificial limitations. Moreover, the toolboxes that MATLAB sells separately are a case of artificial scarcity and they can be expensive. Octave resolves much of this by centralising a lot of software as shown in the screenshots above (also separating free/libre from proprietary). Rather than waste time with paperwork and bank transactions, any QtOctave user can simply and quickly click away to receive anything s/he desires. It’s truly like a candy store.

Why ever go through the trouble presented by MATLAB, Maple, Mathematica, or IDL? Some people may need these for collaboration and consistency (as in monoculture), but it is better to start without any proprietary software dependency.

I will report on more aspects of this comparison as I go along. At the moment I’m exploring the GPLv3-licensed BioSig project, which allows me to deal with DICOM datasets of the heart (images acquired just recently — ones that I picked up at the hospital yesterday). Speaking of which, I’ve learned that some scanning machines that traditionally used Windows are now moving to GNU/Linux. How exciting times are coming…

MATLAB vs QtOctave First Impressions: QtOctave Looks Better

MATLAB vs QtOctave

ON A KDE (Qt) desktop like mine, despite MATLAB putting a lot of effort into improving the GUI on the GNU/Linux side* (even adding a Microsoft Windows-esque “Start” button at the bottom left), QtOctave integrates more nicely with the desktop. Thanks to all those who suggested some other tools including R, Sage, Scilab, QtOctave, graphviz and so on as I make my way into the world of Free software-only research (valuable pointers in the comments too).

All the code I’ve ever produced is Free software, but whenever I worked with MATLAB only the underlying framework was proprietary. This created a sort of trap, wherein my free/libre code depended on code which was not. In the near future I hope to produce code, blog items, upload of all code I write (including code sample for explanatory purposes), screecasts, etc. I may even commit code upstream if it’s polished enough for general-purpose use. I will continue to share dents and images on a regular basis too. In the mean time, for comparative purposes, I will also use my academic licence of MATLAB. I was once ranked first in the world for my code contributions to MATLAB, but although my code was all free software it helped MATLAB (BSA sponsor and thus a contributor to an attack on the software industry) just sell more copies of proprietary software. I am not a disgruntled prominent user of MALTAB but someone who is trying to show the way out of MATLAB mostly for idealogical reasons. If everything works as I hope, I will soon be 100% free of proprietary software.
___
* It was far, far uglier a few years back.

Science Blogging

Back to nature… sort of…

Roy Schestowitz, London, 2010
London (2010)

Earlier today I watched with great patience this wonderful new interview with PZ Myers (thanks, Thunderf00t!), who spoke about his hugely popular science blog. I very much enjoy his site in which he started writing only 7 years ago. It was about 6 years ago that I started my own science blog (on computer vision) and later started another one about my particular area of focus (that was in 2005). They grew nicely and reached the niche whose narrow topic of interest they covered.

I have been thinking recently of the potential to inform people who are my peers through scientific blogs and decided that I will probably restore activity in those older two, as well as this one neglected personal blog where I hardly wrote anything for the past 3 years (it totals 1416 posts though, mostly from the olden days).

I found it gratifying back in the days around 2006 when people in my scientific field knew me in conferences because of my blogs and wanted to hang out with me because of these. The readership grew steadily as long as I kept writing. PZ Myers sees the same type of trend and Techrights, where I wrote over 11,000 posts, is the same. Perhaps I will resume posting in blog form about science later this month or next month. As always, I will separate my professional life, my personal life, and my hobbies (the 4 blogs I run will provide this separation).

On several occasions I was offered an opportunity to write a book, but frankly, I believe that books are seeing their end of days (when older generations are no longer with us, then pen and paper too may vanish). I was fortunate to get into blogging early on, thanks to Free software. It’s a rewarding experience even through there is no pay.

Retrieval statistics: 21 queries taking a total of 0.089 seconds • Please report low bandwidth using the feedback form
Original styles created by Ian Main (all acknowledgements) • PHP scripts and styles later modified by Roy Schestowitz • Help yourself to a GPL'd copy
|— Proudly powered by W o r d P r e s s — based on a heavily-hacked version 1.2.1 (Mingus) installation —|