Journal of Green Engineering for Sustainability
Vol 4 No 1 (2026): Journal of Green Engineering for Sustainability

Design of Python-Based Expert System for Healthy Diet Recommendations Using Forward Chaining

Sevyna Wenata (Universal University)
Juliano Handal (Universal University)
Monika Monika (Universal University)
Kurniawan Hamidi (Universal University)
Harira Prada (Universal University)



Article Info

Publish Date
20 Oct 2026

Abstract

A healthy diet is an important factor in maintaining overall health. However, many people still have difficulties determining their weight status, daily calorie requirements, and appropriate dietary patterns based on their individual conditions. In addition, the variety of diet information available on the internet may make it difficult for users to select appropriate recommendations. This study aims to design an expert system that calculates Body Mass Indes (BMI), determines calorie requirements, and provides dietary recommendations and health advice based on user conditions. The inference method used is Forward Chaining, supported by a knowledge base consisting of user facts and IF-THEN rules based on nutritional expertise. Specifically, the IF-THEN rules map user inputs (such as age, height, weight, target weight, and meal frequency) to evaluate BMI classification thresholds (e.g., if 25 ≤ BMI ≤ 30, the system triggers an Overweight status and assigns an 1800 kcal target) along with supplementary goal-adjustment rules. The validation of these rules and the system's mathematical accuracy were verified through clinical test scenarios. The results show that the system can automatically calculate BMI, determine BMI status, provide calorie requirement information, and generate meal recommendations and health advice based on predefined rules. However, the system's scope is strictly limited to general BMI-based nutritional estimation and does not account for biological sex, physical activity levels, or pre-existing medical conditions; therefore, its automated outputs serve solely as a practical supporting tool and do not replace professional medical or nutritional consultation.

Copyrights © 2026






Journal Info

Abbrev

greeners

Publisher

Subject

Control & Systems Engineering Energy Engineering Environmental Science Industrial & Manufacturing Engineering

Description

The Journal of Green Engineering for Sustainability or Greeners is published twice a year (April and September). Greeners is a scientific media publication that contains engineering research results, especially green engineering. The results of these studies can be in the form of products, designs, ...