kth.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Real-Time Insulin Dosage Estimation for Type 1 Diabetes Using GPT-4-Turbo
KTH, School of Electrical Engineering and Computer Science (EECS).
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Realtidsberäkning av insulindosering för typ 1-Diabetes med GPT-4-Turbo (Swedish)
Abstract [en]

Artificial intelligence (AI) is poised to revolutionize healthcare by reducing errors and improving care quality. Large Multimodal Models (LMMs) represent a significant AI advancement, integrating visual and textual data for tasks like image captioning and complex visual reasoning. AI also holds promise in managing diet-related diseases such as Type 1 Diabetes (T1D), where precise insulin dosing and monitoring Carbohydrate (CHO) intake are crucial to prevent severe health complications like Hypoglycemia, Diabetic Ketoacidosis (DKA), and others.

This thesis introduces an innovative approach using the LMM, gpt-4-turbo, to estimate CHO content from diverse food images for insulin prediction. Unlike previous studies that broadly analyzed macronutrients or employed different AI approaches, this research specifically focuses on estimating carbohydrates (CHO) from individual food images. It leverages advancements in LMM technology to enhance glycemic control and mitigate medical risks associated with T1D.

Methodologically, the thesis employs a quantitative research approach, evaluating gpt-4-turbo's performance through techniques such as Bland-Altman plots, Mean Square Error (MSE), and Mean Absolute Error (MAE). The ’models accuracy improved through fine-tuning LMM, with MAE decreasing from 12.50 grams to 9.35 grams and MSE from 370.40 to 191.87, making the GPT-4 Turbo competitive with baselines and professional assessments. Bland-Altman analysis revealed a slight overestimation bias of 0.81 grams on average. Ideally, metrics should aim for a maximum MAE of 10 grams and MSE of 100, with no average over- or underestimations.

While competitive, the model's performance highlights ongoing technical and regulatory challenges in medical applications. Issues like LMM hallucination affect outcome accuracy, emphasizing the need for clear legal guidelines for safe deployment of AI systems in healthcare. Future research should focus on handling outliers such as chicken, fish, eggs, and meat to further improve insulin dosing accuracy and enhance personalized healthcare for individuals with T1D.

Abstract [sv]

Artificiell intelligens (AI) är på väg att revolutionera sjukvården genom att minska fel och förbättra vårdkvaliteten. Large Multimodal Models (LMMs) medför en betydande AI-utveckling genom att integrera visuell och textuell data för uppgifter som bildtextning och komplex visuell resonering. AI visar också potential i hanteringen av kostrelaterade sjukdomar som Typ 1-diabetes (T1D), där exakt insulin dosering och övervakning av kolhydratintag (CHO) är avgörande för att förhindra allvarliga hälsokomplikationer som hypoglykemi, diabetisk ketoacidos (DKA) och andra.

Denna avhandling introducerar ett innovativt tillvägagångssätt med hjälp av LMM, gpt-4-turbo, för att estimera CHO-innehåll från olika matbilder för insulinprediktion. Till skillnad från tidigare studier som bredare analyserat makronutrienter eller använt andra AI-metoder, fokuserar denna forskning specifikt på att estimera kolhydrater från enskilda matbilder. Den utnyttjar framsteg inom LMM-teknologi för att förbättra glykemisk kontroll och minska medicinska risker förknippade med T1D.

Metodologiskt använder avhandlingen en kvantitativ forskningsansats och utvärderar gpt-4-turbos prestanda genom tekniker som Bland-Altman-plottar, medelkvadratfel (MSE) och medelabsolutfel (MAE). Inledande resultat visade utmaningar med noggrannheten, med ett inledande MAE på 12,50 gram och MSE på 370,40, som förbättrades genom finjustering till ett MAE på 9,35 gram och MSE på 191,87. Bland-Altman-analys avslöjade en lätt överestimeringsbias på 0,81 gram i genomsnitt. Idealt sett bör mätvärden sträva efter en maximal MAE på 10 gram, MSE på 100, utan genomsnittliga över- eller underestimeringar.

Även om modellen är konkurrenskraftig belyser dess prestanda pågående tekniska och regleringsmässiga utmaningar inom medicinsk tillämpning. Problem som LMM-hallucination påverkar resultatens noggrannhet och understryker behovet av tydliga rättsliga riktlinjer för säker implementering av AI-system inom sjukvården. Framtida forskning bör fokusera på att hantera avvikare som kyckling, fisk, ägg och kött för att ytterligare förbättra noggrannheten vid insulin dosering och stärka den personanpassade vården för personer med T1D.

Place, publisher, year, edition, pages
Stockholm: KTH Royal Institute of Technology , 2024. , p. 101
Series
TRITA-EECS-EX ; 2024:695
Keywords [en]
LMM, AI, Insulin, Diabetes, Real-Time Estimation
Keywords [sv]
LMM, AI, Insulin, Diabetes, Realtids-uppskattning
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-356219OAI: oai:DiVA.org:kth-356219DiVA, id: diva2:1912368
Presentation
2024-06-27, via Zoom https://kth-se.zoom.us/j/7898131859, Malvinas väg 10, floor 7), 14:00 (English)
Supervisors
Examiners
Available from: 2025-01-21 Created: 2024-11-11 Last updated: 2025-01-21Bibliographically approved

Open Access in DiVA

fulltext(6195 kB)114 downloads
File information
File name FULLTEXT01.pdfFile size 6195 kBChecksum SHA-512
6bc0bfe12fbc54838084d7e16f305d542e5073722137c9f5f7a9912a9881a4ed5cbebe9078a8e1c626a9335a7dde1bd3527627061ccd16561e01e38d7bd00af7
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Eskengren, Amadéus
By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 114 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 548 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf