| Literature DB >> 35853992 |
Hediye Mousavi1, Majid Karandish2, Amir Jamshidnezhad1, Ali Mohammad Hadianfard3.
Abstract
Adhering to a healthy diet plays an essential role in preventing many nutrition-related diseases, such as obesity, diabetes, high blood pressure, and other cardiovascular diseases. This study aimed to predict adherence to the prescribed diets using a hybrid model of artificial neural networks (ANNs) and the genetic algorithm (GA). In this study, 26 factors affecting diet adherence were modeled using ANN and GA(ANGA). A dataset of 1528 patients, including 1116 females and 412 males, referred to a private clinic was applied. SPSS Ver.25 and MATLAB toolbox 2017 were employed to make the model and analyze the data. The results showed that the accuracy of the proposed ANN and ANGA models for predicting diet adherence was 93.22% and 93.51%, respectively. Also, the Pearson coefficient showed a significant relationship among the factors. The developed model showed the proper performance for predicting adherence to the diet. Moreover, the most effective factors were selected using GA. Some important factors that affect diet adherence include the duration of the marriage, the reason for referring to the clinic, weight, body mass index (BMI), weight satisfaction, lunch and dinner times, and sleep time. Therefore, applying the proposed model can help dietitians identify people who need more support to adhere to the diet.Entities:
Mesh:
Year: 2022 PMID: 35853992 PMCID: PMC9296581 DOI: 10.1038/s41598-022-16680-8
Source DB: PubMed Journal: Sci Rep ISSN: 2045-2322 Impact factor: 4.996
Figure 1Structure of the neural network for predicting diet adherence in the patients referring to the nutrition clinic.
Figure 2Implementation of GA for feature selection and developing proper factors for adherence to the diet.
Basic characteristics of the prediction of continuity in referral to nutrition for diet follow-up Data presented by (number (%)).
| Variables | Adherence to diet | Do not adherence to diet | Total | |
|---|---|---|---|---|
| Sex (N = 1528) | Male | 217 (27.0) | 195(26.9) | 412(27.0) |
| Female | 586 (73.0) | 530(73.1) | 1116(73.0) | |
| Age (N = 1528) | 5–20 | 86(10.7) | 102(14.1) | 188(12.3) |
| 20–35 | 387(48.2) | 351(48.4) | 738(43.8) | |
| 35–50 | 232(28.9) | 212(29.2) | 444(29.1) | |
| 50–65 | 90(11.2) | 53(7.3) | 143(9.4) | |
| 65–80 | 8(1.0) | 7(1.0) | 15(1.0) | |
| Level of education (N = 1528) | Literacy | 1(0.1) | 1(0.1) | 2(1.0) |
| Elementary | 22(2.7) | 27(3.7) | 49(3.2) | |
| High school | 109(13.6) | 99(13.7) | 208(13.6) | |
| Diploma | 223(27.8) | 160(22.1) | 383(25.1) | |
| Associate degree | 52(6.5) | 43(5.9) | 95(6.2) | |
| Bachelor's degree and higher | 396(49.3) | 395(54.5) | 791(51.8) | |
| Job (N = 1528) | Government jobs | 144(17.9) | 134(18.5) | 278(18.2) |
| Private jobs | 104(13.0) | 101(13.9) | 205(13.4) | |
| Educational jobs | 50(6.2) | 59(8.1) | 109(7.1) | |
| Therapeutic occupations | 18(2.2) | 22(3.0) | 40(2.6) | |
| Unemployed | 487(60.6) | 409(56.4) | 896(58.6) | |
| Marital status(N = 1528) | Married | 502(62.5) | 438(60.4) | 940(61.5) |
| Single | 301(37.5) | 287(39.6) | 588(38.5) | |
| Duration of marriage (year) | 0 | 301(37.5) | 287(36.6) | 588(38.5) |
| 1–15 | 275(34.2) | 292(40.3) | 567(37.1) | |
| 15–30 | 155(19.3) | 92(12.7) | 247(16.2) | |
| 30–45 | 65(8.1) | 47(6.5) | 112(7.3) | |
| 45–60 | 7(0.9) | 7(1.0) | 14(0.9) | |
| Reason for referral (N = 1528) | Diet modification | 9(1.1) | 10(1.4) | 19(1.2) |
| Gaining weight | 30(3.7) | 98(13.5) | 128(8.4) | |
| Fitness | 1(0.1) | 16(2.2) | 17(1.1) | |
| Weight Loss | 756(94.1) | 487(67.2) | 1243(81.3) | |
| High weight | 7(0.9) | 114(14.7) | 121(7.9) | |
| From the patients' point of view | Overweight | 426(53.1) | 382(52.7) | 808(52.9) |
| Obese | 332(43.1) | 221(30.5) | 553(36.2) | |
| Very thin | 11(1.4) | 33(4.6) | 44(2.9) | |
| Thin | 20(2.5) | 64(8.8) | 84(5.5) | |
| Fit | 14(1.7) | 25(3.4) | 39(2.6) | |
| Weight (kg) | 23–65 | 45(5.6) | 124(17.1) | 169(11.1) |
| 63–103 | 571(71.1) | 484(66.8) | 1055(69.0) | |
| 103–143 | 172(21.4) | 110(15.2) | 282(18.2) | |
| ≥ 143 | 15(1.9) | 7(1.0) | 22(1.4) | |
| Height (centimeter) | 124–144 | 4(0.5) | 8(1.1) | 12(0.8) |
| 144–164 | 406(50.6) | 375(51.7) | 781(51.1) | |
| 164–183 | 371(46.2) | 329(45.4) | 700(45.8) | |
| ≥ 183 | 22(2.7) | 13(1.8) | 35(2.3) | |
| Underweight | 19(2.4) | 48(6.6) | 67(4.4) | |
| Normal weight | 34(4.2) | 81(11.2) | 115(7.5) | |
| Overweight | 160(19.9) | 184(25.4) | 344(22.5) | |
| Obese | 590(73.5) | 412(56.8) | 1002(65.6) | |
| Smoking (N = 1528) | Yes | 16(2.0) | 24(3.3) | 40(2.6) |
| No | 787(98.0) | 701(96.7) | 1488(97.4) | |
| Previous treatment regimen | Yes | 414(51.6) | 379(52.3) | 793(51.9) |
| No | 389(48.4) | 346(47.7) | 735(48.1) | |
| Weight satisfaction | Yes | 13(1.6) | 28(3.9) | 41(2.7) |
| No | 790(98.4) | 697(96.1) | 1487(97.3) | |
| Childhood obesity | Yes | 196(24.4) | 169(23.3) | 365(23.9) |
| No | 607(75.6) | 556(76.7) | 1163(76.1) | |
| Exercise | Yes | 100(12.5) | 117(16.1) | 217(14.2) |
| No | 703(87.5) | 608(83.9) | 1311(85.8) | |
| Having breakfast | Some days | 279(34.7) | 286(39.4) | 565(37.0) |
| Most days | 143(17.8) | 141(19.4) | 284(18.6) | |
| Everyday | 381(47.4) | 297(41.0) | 678(44.4) | |
| Never | 0(0) | 1(0.1) | 1(0.1) | |
| Most consumed meal | Breakfast | 50(6.2) | 49(6.8) | 99(6.5) |
| Lunch | 571(71.1) | 464(64.0) | 1035(67.7) | |
| Dinner | 114(14.2) | 140(19.3) | 254(16.6) | |
| Breakfast and Lunch | 10(1.2) | 11(1.5) | 21(1.4) | |
| Breakfast and Dinner | 2(0.2) | 2(0.3) | 4(0.3) | |
| Lunch and Dinner | 41(5.1) | 46(6.3) | 87(5.7) | |
| All three meals | 15(1.9) | 12(1.7) | 27(1.8) | |
| None | 0(0) | 1(0.1) | 1(0.1) | |
| Morning wake-up time | 3–8 | 365(45.5) | 287(39.6) | 652(42.7) |
| 8–13 | 425(52.9) | 413(57.0) | 838(54.8) | |
| 13–18 | 13(1.6) | 25(3.4) | 38(2.5) | |
| Breakfast time | 0 | 86(10.7) | 90(12.4) | 176(11.5) |
| 5.30–10 | 476(59.3) | 370(51.0) | 846(55.4) | |
| 10–14.30 | 241(30.0) | 265(36.6) | 506(33.1) | |
| Lunchtime | 0 | 5(0.6) | 2(0.3) | 7(0.5) |
| 11–15 | 623(77.6) | 518(71.4) | 1141(74.1) | |
| 15–19 | 175(21.8) | 205(28.3) | 380(24.9) | |
| Dinner time | 0 | 62(7.7) | 17(2.3) | 79(5.2) |
| 16–22 | 448(55.8) | 359(49.5) | 807(52.8) | |
| 22–3 | 293(36.5) | 349(48.1) | 642(42.0) | |
| Eating speed | Slow | 70(8.7) | 78(10.8) | 148(9.7) |
| Medium | 439(54.7) | 418(57.7) | 857(56.1) | |
| Fast | 294(36.6) | 229(31.6) | 523(34.2) | |
| sleeping time | 21–1 | 337(42.0) | 269(37.1) | 606(39.7) |
| 1–5 | 459(57.2) | 446(61.5) | 905(59.2) | |
| ≥ 5 | 7(0.9) | 10(1.4) | 17(1.1) | |
| Read invitations to a party or restaurant | Unknown | 5(0.6) | 1(0.1) | 6(0.4) |
| Never | 115(14.3) | 86(11.9) | 201(13.2) | |
| Rarely | 22(2.7) | 21(2.9) | 43(2.8) | |
| Few | 498(62.0) | 435(60.0) | 933(61.1) | |
| Much | 146(18.2) | 163(22.5) | 309(20.2) | |
| Very much | 17(2.1) | 19(2.6) | 36(2.4) | |
| History of diabetes in relatives | Yes | 478(59.5) | 441(68.8) | 919(60.1) |
| No | 325(40.5) | 284(39.2) | 609(39.9) | |
Association of independent variables and dependent variables using Pearson / Spearman coefficient.
| Variables | Adherence to diet or not | |
|---|---|---|
| Pearson / Spearman correlation | Sig(2-tailed) | |
| Sex (N = 1528) | 0.001 | 0.955 |
| Age (N = 1528) | 0.064* | 0.013 |
| Level of education (N = 1528) | − 0.036 | 0.156 |
| Job (N = 1528) | 0.029 | 0.251 |
| marital status(N = 510) | 0.022 | 0.399 |
| Duration of marriage (year) | 0.061* | 0.018 |
| Reason for referral (N = 504) | 0.052* | 0.040 |
Group (N = 503) From the patients’ point of view | − 0.125** | < 0.001 |
| Weight (kg) | 0.167** | < 0.001 |
| Height (centimeter) | 0.030 | 0.246 |
| BMI (N = 504) | 0.197** | < 0.001 |
| Smoking (N = 504) | 0.041 | 0.107 |
| Previous treatment regimen | 0.007 | 0.779 |
| Weight satisfaction | 0.069** | 0.007 |
| Childhood obesity | − 0.013 | 0.615 |
| Exercise | 0.053* | 0.039 |
| Having breakfast | 0.061* | 0.018 |
| Most consumed meal | − 0.041 | 0.111 |
| Morning wake up time | 0.071** | 0.005 |
| Breakfast time | − 0.038 | 0.136 |
| Lunchtime | − 0.077** | 0.002 |
| Dinner time | − 0.147** | < 0.001 |
| Eating speed | 0.057* | 0.025 |
| Sleeping time | − 0.053* | 0.039 |
| Read invitations to a party or restaurant | − 0.061* | 0.017 |
| History of diabetes in relatives | 0.013 | 0.604 |
*Correlation is significant at the 0.05 level (2-tailed).
**Correlation is significant at the 0.01 level (2-tailed).
The results obtained from implementing the neural network before and after feature selection using GA.
| Model | Sensitivity (%) | Specificity (%) | Accuracy (%) | |
|---|---|---|---|---|
Before Applying GA | ANN (train) | 99.39 | 99.57 | 99.47 |
| ANN (test) | 61.80 | 53.44 | 57.90 | |
| ANN (Total) | 93.82 | 92.60 | 93.22 | |
After Applying GA | ANN (train) | 98.63 | 99.21 | 98.92 |
| ANN (test) | 61.39 | 56.09 | 59 | |
| ANN (Total) | 93.09 | 92.71 | 93.51 |
Figure 3An example of confusion matrices after network implementation in traing (a) test (b) and all confusion (c).
Figure 4An example of confusion matrices after GA implementation in integration with ANN for selecting the effective factors. Training confusion (a). Test confusion (b) and all confusion (c).
Figure 5Accuracy of GA in selecting proper factors after 50 iterations.
Figure 6Result of implementing GA for selecting 15 effective factors in diet adherence.
The result of performing feature selection using a genetic algorithm.
| Age | 1 |
| Job | 4 |
| Marital status | 5 |
| Duration of marriage | 6 |
| Reason for referral | 7 |
| Weight | 9 |
| Previous treatment regimen | 13 |
| Having breakfast | 17 |
| Morning wake-up time | 19 |
| Breakfast time | 20 |
| Lunchtime | 21 |
| Dinner time | 22 |
| Sleeping time | 23 |
| Read invitations to a party or restaurant | 25 |
| History of diabetes in relatives | 26 |