Downloads · 30 days
0
jamesdolezal/thyroid-brs-v1
thyroid-brs-v1 is a machine learning model from jamesdolezal. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tf-keras. The card lists the license as gpl-3.0.
This model card describes a model associated with the manuscript "Deep learning prediction of BRAF-RAS gene expression signature identifies noninvasive follicular thyroid neoplasms with papillary-like nuclear features…
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2023
Repo size
292 MB
Likes
3
Public
Click a slice to open those files.
.data-00000-of-00001288 MB · 99%
From the Hugging Face model README
This model card describes a model associated with the manuscript "Deep learning prediction of BRAF-RAS gene expression signature identifies noninvasive follicular thyroid neoplasms with papillary-like nuclear features", by Dolezal et al, available here
target_means and target_stds listed in the model params.json file. Images should be should be standardized with tf.image.per_image_standardization().For direct use, the model can be loaded using Tensorflow/Keras:
import tensorflow as tf
model = tf.keras.models.load_model('/path/')
or loaded with Slideflow version 1.1+ with the following syntax:
import slideflow as sf
model = sf.model.load('/path/')
The stain normalizer can be loaded and fit using Slideflow:
normalizer = sf.util.get_model_normalizer('/path/')
The stain normalizer has a native Tensorflow transform and can be directly applied to a tf.data.Dataset:
# Map the stain normalizer transformation
# to a tf.data.Dataset
dataset = dataset.map(normalizer.tf_to_tf)
Alternatively, the model can be used to generate predictions for whole-slide images processed through Slideflow in an end-to-end Project. To use the model to generate predictions on data processed with Slideflow, simply pass the model to the Project.predict() function:
import slideflow
P = sf.Project('/path/to/slideflow/project')
P.predict('/model/path')
This model is intended for research purposes only. Possible research areas and tasks include
Excluded uses are described below.
This model should not be used in a clinical setting to generate predictions that will be used to inform patients, physicians, or any other health care members directly involved in their health care outside the context of an approved research protocol. Using the model in a clinical setting outside the context of an approved research protocol is a misuse of this model. This includes, but is not limited to:
The model has not been validated in contexts where non-thyroid neoplasms, or rare thyroid subtypes such as anaplastic thyroid carcinoma, are possible.
This model was trained on The Cancer Genome Atlas (TCGA), which contains patient data from communities and cultures which may not reflect the general population. This datasets is comprised of images from multiple institutions, which may introduce a potential source of bias from site-specific batch effects (Howard, 2021).
Training Data The following dataset was used to train the model:
This model was trained on a total of 369 slides, with 116 BRAF-like tumors and 271 RAS-like tumors.
Training Procedure Each whole-slide image was sectioned into smaller images in a grid-wise fashion in order to extract tiles from whole-slide images at 302 x 302 μm. Image tiles were extracted at the nearest downsample layer, and resized to 299 x 299 px using Libvips. During training,
tf.image.per_image_standardization()Additional training information:
External evaluation results are currently under peer review and will be posted once publicly available.