{"id":1688,"date":"2022-12-17T16:06:52","date_gmt":"2022-12-17T16:06:52","guid":{"rendered":"http:\/\/clinicaltrialrisk.org\/?p=1688"},"modified":"2023-01-23T12:57:28","modified_gmt":"2023-01-23T12:57:28","slug":"accurate-clinical-trial-risk-tool","status":"publish","type":"post","link":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/","title":{"rendered":"How accurate is the Clinical Trial Risk Tool?"},"content":{"rendered":"\n

In order to develop the Clinical Trial Risk Tool, we had to conduct a quality control exercise on the components. Each parameter which is fed into the complexity model is trained and evaluated independently. For an overview of how the tool works, please read this blog post<\/a>.<\/p>\n\n\n\n

Datasets<\/h2>\n\n\n\n

I used two datasets to train and evaluate the tool:<\/p>\n\n\n\n

    \n
  1. Manual dataset – this was a set of between 100 and 300 protocols which I read through individually and annotated key parameters such as the sample size. The number annotated per parameter varied between 100 and 300.<\/li>\n\n\n\n
  2. ClinicalTrials.gov dataset – this was a much larger dataset of 11925 protocols downloaded from ClinicalTrials.gov<\/a>. These came together with NCT ID, phase, pathology, SAP, number of arms and number of subjects, but the data was voluntarily provided by the researchers and in many cases is out of date or inaccurate.<\/li>\n<\/ol>\n\n\n\n

    By combining the two datasets I was able to get some of the advantages of a large dataset and some of the advantages of a smaller, more accurate dataset.<\/p>\n\n\n\n

    Validation<\/h2>\n\n\n\n

    For validation on the manual dataset, I used cross-validation. For validation on the ClinicalTrials.gov dataset, I took the third digit of the trial’s NCT ID. Trials with values 0-7 were used for training, with value 8 were used for validation, and those with value 9 are held out as a future test set.<\/p>\n\n\n\n

    Validation scores for manual dataset<\/h2>\n\n\n\n

    Validation scores on small manually labelled dataset (about 100 protocols labelled, but 300 labelled for number of subjects). You can reproduce my experiments using the notebooks from this folder<\/a>.<\/p>\n\n\n\n

    Component<\/td>Accuracy – manual validation dataset<\/td>AUC – manual validation dataset<\/td>Technique<\/td><\/tr>
    Condition (Naive Bayes)<\/td>88%<\/td>100%<\/td>Naive Bayes<\/td><\/tr>
    SAP (Naive Bayes)<\/td>85%<\/td>87%<\/td>Naive Bayes<\/td><\/tr>
    Effect Estimate<\/td>73%<\/td>95%<\/td>Naive Bayes<\/td><\/tr>
    Number of Subjects<\/td>69% (71% within 10% margin)<\/td>N\/A<\/td>Rule based combined with Random Forest<\/td><\/tr>
    Simulation<\/td>94%<\/td>98%<\/td>Naive Bayes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

    Validation scores for ClinicalTrials.gov dataset<\/h2>\n\n\n\n

    You can reproduce my experiments using the notebooks from this folder<\/a>. As a sanity check I also trained a Naive Bayes classifier for some of these components to check that our models are outperforming a reasonable baseline.<\/p>\n\n\n\n

    Component<\/td>Accuracy – ClinicalTrials.gov validation dataset<\/td>Baseline Accuracy (Naive Bayes) – ClinicalTrials.gov validation dataset<\/td>Technique<\/td><\/tr>
    Phase<\/td>75%<\/td>45%<\/td>Ensemble – rule based + random forest<\/td><\/tr>
    SAP<\/td><\/td>82%<\/td>Naive Bayes<\/td><\/tr>
    Number of Subjects<\/td>13%<\/td>6%<\/td>Rule based combined with Random Forest<\/td><\/tr>
    Number of Arms<\/td>58%<\/td>52%<\/td>Ensemble<\/td><\/tr>
    Countries of Investigation<\/td>AUC 87%<\/td>N\/A<\/td>Ensemble – rule based + random forest + Naive Bayes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

    In particular I found that the ClinicalTrials.gov value for the sample size was particularly inaccurate, hence the very low performance of the model on that value.<\/p>\n\n\n\n

    Other results of the validation<\/h2>\n\n\n\n

    By far the most difficult model was the number of subjects (sample size) classifier.<\/p>\n\n\n\n

    I designed this component as a stage of manually defined features to identify candidate sample sizes (numeric values in the text), combined with a random forest using these features to identify the most likely candidate. Here is an output of the feature importances of the random forest model.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Similarly, the simulation classifier is a random forest that uses manually defined features of key words:<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    For any of the components, we also plotted a Confusion Matrix. <\/p>\n\n\n\n

    \"\"
    Confusion matrix for the baseline (Naive Bayes) phase extractor on the ClinicalTrials.gov validation dataset<\/figcaption><\/figure>\n\n\n\n
    \"\"<\/figure>\n\n\n\n

    Conclusions<\/h2>\n\n\n\n

    Since each component is designed differently, it has been complex to validate the performance.<\/p>\n\n\n\n

    However I have provided some Jupyter notebooks in the repository to run the validation and reproduce my results.<\/p>\n\n\n\n

    There is still much scope for improvement of several features, especially sample size.<\/p>\n\n\n\n

    Some parameters, such as simulation, were not available in the ClinicalTrials.gov dataset and so could only be trained and validated manually. We hope to be able to annotate more data for these areas.<\/p>\n","protected":false},"excerpt":{"rendered":"

    In order to develop the Clinical Trial Risk Tool, we had to conduct a quality control exercise on the components. Each parameter which is fed into the complexity model is trained and evaluated independently. For an overview of how the tool works, please read this blog post. Datasets I used two datasets to train and […]<\/p>\n","protected":false},"author":1,"featured_media":2017,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\nHow accurate is the Clinical Trial Risk Tool? - CLINICAL TRIAL RISK TOOL<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How accurate is the Clinical Trial Risk Tool? - CLINICAL TRIAL RISK TOOL\" \/>\n<meta property=\"og:description\" content=\"In order to develop the Clinical Trial Risk Tool, we had to conduct a quality control exercise on the components. Each parameter which is fed into the complexity model is trained and evaluated independently. For an overview of how the tool works, please read this blog post. Datasets I used two datasets to train and […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"CLINICAL TRIAL RISK TOOL\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-17T16:06:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-23T12:57:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/clinicaltrialrisk.org\/wp-content\/uploads\/2022\/12\/pexels-engin-akyurt-1552617-min.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"854\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"thomas@fastdatascience.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fastdatascienc1\" \/>\n<meta name=\"twitter:site\" content=\"@fastdatascienc1\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"thomas@fastdatascience.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\"},\"author\":{\"name\":\"thomas@fastdatascience.com\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/#\/schema\/person\/ec5d6251c9a0b738e98526be5b9f20fb\"},\"headline\":\"How accurate is the Clinical Trial Risk Tool?\",\"datePublished\":\"2022-12-17T16:06:52+00:00\",\"dateModified\":\"2023-01-23T12:57:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\"},\"wordCount\":619,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\",\"url\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\",\"name\":\"How accurate is the Clinical Trial Risk Tool? - CLINICAL TRIAL RISK TOOL\",\"isPartOf\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/#website\"},\"datePublished\":\"2022-12-17T16:06:52+00:00\",\"dateModified\":\"2023-01-23T12:57:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/clinicaltrialrisk.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How accurate is the Clinical Trial Risk Tool?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/#website\",\"url\":\"https:\/\/clinicaltrialrisk.org\/\",\"name\":\"CLINICAL TRIAL RISK TOOL\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/clinicaltrialrisk.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/#organization\",\"name\":\"CLINICAL TRIAL RISK TOOL\",\"url\":\"https:\/\/clinicaltrialrisk.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/clinicaltrialrisk.org\/wp-content\/uploads\/2022\/12\/clinical-trial-risk-tool-high-resolution-logo-color-on-transparent-background-e1671130033240.png\",\"contentUrl\":\"https:\/\/clinicaltrialrisk.org\/wp-content\/uploads\/2022\/12\/clinical-trial-risk-tool-high-resolution-logo-color-on-transparent-background-e1671130033240.png\",\"width\":500,\"height\":58,\"caption\":\"CLINICAL TRIAL RISK TOOL\"},\"image\":{\"@id\":\"https:\/\/clinicaltrialrisk.org\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/fastdatascienc1\",\"https:\/\/www.linkedin.com\/company\/18512544\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/#\/schema\/person\/ec5d6251c9a0b738e98526be5b9f20fb\",\"name\":\"thomas@fastdatascience.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/clinicaltrialrisk.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/083f5f1b2c5592f452dbbf8d630db1a5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/083f5f1b2c5592f452dbbf8d630db1a5?s=96&d=mm&r=g\",\"caption\":\"thomas@fastdatascience.com\"},\"sameAs\":[\"http:\/\/clinicaltrialrisk.org\"],\"url\":\"https:\/\/clinicaltrialrisk.org\/author\/thomasfastdatascience-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How accurate is the Clinical Trial Risk Tool? - CLINICAL TRIAL RISK TOOL","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/","og_locale":"en_US","og_type":"article","og_title":"How accurate is the Clinical Trial Risk Tool? - CLINICAL TRIAL RISK TOOL","og_description":"In order to develop the Clinical Trial Risk Tool, we had to conduct a quality control exercise on the components. Each parameter which is fed into the complexity model is trained and evaluated independently. For an overview of how the tool works, please read this blog post. Datasets I used two datasets to train and […]","og_url":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/","og_site_name":"CLINICAL TRIAL RISK TOOL","article_published_time":"2022-12-17T16:06:52+00:00","article_modified_time":"2023-01-23T12:57:28+00:00","og_image":[{"width":1280,"height":854,"url":"https:\/\/clinicaltrialrisk.org\/wp-content\/uploads\/2022\/12\/pexels-engin-akyurt-1552617-min.jpg","type":"image\/jpeg"}],"author":"thomas@fastdatascience.com","twitter_card":"summary_large_image","twitter_creator":"@fastdatascienc1","twitter_site":"@fastdatascienc1","twitter_misc":{"Written by":"thomas@fastdatascience.com","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#article","isPartOf":{"@id":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/"},"author":{"name":"thomas@fastdatascience.com","@id":"https:\/\/clinicaltrialrisk.org\/#\/schema\/person\/ec5d6251c9a0b738e98526be5b9f20fb"},"headline":"How accurate is the Clinical Trial Risk Tool?","datePublished":"2022-12-17T16:06:52+00:00","dateModified":"2023-01-23T12:57:28+00:00","mainEntityOfPage":{"@id":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/"},"wordCount":619,"commentCount":0,"publisher":{"@id":"https:\/\/clinicaltrialrisk.org\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/","url":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/","name":"How accurate is the Clinical Trial Risk Tool? - CLINICAL TRIAL RISK TOOL","isPartOf":{"@id":"https:\/\/clinicaltrialrisk.org\/#website"},"datePublished":"2022-12-17T16:06:52+00:00","dateModified":"2023-01-23T12:57:28+00:00","breadcrumb":{"@id":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/clinicaltrialrisk.org\/accurate-clinical-trial-risk-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clinicaltrialrisk.org\/"},{"@type":"ListItem","position":2,"name":"How accurate is the Clinical Trial Risk Tool?"}]},{"@type":"WebSite","@id":"https:\/\/clinicaltrialrisk.org\/#website","url":"https:\/\/clinicaltrialrisk.org\/","name":"CLINICAL TRIAL RISK TOOL","description":"","publisher":{"@id":"https:\/\/clinicaltrialrisk.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clinicaltrialrisk.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/clinicaltrialrisk.org\/#organization","name":"CLINICAL TRIAL RISK TOOL","url":"https:\/\/clinicaltrialrisk.org\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clinicaltrialrisk.org\/#\/schema\/logo\/image\/","url":"https:\/\/clinicaltrialrisk.org\/wp-content\/uploads\/2022\/12\/clinical-trial-risk-tool-high-resolution-logo-color-on-transparent-background-e1671130033240.png","contentUrl":"https:\/\/clinicaltrialrisk.org\/wp-content\/uploads\/2022\/12\/clinical-trial-risk-tool-high-resolution-logo-color-on-transparent-background-e1671130033240.png","width":500,"height":58,"caption":"CLINICAL TRIAL RISK TOOL"},"image":{"@id":"https:\/\/clinicaltrialrisk.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/twitter.com\/fastdatascienc1","https:\/\/www.linkedin.com\/company\/18512544"]},{"@type":"Person","@id":"https:\/\/clinicaltrialrisk.org\/#\/schema\/person\/ec5d6251c9a0b738e98526be5b9f20fb","name":"thomas@fastdatascience.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clinicaltrialrisk.org\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/083f5f1b2c5592f452dbbf8d630db1a5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/083f5f1b2c5592f452dbbf8d630db1a5?s=96&d=mm&r=g","caption":"thomas@fastdatascience.com"},"sameAs":["http:\/\/clinicaltrialrisk.org"],"url":"https:\/\/clinicaltrialrisk.org\/author\/thomasfastdatascience-com\/"}]}},"_links":{"self":[{"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/posts\/1688"}],"collection":[{"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/comments?post=1688"}],"version-history":[{"count":28,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/posts\/1688\/revisions"}],"predecessor-version":[{"id":2020,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/posts\/1688\/revisions\/2020"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/media\/2017"}],"wp:attachment":[{"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/media?parent=1688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/categories?post=1688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clinicaltrialrisk.org\/wp-json\/wp\/v2\/tags?post=1688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}