--- license: cc-by-2.5 task_categories: - image-classification - image-segmentation - image-feature-extraction language: - en tags: - biology - X-Ray size_categories: - 1K The "FracAtlas" dataset is a collection of musculoskeletal radiographs for bone fracture classification, localization, and segmentation. It includes 4,083 X-Ray images (717 fracture images) with corresponding annotations in multiple formats. The annotations include segmentations, width, and etc in COCO, VGG, YOLO, and Pascal VOC format. The dataset is intended for use in deep learning tasks in medical imaging, specifically targeting the understanding of bone fractures. It is freely available under a CC-BY 4.0 license. This script provides a Hugging Face `datasets` loader for the FracAtlas dataset. The generated dataset includes high-quality X-Ray images and incorporated detailed annotations from COCO JSON format for segmentation and bounding box information, as well as additional localization data from PASCAL VOC XML files. The loader handles downloading and preparing the dataset, making it readily available for machine learning models and analysis tasks in medical imaging, especially focusing on the detection and understanding of bone fractures. - **Curated by:** Abedeen, Iftekharul; Rahman, Md. Ashiqur; Zohra Prottyasha, Fatema; Ahmed, Tasnim; Mohmud Chowdhury, Tareque; Shatabda, Swakkhar - **License:** cc-by-2.5 ### Dataset Sources - **Repository:** https://figshare.com/articles/dataset/The_dataset/22363012 - **Paper:** https://www.nature.com/articles/s41597-023-02432-4 ## Uses The "FracAtlas" dataset can be used to develop multiple machine learning or deep learning algorithms. For example: 1. Developing a deep learning model to automatically detect fractures in radiographs. 2. Classifying the type of fractures (e.g., hairline, compound, transverse) using machine learning models 3. Implementing segmentation models to delineate bone structures from the surrounding tissues in the radiographs 4. Forecasting patients’ outcomes based on the characteristics of the fracture and other patient data 5. Developing models to identify anomalous patterns in the radiographs of bones ## Dataset Structure ### Original Dataset Schema The original zip file contains 3 subfolders “images”, “Annotations”, “utilities” and a “dataset.csv” file. In the "image" folder, it contains 2 subfolders: "Fractured" and "Non-fractured", and each image is stored in corresponding folder in JPG format. In the "Annotations" folder, it contains 4 subfolders: "COCO JSON", "PASCAL VOC", "VGG JSON", and "YOLO". Annotations are stored in their corresponding folders. More details can be read in ### Annotations section. In the "utilities" folder, it contains several programming scripts that could be used to convert the raw files to a more readable format. None of them were used in this dataset loader. The "dataset.csv" contains many basic variables for each image:
* image_id [string]: The unique identifier for each radiograph image in the dataset.
- hand [int]: A binary indicators (1 or 0) marking the presence of hand in the radiograph
- leg [int] : A binary indicators (1 or 0) marking the presence of leg in the radiograph
- hip [int] : A binary indicators (1 or 0) marking the presence of hip in the radiograph
- shoulder [int]: A binary indicator (1 or 0) marking the shoulder in the radiograph
- mixed [int]: A binary indicator of whether the image contains multiple body parts
- hardware [int]: A binary indicator marking the presence of medical hardware (i.e. screws or plates) in the image
- multiscan [int]: A binary indicator signifies whether the image is part of a set of multiple scans
- fractured [int]: A binary indicator of whether there is a fracture present in the image
- fracture_count [int]: The number of fractures present in the image
- frontal [int]: A binary indicator denoting the front orientation of the radiograph
- lateral[int]: A binary indicator denoting the side orientation of the radiograph
- oblique [int]: A binary indicator denoting denoting the angled orientation of the radiograph
### Updated Dataset Schema In this dataset loader, certain existed variables are modified into specific Huggingface feature, such Above are the data that could be directly extracted from the downloaded files. Other than the above-mentioned features, this huggingface dataset also extract infomation from annotations files to present a more systematic and clean FracAtlas dataset. Other variables are extracted from the annotations files: - Image [image]: A PIL image object denoting each X-ray image \ - Image_path [string]: A string representing the file path for its corresponding image \ - segmentation [list]: A list object contains the segmentation info for each fractured image \ - bbox [list]: A list object contains the bounding box info for each fractured image \ - area [float]: A float denoting the area of the bounding box in each fractured image - height [int] \ - width [int] \ - Depth [int] - segmented [int] \ ### Curation Rationale The creation of the FracAtlas dataset was driven by the need for a comprehensive and specialized collection of medical images to train machine learning models for fracture detection. The dataset aims to address the gap in the availability of annotated musculoskeletal radiographs necessary for advancing AI-assisted diagnostic tools. The choices involved in its assembly, including the selection of specific types of radiographs and the detailed annotation process, were governed by the objective of providing a robust resource that can significantly improve the accuracy and efficiency of fracture diagnosis in the medical field. ### Source Data In the initial phase, a total of 14,068 X-Rays were collected. Due to privacy concerns, all the DICOM images were given an arbitrary image name and converted to JPG image format. This automatically got rid of all the sensitive information that was present in the metadata of DICOM images. These conversions were done using the proprietary software of the corresponding X-ray machines. The renamed DICOM images were stored in the hospital database separately for later study of general distribution. All the X-ray scans that have been collected are for general-purpose diagnosis. This means along with bone fracture scans there are also samples for chest diseases and abnormalities in the skull and spine region. In the collected data the number of bone fracture samples in the chest, skull and spine region was sparse. As a result, scans for the said parts were removed with the supervision of a medical officer. This left us with 4,083 scans from the hand, leg, hip and shoulder regions. Figure 2 shows some valid vs outlier images for the dataset. #### Data Collection and Processing The FracAtlas dataset was accumulatively collected over 14,000 X-ray scans from several medical facilities across Bangladesh, with a substantial portion sourced from Lab-Aid Medical Center. Following collection, a meticulous data cleaning phase was undertaken to ensure the integrity and usability of the scans. Finally, the dataset was enhanced with detailed annotations. Ethical approval was secured, ensuring the confidentiality of patient data, and all participants provided informed consent. The collection process was designed to be non-intrusive to the standard diagnostic and treatment protocols of the involved hospitals. ### Annotations The dataset includes 4,083 images that have been manually annotated for bone fracture classification, localization, and segmentation with the help of 2 expert radiologists. Annotations have later been verified and merged by an orthopedist using the open-source labeling platform, makesense.ai. There are 4 types of annotations provided in the Annotations folder: 1. Common Objects in Context (COCO) JSON: It contains a JSON file, which includes corresponding annotations for fractured images (total 717 images). It includes segmentation, bbox, and area for each fractured image. This is mainly used for segmentation. Notice that the COCO annatation annotation is only for images that have fractures. 2. PASCOL VOC: It contains xml files for each image. This is used for localization. For each xml file, it includes the height, width, depth, and segmented data for each image. 3. VGG JSON: It contains a single JSON file, which includes annotations for fractrued images. 4. YOLO: It contains txt files for each image. This is used for localization. #### Personal and Sensitive Information All personally identifiable information in the gathered data has been removed, and theprocess was administered according to the Institutional Research Ethics Board of United International University. ## Bias, Risks, and Limitations While the FracAtlas dataset is particularly valuable for the development of computer-aided diagnosis systems, its potential limitations should be carefully considered. Firstly, the manual annotation process, is susceptible to human error, which may result in mislabeling. Such inaccuracies can impact the performance of machine learning models trained on this data. ### Recommendations Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations. ## Citation **APA:** Abedeen, I., Rahman, M. A., Prottyasha, F. Z., Ahmed, T., Chowdhury, T. M., & Shatabda, S. (2023). FracAtlas: A Dataset for Fracture Classification, Localization and Segmentation of Musculoskeletal Radiographs. Scientific data, 10(1), 521. https://doi.org/10.1038/s41597-023-02432-4