Exploring the Potential of Deep Learning Models Integrating Transformer and LSTM in Predicting Blood Glucose Levels for T1D Patients

preprint OA: closed
Full text JSON View at publisher

Abstract

Abstract Type 1 diabetes (T1D) is an increasingly common chronic disease, and its incidence continues to rise globally, posing huge challenges to the public health system. At the same time, due to the need for long-term strict diet control and blood sugar monitoring, the management process of diabetes is relatively complicated, which brings a lot of inconvenience to patients' daily life. Predicting blood glucose concentration (BGC) in T1D patients can help avoid abnormal blood glucose events and improve blood glucose management in T1D patients. However, accurate blood glucose prediction remains challenging because blood glucose levels are affected by multiple factors such as insulin injections, diet, and exercise. In this study a combined deep learning (DL) model of Transformer and long short-term memory network (LSTM) for blood glucose prediction in T1D patients is proposed, which fully integrates the advantages of Transformer and LSTM. For the proposed method Transformer captures sequence relationships globally, while LSTM focuses on local and long-term dependencies, thereby improving the overall performance of the model. In this study the clinical data set of 13 T1D patients for more than 4 weeks are provided by the First Renmin Hospital of Yunnan Province, and the 360-day blood glucose data set of 10 adult T1D patients generated by the UVa/Padova simulator. The prediction performance and clinical evaluation were performed using root mean square error (RMSE), mean absolute error (MAE), and Clark error grid analysis (EGA), respectively. The performance of the model on clinical data sets is 30-min prediction horizon (PH) (RMSE=10.157, MAE=6.377), 60-min PH (RMSE=10.645, MAE=6.417), 90-min PH (RMSE=13.537, MAE=7.283), 120-min PH (RMSE= 13.986, MAE= 6.986). The performance of the model on the simulated data set is 15-min PH (RMSE=1.793, MAE=1.376), 30-min PH (RMSE=2.049, MAE=1.311), 60-min PH (RMSE=3.477, MAE=1.668). The units of RMSE and MAE are mg/dl. In addition, Clark Grid Analysis (EGA) analysis showed that more than 96% of BGC predictions remained within the clinical safety zone during the PH period of up to 120 minutes in the clinical data set, validating its clinical feasibility.
Full text 13,827 characters · extracted from preprint-html · click to expand
Exploring the Potential of Deep Learning Models Integrating Transformer and LSTM in Predicting Blood Glucose Levels for T1D Patients | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Article Exploring the Potential of Deep Learning Models Integrating Transformer and LSTM in Predicting Blood Glucose Levels for T1D Patients JianFeng He, Heng Su, Xin Xiong, XinLiang Yang, Yunying Cai, Yuxin Xue This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-4440333/v1 This work is licensed under a CC BY 4.0 License Status: Published Journal Publication published 02 Apr, 2025 Read the published version in DIGITAL HEALTH → Version 1 posted You are reading this latest preprint version Abstract Type 1 diabetes (T1D) is an increasingly common chronic disease, and its incidence continues to rise globally, posing huge challenges to the public health system. At the same time, due to the need for long-term strict diet control and blood sugar monitoring, the management process of diabetes is relatively complicated, which brings a lot of inconvenience to patients' daily life. Predicting blood glucose concentration (BGC) in T1D patients can help avoid abnormal blood glucose events and improve blood glucose management in T1D patients. However, accurate blood glucose prediction remains challenging because blood glucose levels are affected by multiple factors such as insulin injections, diet, and exercise. In this study a combined deep learning (DL) model of Transformer and long short-term memory network (LSTM) for blood glucose prediction in T1D patients is proposed, which fully integrates the advantages of Transformer and LSTM. For the proposed method Transformer captures sequence relationships globally, while LSTM focuses on local and long-term dependencies, thereby improving the overall performance of the model. In this study the clinical data set of 13 T1D patients for more than 4 weeks are provided by the First Renmin Hospital of Yunnan Province, and the 360-day blood glucose data set of 10 adult T1D patients generated by the UVa/Padova simulator. The prediction performance and clinical evaluation were performed using root mean square error (RMSE), mean absolute error (MAE), and Clark error grid analysis (EGA), respectively. The performance of the model on clinical data sets is 30-min prediction horizon (PH) (RMSE=10.157, MAE=6.377), 60-min PH (RMSE=10.645, MAE=6.417), 90-min PH (RMSE=13.537, MAE=7.283), 120-min PH (RMSE= 13.986, MAE= 6.986). The performance of the model on the simulated data set is 15-min PH (RMSE=1.793, MAE=1.376), 30-min PH (RMSE=2.049, MAE=1.311), 60-min PH (RMSE=3.477, MAE=1.668). The units of RMSE and MAE are mg/dl. In addition, Clark Grid Analysis (EGA) analysis showed that more than 96% of BGC predictions remained within the clinical safety zone during the PH period of up to 120 minutes in the clinical data set, validating its clinical feasibility. Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Published Journal Publication published 02 Apr, 2025 Read the published version in DIGITAL HEALTH → Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-4440333","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":310799113,"identity":"19895bf4-f9bc-4a4b-af64-4d06a912c8a5","order_by":0,"name":"JianFeng He","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA40lEQVRIiWNgGAWjYBACxuYDQKKBQU4CwmcmQktbAliLsQSYIkYLAxtES+IMorUwtzEfe/h1h036zBnpzx8wVFgnNrCfPUDAYWzpxrJn0nJnS+QYNjCcSU9s4MlLwK9lfo+ZtGTb4dx5EjmMDYxthxMbJHgMCNjC/w2o5X+6nET6wwbGf0Rp4WGT/Nh2IEFaIsGwgbGBKC1sZtKMbcmGM3veGM5IOJZu3MaTg1+LYRvzM8mfbXbyEsfTH3z4UGMt289+hoCWBmBA88B4CUDMhlc9EMiDHPeDkKpRMApGwSgY2QAAJ0tEWhdU4EgAAAAASUVORK5CYII=","orcid":"","institution":"Kunming University of Science and Technology","correspondingAuthor":true,"prefix":"","firstName":"JianFeng","middleName":"","lastName":"He","suffix":""},{"id":310799114,"identity":"159365eb-2fbe-49b2-ac3a-871c1d81d498","order_by":1,"name":"Heng Su","email":"","orcid":"","institution":"First People's Hospital of Yunnan Province","correspondingAuthor":false,"prefix":"","firstName":"Heng","middleName":"","lastName":"Su","suffix":""},{"id":310799115,"identity":"621018aa-3e0a-47f7-b459-2be9c61c0e8d","order_by":2,"name":"Xin Xiong","email":"","orcid":"","institution":"Kunming University of Science and Technology","correspondingAuthor":false,"prefix":"","firstName":"Xin","middleName":"","lastName":"Xiong","suffix":""},{"id":310799116,"identity":"328bf8dc-c477-40c6-9131-55ce44f3f8ce","order_by":3,"name":"XinLiang Yang","email":"","orcid":"","institution":"Kunming University of Science and Technology","correspondingAuthor":false,"prefix":"","firstName":"XinLiang","middleName":"","lastName":"Yang","suffix":""},{"id":310799117,"identity":"eda401c2-5ad5-4c15-993c-578b521a475b","order_by":4,"name":"Yunying Cai","email":"","orcid":"","institution":"Kunming University of Science and Technology","correspondingAuthor":false,"prefix":"","firstName":"Yunying","middleName":"","lastName":"Cai","suffix":""},{"id":310799118,"identity":"fd5d3891-d370-429d-a1cc-01a7de10df03","order_by":5,"name":"Yuxin Xue","email":"","orcid":"","institution":"Kunming University of Science and Technology","correspondingAuthor":false,"prefix":"","firstName":"Yuxin","middleName":"","lastName":"Xue","suffix":""}],"badges":[],"createdAt":"2024-05-18 09:11:03","currentVersionCode":1,"declarations":{"humanSubjects":false,"vertebrateSubjects":false,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":false,"humanSubjectConsent":false,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":false},"doi":"10.21203/rs.3.rs-4440333/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-4440333/v1","draftVersion":[],"editorialEvents":[{"content":"https://doi.org/10.1177/20552076251328980","type":"published","date":"2025-04-03T00:00:00+00:00"}],"editorialNote":"","failedWorkflow":false,"files":[{"id":80323925,"identity":"23cc7dae-ff87-4685-9632-25084e0b31be","added_by":"auto","created_at":"2025-04-10 14:03:15","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1374012,"visible":true,"origin":"","legend":"","description":"","filename":"rswxyfgyrwfrprdvrzsfkzrwcxntzxxb.pdf","url":"https://assets-eu.researchsquare.com/files/rs-4440333/v1_covered_89fbdfd5-18d4-4b7e-b5c0-08cedfe5615c.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Exploring the Potential of Deep Learning Models Integrating Transformer and LSTM in Predicting Blood Glucose Levels for T1D Patients","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":true,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"","lastPublishedDoi":"10.21203/rs.3.rs-4440333/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-4440333/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"Type 1 diabetes (T1D) is an increasingly common chronic disease, and its incidence continues to rise globally, posing huge challenges to the public health system. At the same time, due to the need for long-term strict diet control and blood sugar monitoring, the management process of diabetes is relatively complicated, which brings a lot of inconvenience to patients' daily life. Predicting blood glucose concentration (BGC) in T1D patients can help avoid abnormal blood glucose events and improve blood glucose management in T1D patients. However, accurate blood glucose prediction remains challenging because blood glucose levels are affected by multiple factors such as insulin injections, diet, and exercise. In this study a combined deep learning (DL) model of Transformer and long short-term memory network (LSTM) for blood glucose prediction in T1D patients is proposed, which fully integrates the advantages of Transformer and LSTM. For the proposed method Transformer captures sequence relationships globally, while LSTM focuses on local and long-term dependencies, thereby improving the overall performance of the model. In this study the clinical data set of 13 T1D patients for more than 4 weeks are provided by the First Renmin Hospital of Yunnan Province, and the 360-day blood glucose data set of 10 adult T1D patients generated by the UVa/Padova simulator. The prediction performance and clinical evaluation were performed using root mean square error (RMSE), mean absolute error (MAE), and Clark error grid analysis (EGA), respectively. The performance of the model on clinical data sets is 30-min prediction horizon (PH) (RMSE=10.157, MAE=6.377), 60-min PH (RMSE=10.645, MAE=6.417), 90-min PH (RMSE=13.537, MAE=7.283), 120-min PH (RMSE= 13.986, MAE= 6.986). The performance of the model on the simulated data set is 15-min PH (RMSE=1.793, MAE=1.376), 30-min PH (RMSE=2.049, MAE=1.311), 60-min PH (RMSE=3.477, MAE=1.668). The units of RMSE and MAE are mg/dl. In addition, Clark Grid Analysis (EGA) analysis showed that more than 96% of BGC predictions remained within the clinical safety zone during the PH period of up to 120 minutes in the clinical data set, validating its clinical feasibility.","manuscriptTitle":"Exploring the Potential of Deep Learning Models Integrating Transformer and LSTM in Predicting Blood Glucose Levels for T1D Patients","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2024-06-07 17:22:55","doi":"10.21203/rs.3.rs-4440333/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"cf06b6a9-abde-4c6e-8040-3e50a9c04575","owner":[],"postedDate":"June 7th, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"published-in-journal","subjectAreas":[],"tags":[],"updatedAt":"2025-04-10T14:03:09+00:00","versionOfRecord":{"articleIdentity":"rs-4440333","link":"https://doi.org/10.1177/20552076251328980","journal":{"identity":"digital-health","isVorOnly":true,"title":"DIGITAL HEALTH"},"publishedOn":"2025-04-03 00:00:00","publishedOnDateReadable":"April 3rd, 2025"},"versionCreatedAt":"2024-06-07 17:22:55","video":"","vorDoi":"10.1177/20552076251328980","vorDoiUrl":"https://doi.org/10.1177/20552076251328980","workflowStages":[]},"version":"v1","identity":"rs-4440333","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-4440333","identity":"rs-4440333","version":["v1"]},"buildId":"qtupq5eGEP_6zYnWcrvyt","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2024) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00