Skip to content
#explainable ai Open access

Explainable AI for Diabetes Nutrition: Time-Aware Seq2Seq Learning for Personalized 21-Meal Weekly Planning

Oct 2026 · International Journal of Information Technology and Computer Science · 0 citations · 26 references

TL;DR

The proposed CA-Seq2Seq-LSTM-Attn framework is a promising decision-support tool for personalised dietary control in T2DM as it generates interpretable, nutritionally balanced and clinically matched meal recommendations.

Abstract

Adequate nutrition, patient acceptance and consistent dietary adherence are required for optimal chronic glycaemic control in T2DM. Customised and clinically adapted meal planning may best support these factors. This work is situated in the field of Medical Informatics, combining explainable sequence modelling with clinically meaningful dietary restrictions, ensuring both prediction accuracy and health-oriented decision support for Type 2 Diabetes Mellitus (T2DM). In contrast to the traditional RNN based recommenders, the proposed approach explicitly incorporates adherence-aware assessment, interpretability and nutritional safety. In this paper, we propose CA-Seq2Seq-LSTM-Attn, a Constraint-Aware Seq2Seq-LSTM with Dot-Product Attention framework for generating customised seven-day meal plans (21 meals) from nutritional constraints and previous dietary behaviour. We use an LSTM-based Seq2Seq architecture in place of Transformer-based models because of its strong inductive bias for modelling short, structured temporal sequences (21 meals over 7 days), better generalisation on small high-variance dietary datasets, and lower computational complexity than data-hungry Transformer models. The model is a sequence-to-sequence Long Short-Term Memory (LSTM) architecture with attention for capturing temporal eating patterns in daily meal sequences. The constraint-aware decoding strategy ensures that the calorie, carbohydrate, sugar, protein limits, and the Glycaemic Index (GI) and Glycaemic Load (GL) thresholds are satisfied, which is crucial in the context of diabetes management. The attention mechanism makes the respective forecast more interpretable by pointing to important previous meals. We evaluate the system using enriched user-recipe interactions and comprehensive nutritional data from the Food.com dataset. The experimental results show a good ranking performance with NDCG@10 of 0.5026 and Recall@10 of 0.5909. The model also ensures a better diet consistency, as indicated by the lower variance in carbs (826.6690), weekday adherence (74.39%), intra-plan variety (0.7180), and high explainability (minimum perturbation-based faithfulness confidence reduction: −0.0288). Incorporating temporal sequence modelling, attention-based interpretability and constraint-aware decoding substantially improve clinical nutritional feasibility and recommendation accuracy. The proposed framework outperforms the traditional Collaborative Filtering (BPR-MF, NCF) and sequential deep learning baselines (GRU4Rec, SASRec) on all ranking and nutrition metrics. The proposed CA-Seq2Seq-LSTM-Attn framework is a promising decision-support tool for personalised dietary control in T2DM as it generates interpretable, nutritionally balanced and clinically matched meal recommendations.

Read PDF

Similar papers

#artificial intelligence Conference Open access Apr 2020

ECCOLA - a Method for Implementing Ethically Aligned AI Systems

The method, ECCOLA, is presented, which aims at making the high-level AI ethics principles more practical, making it possible for developers to more easily implement them in practice.

Ville Vakkuri, Kai-Kristian Kemell, P. Abrahamsson · 64 citations · ⚡6
#computer vision Review Apr 2024

AI-powered Code Review with LLMs: Early Results

The goal is to not only refine the accuracy of the LLM-based tool but also to underscore its potential in streamlining the software development lifecycle through proactive code improvement and education.

Z. Rasheed, Malik Abdul Sami, Muhammad Waseem et al. · 62 citations · ⚡3
#computer vision Open access Mar 2024

LLM-based agents for automating the enhancement of user story quality: An early report

The use of large language models to automatically improve the user story quality in Austrian Post Group IT agile teams is explored, with a reference model for an Autonomous LLM-based Agent System developed and implemented at the company.

Zheying Zhang, M. Rayhan, Tomas Herda et al. · 48 citations · ⚡4
#computer vision Review Mar 2024

System for systematic literature review using multiple AI agents: Concept and an empirical evaluation

This paper introduces a novel multi-AI-agent system designed to fully automate SLRs, and demonstrates how it substantially reduces the time and effort traditionally required for SLRs while maintaining comprehensiveness and precision.

Abdul Malik Sami, Z. Rasheed, Kai-Kristian Kemell et al. · 44 citations · ⚡2
#computer vision Feb 2024

Can Large Language Models Serve as Data Analysts? A Multi-Agent Assisted Approach for Qualitative Data Analysis

The proposed LLM-based multi-agent system automates qualitative data analysis process, creating opportunities for researchers and practitioners, and future improvements focus on enhancing multilingual performance and integrating continuous expert feedback.

Z. Rasheed, Muhammad Waseem, Aakash Ahmad et al. · 41 citations
#artificial intelligence Conference Open access Jun 2018

The Key Concepts of Ethics of Artificial Intelligence

It is suggested that the focus on finding keywords is the first step in guiding and providing direction for future research in the AI ethics field.

Ville Vakkuri, P. Abrahamsson · 39 citations · ⚡2

Related blog posts

Microsoft Research Blog Oct 7, 2026

Agent Lightning v1.0: A 3,500-Line Lightweight Agentic RL Framework for Training Agents with Real Harnesses

Training AI agents with reinforcement learning can be challenging because their tools, context, and decision-making are managed by complex frameworks. Agent Lightning connects existing agents to RL training, making it easier to improve them without rebuilding them. The post Agent Lightning v1.0: A 3,500-Line Lightweight Agentic RL Framework for Training Agents with Real Harnesses appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.