Related Experiment Video
Updated: Jan 5, 2026

A High-Throughput Multiplexed Screening for Type 1 Diabetes, Celiac Diseases, and COVID-19
Published on: July 5, 2022
Predicting diabetes second-line therapy initiation in the Australian population via time span-guided neural attention
Samuele Fiorini1, Farshid Hajati2,3,4, Annalisa Barla5
1Iren S.p.A, Genoa, Italy.
Introduction:
The first line of treatment for people with Diabetes mellitus is metformin. However, over the course of the disease metformin may fail to achieve appropriate glycemic control, and a second-line therapy may become necessary. In this paper we introduce Tangle, a time span-guided neural attention model that can accurately and timely predict the upcoming need for a second-line diabetes therapy from administrative data in the Australian adult population. The method is suitable for designing automatic therapy review recommendations for patients and their providers without the need to collect clinical measures.
Data:
We analyzed seven years of de-identified records (2008-2014) of the 10% publicly available linked sample of Medicare Benefits Schedule (MBS) and Pharmaceutical Benefits Scheme (PBS) electronic databases of Australia.
Methods:
By design, Tangle inherits the representational power of pre-trained word embedding, such as GloVe, to encode sequences of claims with the related MBS codes. Moreover, the proposed attention mechanism natively exploits the information hidden in the time span between two successive claims (measured in number of days). We compared the proposed method against state-of-the-art sequence classification methods.
Results:
Tangle outperforms state-of-the-art recurrent neural networks, including attention-based models. In particular, when the proposed time span-guided attention strategy is coupled with pre-trained embedding methods, the model performance reaches an Area Under the ROC Curve of 90%, an improvement of almost 10 percentage points over an attentionless recurrent architecture.
Implementation:
Tangle is implemented in Python using Keras and it is hosted on GitHub at https://github.com/samuelefiorini/tangle.
More Related Videos
Related Concept Videos
Diabetes Mellitus: Type 2 and Gestational
Diabetes: Management and Pharmacotherapy
Insulin remains the cornerstone of treatment for most patients with type 1 and many...
Diabetes: Symptoms, Diagnosis, and Complications

