Metabolic Health Analysis and Forecasting with Mobile Computing

The goal of this paper is to demonstrate feasibility of a concept of mobile computing to help users to reach and maintain metabolic health. For this purpose, we analyze data from 12 clinical studies with a total of 39 study arms from the international literature to show that insulin resistance measured by HOMA-IR could be followed and its changes could be predicted using our weight-fat mass-energy balance calculations taking advantage of the significant and strong correlation between changes of HOMA-IR and state variables of the energy metabolism like changes of weight, fat mass, R-ratio, Rw-ratio, and fat burning fraction of the energy production. We introduce here our extended weight-fat mass-energy balance calculation to assess de novo lipogenesis, adaptive thermogenesis, and the 24-hour nonprotein respiratory quotient. We show how we can analyze and predict individualized state variables of the metabolism, which serve as metrics for the quantification of the interrelationship between energy metabolism and insulin resistance facilitating management and self-management of insulin-resistance related conditions including obesity, fatty liver, prediabetes, metabolic syndrome, and type 2 diabetes. The feedback of individualized metrics using tools of the digital health era may amount to channeling focus also to patient-centered individualized care and to accelerating nutrition research.


Introduction
The purpose of this paper is to outline a new proposed direction of managing and self-managing metabolic health including insulin resistance in the era of mobile technology.
I am perhaps a rare breed of internist with previous training in biomedical cybernetics before entering medical school. My training and research experience in control engineering together with my experiences as a clinician in academic and nonacademic settings have inspired me to use mathematical modeling tools to tackle the most sweeping health problem of our time which has reached now pandemic proportion all over the world, i.e., insulin resistance with its devastation in terms of rising cardiovascular disease (CVD), morbidity, and mortality. The reason for focusing on insulin resistance is the overwhelming evidence that insulin resistance syndrome has been proven to be an independent risk factor for CVD mortality, and effective, clinically usable indicators can be derived from readily measured variables [1].
Central to the mission of primary care is fighting the burden of noncommunicable chronic diseases including the most prominent one, CVD [2]. CVD is substantially higher in individuals with unhealthy lifestyle characteristics, including visceral obesity, prediabetes, diabetes, insulin resistance, metabolic syndrome, physical inactivity, poor diet, and cigarette smoking. One could ask the question, why is insulin resistance such an important issue and how could we address this problem more effectively? I see a four-pronged answer to this question: 1. There is a need for heightened awareness of the pathophysiological processes at play in CVD which is accelerated inflammation leading to atherosclerosis driven by insulin resistance. The higher level than normal of inflammatory markers and cytokines are triggered by complex cell physiology changes taking place initially in the visceral adipose tissue and likely related to the regulation of the deposition of the newly synthetized fat. A recently published research article [3] found new insight into the pathophysiological steps of how insulin resistance with or without obesity begets proinflammatory changes [4,5] occurring, among others, at the arterial walls.
2. Measuring insulin resistance in clinical practice is a huge challenge. The gold standard is the "hyperinsulinemic euglycemic clamp," which measures the amount of glucose necessary to compensate for an increased insulin level without causing hypoglycemia. Nowadays the test is rarely performed in clinical care. The frequently used clinical assessment is with the homeostatic model assessment of insulin resistance (HOMA-IR) which closely mirrors the glucose clamp technique [6]. This requires only point-of-care invasive measurement of fasting insulin and glucose level. There is a need for a continuous noninvasive measurement method which can provide the same information as HOMA-IR. 3. A lifelong heightened awareness is needed in our accelerated world which pulls us back to optimum decision-making by mindfulness regarding eating and exercising. We have biased perceptions regarding how much we eat [7], and we possess no bodily sensation regarding the size of the visceral fat (a prime source of insulin resistance) and its daily changes. The privacy of a personalized gage such as a smart watch or phone app is needed to gage changes of our metabolic health and fitness level [8]. 4. For tracking insulin resistance noninvasively, there is a need to know the total fat balance [9][10][11] which includes also the daily de novo lipogenesis (DNL). Currently the standard way to measure DNL is the 24-h metabolic chamber [12,13]. Mobile computing technology just may offer a key solution to this issue.
The tools needed to realize the new proposed approach are embedded into the science of cybernetics. Cybernetics is mostly concerned with exploring regulatory systems-their structures, constraints, and possibilities using mathematical modeling. Cyber-therapy is defined here as the combined use of individualized mathematical-statistical modeling, prediction, planning for change, and gaining control and self-management of the metabolism with the option for guided therapy by feedback of information on components of the human energy metabolism of an individual. Our mathematical modeling techniques of the human energy metabolism [8][9][10][11] is a tool to observe the difficult-to-measure variables of the human energy metabolism, such as slowly occurring body composition changes including lean mass, protein mass, fat mass, extracellular and intracellular water mass, or practically impossible-to-measure variables like utilized macronutrient intake, oxidation rates, and the de novo lipogenesis. The overall goal of individualized cyber-therapy is to gain better control of the metabolism, i.e., reach and maintain optimum body composition and cardiometabolic fitness with minimized effort over the shortest possible time while staying well hydrated and maintaining optimal insulin sensitivity through self-management with mindfulness and/or guided therapy.
My recent paper to the same publisher [8] introduces a proposed cyber-physical system (CPS) as a framework to manage and self-manage metabolic health including insulin resistance. The essential elements of CPS comprise smart watch with appropriate sensors, smart phone, and bathroom scale with fat weight measuring capabilities. The various devices with their apps are connected through cloud computing. The main software component is a metabolic health monitoring app (MHM) performing data gathering and result display of metabolic trends [11]. MHM can make predictions regarding changes of the metabolic state variables (SVs) such as fat mass, lean body mass, insulin resistance changes by the Rw-ratio, 24-h nonprotein respiratory quotient, as well as the utilized macronutrient intake and oxidation rates. We developed mathematical models of the human energy metabolism allowing for estimation of the SVs [9][10][11] requiring serial fat weight and lean body mass measurements [9,10]. We introduced our weight-fat weight-energy balance (WFE) calculations requiring only serial weight and fat weight measurements for basic calculations to estimate changes of insulin resistance [8]. In the same paper, we provided also evidence for feasibility of the CPS concept in healthy young men to track and predict insulin resistance.
Central to the goal of providing metrics for the quantification of insulin resistance is the recognition of its interrelationship with other easily and daily measurable state variables like weight and fat mass. In this regard we take advantage of the observation that there is a correlation between BMI/weight/body composition and insulin resistance measured, for example, with HOMA-IR [14,15,27]. We reported earlier that we found significant negative correlation between HOMA-IR and Rratio or Rw-ratio [8,10,11,15]. It has been also our research hypothesis that one could exploit the strong inverse correlation between HOMA-IR and the R-ratio or Rw-ratio and use this to measure indirectly changes of insulin resistance derived from serial weight and fat weight measurements [8].
The goal of this paper is to contribute to the developing field of mobile technologies and their use for health-related applications in three areas: 1. More evidence is provided for the connection between HOMA-IR and WFE calculations for clinical practice: here we show feasibility of our research hypothesis that insulin resistance changes by HOMA-IR can be predicted by using the WFE calculation framework in a wide variety of clinical scenarios involving insulin resistance changes and not just in young healthy men as it was already demonstrated in [8]. For this purpose, we use data from [16][17][18][19][20][21][22][23][24][25][26][27] to show further support for the idea that insulin resistance measured by HOMA-IR could be followed and its change could be predicted by WFE calculation.
2. We give here our theoretical considerations on how DNL and adaptive thermogenesis (AT) could be assessed with mobile technology during acute phase and at predicted steady-state equilibrium of the energy metabolism. AT becomes important when the energy metabolism goes from one steady state to another and the AT energy production or disappearance will oppose the direction of change [28]. We would like to introduce here our extended weight-fat weight-energy balance calculation allowing for DNL and AT calculations (WFE-DNL-AT) and pointing out its limitations.
3. I give here supportive results to the proposition of using WFE-DNL-AT calculations and show how insulin resistance changes with WFE-DNL-AT calculations compared with results of indirect calorimetry obtained by 24-h measurement in a metabolic chamber. For all of these purposes, I reanalyze the published trial data of the "Calorie for Calorie, Dietary Fat Restriction Results in More Body Fat Loss than Carbohydrate Restriction in People with Obesity" (CC trial) [29] using WFE-DNL-AT calculations.
All mathematical tools of WFE-DNL-AT calculation are summarized in Appendix.

Method of the correlation analysis between HOMA-IR and chosen state variables
This meta-analysis utilizes our dynamic energy balance equation (Eq. (1)) as it was introduced to the reader in [8]. This establishes a weight, fat weight, and energy balance calculation (WFE) based on the following mass and energy relationship: Essentially, the equation expresses the equivalent change of weight represented here as ΔW k ¼ Rw k Á ΔF k and fat weight ΔF k in response to the energy balance EB k , i.e., the difference of metabolized energy intake MEI k and total energy expenditure TEE k on a given day k. We listed in the glossary the meaning of each variable. Eqs.
(2)-(18) constitute the framework derived from Eq. (1) for the correlation analysis between the percentage change of HOMA-IR ΔH% and changes of state variables Rw-ratio ΔRw, weight ΔW, and fat burning fraction Δχ over the course of a clinical trial. We used 39 study arms from 12 clinical trials with a variety of length of the studies performed ranging from 3 days to 365 days [16][17][18][19][20][21][22][23][24][25][26][27]. The correlation analysis was done in MATLAB. The outcome results of the trials are shown in Table 1. Here n is the number of days in the clinical trial, subjects means the number of participants, ΔW nÀ0 designates the average weight change in kilograms during the trial period, ΔF nÀ0 symbolizes the average fat weight change during the trial period in kilograms, and ΔH nÀ0 stands for the average change of HOMA-IR with sugar in mg/dL and insulin in mU/L. I calculate the average lean mass change ΔL nÀ0 as the difference between average weight change and fat weight change as in Eq. (2): For current calculations we assume that the energy density value of lean mass change ϱ Lk will remain stable, and it takes the value around ϱ L ≈ 1:8 kcal/g which is a value quoted in the literature [30], but its real value is unknown and uncertain. Likewise, the energy density parameter for weight change ϱ W k is calculated using the energy density value of lean mass change ϱ L ≈ 1:8 kcal/g and using the energy relationship as in Eq. (3): The αw k first-order term coefficient of the weight-fat logarithmic relationship is thought to be stable during the trial period under the stationarity assumption and therefore remains unindexed denoted as α w . Its value is calculated from weight on the first day k ¼0 and last day k ¼ n of the study as in Eq. (4): The weight change and fat weight change on the first day and last day is calculated through several steps as in Eqs. (5)-(8): Estimated daily energy balance for each day is the same EB 0 as in Eq. (5): The first day's fat weight change ΔF 1 and F 1 is calculated as in Eqs. (6) and (7): Here ϱ * F can take different values: for net fat loss ϱ * F ≈ ϱ F , it takes the value of 9.4 kcal/g; for net fat synthesis, the value is 9.4 + 2.38 kcal/g because synthesis cost of fat from glucose is added to the energy density of fat.
The last day's fat weight change ΔF nÀ1 and F nÀ1 is calculated as in Eqs. (8) and (9).
The first day's and last day's weight changes are calculated as in Eqs. (10) and (11): The first day's and last day's Rw-ratio Rw 1 and Rw nÀ1 is calculated as in Eqs. (12) and (13). We calculate the absolute change of the Rw-ratio ΔRw over duration of the trial as in Eq. (14): We calculated the fat burning fraction using Eqs. (15) and (16): We define the absolute change of fat oxidation fraction Δχ as in Eq. (17): We calculated the percent change ΔH% of the HOMA-IR over the duration of the trial as in Eq. (18) where H 0 is the average HOMA-IR value at baseline:

Method of the analysis of the CC trial data with WFE-DNL-AT calculations
The detailed description of the WFE calculation with the capability of calculating DNL and adaptive thermogenesis/thermal loss (WFE-DNL-AT) is detailed in Appendix A. For demonstration purpose we apply this method to analyze the published result of the CC trial [29]. The CC trial [29] investigated 19 adults with obesity. The intervention was the selective dietary restriction of carbohydrate (RC) versus fat (RF) for 6 days following a 5-day baseline diet. Subjects received both the isocaloric baseline diets followed by either RC or RF diet in random sequence during two inpatient stays when they were confined to a metabolic ward for two 2-week periods each. The 24-h nonprotein respiratory quotient Rnp 0 k was measured on day À4, 0, 1, 4, and 6 in a 24-h respiratory chamber. The baseline measurements were taken at day 0. The published data of the CC trial were sparse, and the results of laboratory measurements were published only for baseline and for the end point. I generated the needed daily weight W k and fat weight F k data using MATLAB's interpolation function 'pchip.' First, I calculated the daily Rw-ratio Rw k , fat burning fraction χ k , 24-hour nonprotein respiratory quotient Rnp k , de novo lipogenesis DNL k , and adaptive thermogenesis T k without the a priori knowledge of the measured Rnp 0 k on day 1, 4, and 6 using the uncorrected WFE-DNL-AT algorithm as in (A1, A2, A3, A6, A7). Second, I performed inverse calculations using the uncorrected WFE-DNL-AT model and the measured nonprotein respiratory quotient Rnp 0 k on days 1, 4, and 6 as input to arrive at the indirectly measured de novo lipogenesis mDNL and adaptive thermogenesis mT denoted mDNLRC, mTRC for the RC arm and mDNLRF, mTRF for the RF arm of the CC trial. Finally, I analyzed how the fat intake fraction φ k could be used to predict better the measured nonprotein respiratory quotient Rnp 0 k and to estimate mDNLRC, mTRC, mDNLRF, and mTRF and how to build a corrected WFE-DNL-AT, which includes (A4) for RF or (A5) for RC diet and could work without the a priori knowledge of the measured 24-h respiratory quotient Rnp 0 k .
The steps of calculations followed the WFE algorithm as in [8], and for DNL and AT calculations, I used Eqs. (A1)-(A7). The unknown values for the adaptive thermogenesis coefficient c AT and the unknown fraction of the metabolized carbohydrate intake for de novo lipogenesis c DNL were assumed to be time independent for this analysis and their values were estimated with the assumption that at baseline the energy balance is zero and the energy system is at steady state. I used the same recursive minimization procedure as already explained in [8] to calculate αw k , the first-order term coefficient of the weight-fat logarithmic relationship, and the energy density for weight ϱ W k and the Rw-ratio Rw k .

Results of the correlation analysis between HOMA-IR and chosen state variables
The results of correlation analysis across 12 clinical trials with a total of 39 study arms are summarized in Table 2. The percent change ΔH% of the HOMA-IR over the duration of the trials was correlated with the absolute change ΔRw of the Rw-ratio, absolute weight change ΔW, change of fat oxidation fraction Δχ, and the absolute fat mass change ΔF.
A sub-analysis was also performed with the results of correlation analysis of three clinical trials, [18,26,27], with inclusion of 11 study arms. The rationale for this sub-analysis was that all of them were long-term studies with duration of equal or longer than 336 days with satisfying the stationarity requirement for the analysis. The results of the sub-analysis are in Table 3.

Results of the analysis of the CC trial data with WFE-DNL-AT calculations
The results of the WFE-DNL-AT calculations using published data of the CC trial [29] are shown in Figures 1-6.
Correlation results of three clinical trials: [18,26,27] with a total of 11 study arms.
In Figure 2 the measurement points mWRC and mWRF and trajectories of body weight change in the RC and RF arm of the CC study are depicted. The dashed lines WRC and WRF are the results of the WFE calculation.
In  The measurement points and trajectories of the measured nonprotein respiratory quotient Rnp 0 k in the RC and RF arm of the CC study are depicted as mRnpRC and mRnpRF in      The correlation results between HOMA-IR and fat mass, body weight, R-ratio, and Rw-ratio are shown in Table 4. The errors of modeling fat mass, body weight, and lean mass in grams are shown in Table 5.

Discussion
The most important result of our meta-analysis across 12 clinical trials with a total of 39 study arms [16][17][18][19][20][21][22][23][24][25][26][27] is the high and significant correlation between changes of insulin resistance as measured with HOMA-IR and changes of Rw-ratio. The strength of this analysis is that the high correlation prevailed for all of the state variables examined regardless whether weight loss or weight gain was achieved during the trial and in the setting of a wide range of trial durations from 3 days to 365 days. As shown in Table 2, Rw-ratio ranked best regarding the level of correlation, followed by weight, fat weight, and fat burning fraction. Further, the high correlation is independent from dietary interventions such as isocaloric diet, overfeeding, or underfeeding or with or without exercise intervention. This result means also that the use of Rw-ratio as a surrogate marker for indirect measure of insulin resistance is justifiable for modeling changes of insulin resistance. The subanalysis looked at studies lasting longer than 336 days. The correlation coefficients scored as in Table 3 are even higher than in Table 2 with all the studies included. This predictive strength of the Rw-ratio regarding insulin resistance change could be even stronger in situations when strict steady-state energy balance is present as expected with longer study duration. An important advantage of the simple WFE analysis with Eqs. (1)- (18) is that only serial measurement of weight and fat weight is used and no calorie counting was done. The prevailing daily energy balance can be simply calculated as in Eqs. (2)- (5). Likewise, R-ratio or Rw-ratio can be  Table 5.
Error of prediction results in grams in the CC [29] study.
obtained with simple arithmetic as in Eqs. (6)- (14), which can lead to the calculation of the fat burning fraction χ k . Using Elia and Livesey's formula [31], the fat burning rate χ k can be converted into the estimated 24-h nonprotein respiratory quotient Rnp k . HOMA-IR change can be predicted by knowing that R-ratio and Rwratio are strongly and inversely correlated. This means that their reciprocal values could be used to predict proportional change of HOMA-IR. The strong correlation is in accordance with earlier findings of Thompson and Slezak [27] who were the first to report correlation between measures of insulin sensitivity and weight loss. They showed that the McAuley formula, which contains reference to triglyceride, showed greater correlation with weight loss than HOMA-IR, which does not contain information on lipids, supporting the idea that the sugar, insulin, and lipid kinetics and energy dynamics could and should be measured and modeled together. Therefore, extending the WFE model with the capability of estimating DNL like in the WFE-DNL-AT model is of theoretical as well as of practical importance for clinical use.
One weakness of the current analysis is that no individual data are published and the published data represent lumped together averages of weight and fat weight measurements at the beginning and at the end of the study period. The lack of individual serial data of weight or fat weight does not allow to have an exact insight into the dynamic of the process of body composition change which could occur along a concave or convex monotone decreasing function. Therefore, it is important to have the individual data and build an individual model which could be used also, among others, for interpolation to find missing data points.
Also, measuring insulin resistance with HOMA-IR has its own weaknesses, and maybe the McAuley formula could hold promise to improve model predictions.
The strength of the WFE modeling scheme with Eqs. (1)- (18) is that it makes minimal assumptions requiring only weight and fat weight data and it works also well for prediction of changes of HOMA-IR even when only the baseline value and the last measured value are available. The practicality of this matter is that the already commercially available measuring devices such as bioimpedance body composition analyzers are available, although their accuracy could be questioned. However, as a countermeasure we suggest the use of the Kalman filter [10,11,32,33] minimizing the variance of the measurements and maximizing consistency.
The main contribution to science of the CC trial is that it offers an important glimpse into the acute phase reaction of the body's adaptation to the energy deficit state of glucose vs. fat. Even though RC diet increased the measured net fat disappearance more than the RF diet, the RF diet was more effective in the overall fat weight loss. I interpret this result as the body's physiological adaptation to a new and negative energy balance by increasing the production of readily usable needed fuel such as triglyceride or extra DNL A k as a way to meet demand above and beyond the predicted new steady-state level of DNL B 1 . The increased demand comes from the sudden drop of energy intake and ensuing energy deficit accompanied by relatively undisturbed carbohydrate and fat fuel burning rates of the body. The suddenly needed extra energy for DNL A 1 comes from different sources in the RC vs. RF dietary interventions. In RC with drop of available glucose, the needed energies come from the fat pool. In the RF scenario, the body readily grabs the available glucose at hand coming from undisturbed carbohydrate energy intake. While equal calorie deficit is created under both RC and RF, the RF state would sink more calories into new fat synthesis, i.e., DNL A k , as the fat synthesis from carbohydrate is an energy consuming process. This is because, according to Simonson [13], during lipogenesis each gram of lipid synthetized from glucose consumes ϱ DNL ¼ 2:32 kcal/ g energy, and the process appears to be an energy "sink." In the RC diet, the needed extra triglyceride can be produced with simple lipolysis with no significant extra energy consumption or energy "disappearance or sink." Our modeling of this phenomenon with simple energy calculations for GFRF k as in Eq. (A4) and for GFRC k in Eq. (A5) is fully consistent with the measured result as demonstrated in Figure 5, where GFRF k and GFRC k and the measured DNL mDNLRC and mDNLRF are convincingly close to each other. The ratio of energy content of GFRF k and GFRC k reflects the difference of adaptation in RF vs. RC diet explainable now with Simonson's postulate for lipid synthesis from glucose [13] and using the energy constant ϱ DNL ¼ 2:32 kcal/g (see also Appendix A for more detail).
The strength of WFE-DNL-AT modeling is that the fat mass change predictions are accurate as in Figure 1, even under dietary interventions such as the RC or RF diet in the CC trial considered extreme. As fat mass measurement is a primary input data to our model calculations, its accuracy is essential to arrive at desired precision. Hall et al. [29] used DXA scan in the "CC" trial. Even with this very expensive tool, they felt that DXA still was inaccurate to determine fat mass in situations of dynamic weight change and shifting body fluids. Using commercially available bioimpedance scales for fat mass measurement with a one point in time, measurement certainly has much higher inaccuracy than DXA in determining the fat mass. However, currently most bioimpedance scales utilize the 50 kHz measuring frequency which gives quite suitable accuracy for extracellular water mass and intracellular water mass which resides mainly in lean mass, and the water content of the fat cell is negligible. In a way, the fat weight measurement by bioimpedance measurement is indirect: weight minus lean mass. This could be advantageous during weight loss when the fluids are shifting. Daily measurements with bioimpedance scale have the advantage that through obtaining a series of measurements, important secondary information related to weight, lean mass, and fat mass change can be obtained, and the variance of these measurements will allow for presentation of data in the AE standard deviation form. In response to the need for practicality, accuracy, and transparency in bioimpedance measurements, our company, Ori Diagnostic Instruments, LLC, has invented a Body Composition and Hydration Status Analyzer in unison with a high-frequency dielectric property analyzer [32,33] which can quantify the size of intracellular and extracellular water along with fat mass better than commercially available bioimpedance analyzers because it measures the dielectric properties of tissue also at high frequency which is more suitable for fat mass change measurements. We take advantage of serial measurements by providing a posteriori values to a Kalman filter where the a priori estimates are obtained from our self-adaptive model of the human energy metabolism [9]. The combination of process model and measurement model equations combined with Kalman filter realizes a classic state-space modeling scheme [9], keeping the variance of measurements at minimum and maximizing consistency.
Regarding the body weight prediction with WFE-DNL-AT, far more challenges could be raised. In Figure 2, it is shown how the measured and predicted weight deviates, especially at day 3. Here are a high number of influencing factors at work. Probably most importantly, the daily measured weight decreases could follow an exponentially declining concave function rather than a convex function such as the applied interpolation function "pchip" in MATLAB. Beyond this modeling error, the lack of modeling of the extracellular and intracellular water mass change along with modeling glycogen and protein store changes is an issue in the current form of WFE-DNL-AT. In this regard our company, Ori Diagnostic Instruments, LLC, has created a patented modeling solution which includes also modeling of the intracellular as well as extracellular fluid volume changes and predicts also protein store as well as glycogen store changes [32,33]. All results appear in the scientific form AE standard deviation, letting the user know about the accuracy and its change.
This demonstration study using CC trial data showed again the high level of correlation between HOMA-IR and R-ratio, Rw-ratio, weight, and fat mass as shown in Table 4. The modeling error of weight lean mass and fat mass was low as in Table 5. The calculated results for χ k depicted as dashed lines in Figure 3 are nicely pointing to the measured HOMA-IR values, demonstrating the predictive power of the calculated burning rate regarding HOMA-IR change prediction. This is driving home the main point that indirect measurement and prediction of HOMA-IR is possible, and the WFE model predicts that the RF diet leads to more reduction of insulin resistance and concomitant fat reduction than RC as measured.
In terms of modeling and predicting correctly changes of Rnp, the CC trial data were instrumental to improve our WFE-DNL-AT. It turns out that the truly measured Rnp 0 k can be reproduced accurately at known calorie imbalance either with RC or RF diet as demonstrated in Figure 4. In the case of RC diet, the drop of glucose supply leads to lipolysis as in the model of GFRC k (see Appendix Eq. (A5)). During RF diet GFRF k , energy will come mainly from available glucose and is easily quantifiable with our model (see Appendix Eq. (A4)). It has to be emphasized that the use of WFE-DNL-AT is possible only if the correct daily macronutrient energy of food is known. This paper confirms for clinicians the long felt close relationship of insulin resistance to the energy metabolism, opening the theoretical opportunity to merge quantitative insulin sensitivity assessments such as the homeostasis model assessment [37] of glucose and insulin kinetics with quantitative modeling and measuring dynamics of the lipid metabolism including de novo lipogenesis, lipolysis, lipid deposition, and net lipid synthesis or net lipid loss along with lipid oxidation. Importantly, WFE-DNL-AT could be the first step to extend the homeostasis model assessment in this direction. The advantage of such modeling efforts is that the individual's entire lipid metabolism could be appropriately quantified for the clinician and connected to the processes of insulin and glucose kinetics. Further, the current modeling technique allows already for derivation of a person's individualized metrics of metabolic parameters with canonical representation [10], allowing for intra-and interindividual comparison of the parameters; observing daily changes and monitoring long-term changes of the energy metabolism with the help of a metabolic health monitoring app [11]; controlling the energy metabolism by possible implementation of a favorable adaptive control intervention with instantaneous feedback of metrics to the user to reach targeted results; and long-term analysis, cardiovascular risk assessment, and intervention planning by the healthcare team with observance of applicable clinical guidelines [2].
The ultimate outcome measure of any clinical intervention is mortality, including CVD and all-cause mortality. A CPS is empowered to calculate trends and trajectories of fat mass, which can also be translated into predicted changes of visceral fat and waist circumference. In addition to this, other important mortality predictors could be added, like heart rate variability, leading to improved prediction of all-cause mortality and sudden cardiac death [34,35]. Measuring and tracking cardiovascular fitness in terms of exercise capacity and maximum oxygen uptake makes sense in view of the very strong inverse correlation between mortality and fitness [36] and direct correlation between insulin resistance syndrome and cardiovascular mortality [1]. Ultimately, in a fully developed CPS system, all essential metabolic variables and cardiovascular fitness measures could be tracked and used for prevention. An all-encompassing cardiovascular risk assessment by CPS could be achieved by adding traditional cardiovascular risk factors (i.e., blood pressure, smoking, age, gender, cholesterol, diagnosis of diabetes mellitus, among others), and these results would be at the fingertip of the user, who would be the owner of the data displayed on his/her smartphone. After proper consenting, secondary analysis of metabolic data could help not only clinical research but also insurance companies to calculate costs and potentially reimburse the treatment/self-treatment and improvement of risk factors for CVD. A value-based health delivery system holds potential to incentivize participants to improve their lifestyle, especially if insurance companies would honor participants with a discount on the premiums for those who were successful to lower their cardiovascular risk.
One final point is worth mentioning regarding our Lagrangian equation as it appears in Eq. (A10). The seemingly useless-looking Lagrange multiplier terms such as λαw k , λϱ W k , λc DNLk , and λc AT k can provide important and coveted individual sensitivity values to the fixed valued constraints, i.e., sensitivity value of the energy metabolism to the parameters αw k , ϱ W k , c DNLk , and c AT k . This can potentially reveal important individual sensitivity patterns to planned or executed interventions.

Conclusion
In this paper we presented the foundation of our mobile computing-based solutions to help better observe and control the energy metabolism. We see our approach as an appropriate response to the frustration of the public at large along with health professionals regarding perceived inadequateness of the current state of nutritional research [38] and at the same time give an answer to the call of academic authors for patient-centered individualized care [39]. Based on a rigorous examination of our methods here and in prior publications, we conclude that our mathematical modeling scheme along with the suggested computing tools is workable and appropriate to monitor, analyze, and predict individualized state variables of the metabolism, providing metrics for the quantification of the interrelationship between energy metabolism and insulin resistance which is strongly connected to obesity, fatty liver, prediabetes, metabolic syndrome, type 2 diabetes, cardiovascular morbidity, and mortality. Our mobile computing-based solutions have the potential of unlocking the vast potential of digital health. We achieved the goal of creating individualized metabolic metrics for use in mobile technology in the user's natural environment. We demonstrated that our Weight-Fat-Energy balance calculations are appropriate to predict changes of HOMA-IR. We found that the Weight-Fat-Energy balance calculations extended with the assessment of de novo lipogenesis and adaptive thermogenesis/loss predict the changes of the metabolic state variables such as Rw-ratio, weight, fat mass, and 24-h nonprotein respiratory quotient with very much acceptable accuracy. We found that the estimation of the de novo lipogenesis and adaptive thermogenesis calculations follow closely measurements that were done using a metabolic chamber for 5 days. It may just be possible to get 24-h respiratory quotient measurements in patients in their natural environment without using the metabolic chamber. We found that our analysis and predictions of the state variables of the metabolism remain valid not just at steady state but also during transitional phases. Incorporating Weight-Fat-Energy balance calculations with extended capability of de novo lipogenesis and adaptive thermogenesis assessment into mobile technologies and into a cyber-physical system [8] can provide appropriate real-time tools to monitor and optimally adjust modifiable risk factors of an individual's metabolism, allowing for planning and executing dynamic changes of behavior for optimization and control. All-encompassing cardiovascular disease risk scores can be created, tracked, modified with appropriate lifestyle changes, and used ultimately as outcome measures to improve health status. All these possibilities are applicable in resource-limited settings with minimal investment with implications for overall reduction of health costs and the potential to calculate sustainable reduction of premiums by insurers awarding compliance and efficacy in reaching and maintaining reasonable health status.

Conflict of interest
The author declares that there is no conflict of interest regarding the publication of this paper. No specific funding was provided for this research. This research was performed as part of the author's employment with Ori Diagnostic Instruments, LLC. The author is the inventor on patent [32] and patent application [33], and the patent and patent application are owned by Ori Diagnostic Instruments, LLC. Lagrange multiplier of the first-order term coefficient of the weight-fat logarithmic relationship λϱ W k Lagrange multiplier of the energy density for weight ϱ C ≈ 4:2 kcal/g energy density for glucose ϱ F ≈ 9:4 kcal/g energy density for fat (dioleyl palmitoyl triglyceride) ϱ * F ≈ ϱ F = 9.4 kcal/g in the case of net fat loss; for net fat synthesis, the value is 9.4 + 2.38 kcal/g because synthesis cost of fat from glucose is added to the energy density of fat ϱ DNL ≈ 2.38 kcal/g energy cost for synthesis of 1 g fat from glucose ϱ L ≈ 1:8 kcal/g the energy density for lean mass ϱ W k energy density for weight φ k fat intake fraction χ k fat burning fraction more DNL is generated. We use here our earlier observation that the R-ratio or the Rw-ratio is inversely correlated with HOMA-IR and mimics a measure for insulin sensitivity [8,10,11]. Hence the proposed model for steady-state level of DNL at baseline at day k ¼ 0 is in Eq. (A3):

Glossary
Here c DNL0 means the fraction of the metabolized carbohydrate intake which is used for de novo lipogenesis, and its value needs to be determined. At steady state all variables must be stable over time with little or no change. The new steady state is symbolized as DNL B j where index j ¼ 1 enumerates the steady states in sequence. Between two steady states, the DNL calculation will have acute phase component. For fasting experiments, we show here our modeling of the acute phase component. In acute phase of fasting, the production of DNL must cover the needed fat (mainly triglycerides) for the relatively unchanged fat burning rate of the body cells. The important principle for understanding the metabolic pathways is the fact that glucose is the prime ingredient for DNL production and fat cannot be directly converted to sugar. However, lipolysis can provide the needed free fatty acid and glycerol if glucose is not readily available. We found evidence by studying results of the CC study that the acute phase DNL A k is determined primarily by the sudden rise of the positively signed energy deficit ΔEB k . The energy source to cover DNL A k is different in RF diet versus RC diet. In case of RF diet where the required energy ΔEB k comes from undisturbed glucose supply, the glucose is oxidized to fat during lipid synthesis to meet the demand for DNL ARF k . This is a process which would increase Rnp above 1 [31] if the ongoing fat oxidation is ignored. However, with the ongoing fat oxidation, the 24-h Rnp will not rise above 1, but it would show an increasing trend toward 1 as demonstrated in Figure 4. The glucose equivalent energy for needed fat energy is denoted here as GFRC k in kcal, and a simple formula in Eq. (A4) expresses at least at the beginning of the adaptation of the quantitative relationships: During the RC diet, the acute phase DNL ARC k is thought to come mainly from the fat pool through lipolysis. I modeled this in a way which clearly shows how the initial adaptation to RC diet would proportionally compare with the RF diet. This formula is in Eq. (A5): Here GFRC k stands for the glucose equivalent energy in kcal to meet the fat energy demand. The factor ϱ C = ϱ C þ ϱ DNL ð Þis to express that only a fraction of ΔEB k is needed coming from fat pool with RC diet compared with glucose energy source with RF diet. The modelling equation in Eq. (A5) of the RC diet differs from Eq. (A4) of the RF diet because the Simonson's rule [13] does not apply in the RC scenario, but it will very much apply to RF scenario where lipogenesis occurs from glucose, and each gram of lipid synthetized from glucose consumes ϱ DNL ¼ 2:32 kcal/g energy. The graph of Figure 5 shows well that the theoretical models in Eq. (A4) and (A5) run very close to the measured values.
Here we give our modeling of the adaptive thermogenesis which occurs with energy imbalance with metabolic changes to oppose the body composition change. In practical terms with negative energy balance, the adaptive thermogenesis T k diminishes the total energy expenditure; vice versa with weight gain, the adaptive thermogenesis T k adds the total energy expenditure leading to lesser weight increase than expected by simple calorie counting. For modeling this phenomenon, we chose to use Hall's equation for adaptive thermogenesis [35] as in Eq. (A6): Here, c AT means adaptive thermogenesis coefficient, a parameter which must be estimated. The value for the time constant is assumed to be τ ¼ 7 according to Hall [35]. If uncertainty exist, then parameter estimation is needed also for τ. MEI j¼0 means metabolized energy intake at baseline steady state, and MEI j¼1 is the energy intake at the end of the adaptation period when the next steady state has been reached.
The total adaptive thermogenesis sums up over time from i ¼ 0 until final day i ¼ k as in Eq. (A7), assuming a quasi-stable c AT k over the examined time period: For days with transition from one steady state to another, the total energy expenditure TEE k is replaced by the sum of energy production EP k and the adaptive thermogenesis/sink T k as in Eq. (A8): The daily energy production can be determined from Eq. (A9): For theoretical purpose, we want to update here our proposed thermodynamic Lagrangian functional presented already in [8] to determine the unknown parameters αw k and ϱ W k for WFE calculations. In doing so, we utilize the principles of indirect calorimetry and the principle of "least action or stationary action" [8].
The extended model WFE-DNL-AT is empowered to calculate DNL as well as AT. For this purpose the determination of the following unknown parameters are needed, αw k , ϱ W k , c DNLk , and c AT k , by using known values of W k , F k , EP k , MEI k , CI k , and φ k . The new form of the thermodynamic Lagrangian functional contains now implicitly DNL k as a function of c DNLk , CI k , ϱ W k , and Rw k and the adaptive thermogenesis/thermal loss T k as a function of the parameter c AT k as shown in Eq. (A10): Note that TEE k can be calculated from the energy balance equation which is the sum of Eqs. (A1) and (A2): The Lagrangian functional L contains all energy forms entering and exiting the human body along with the subsidiary conditions for the unknown parameters αw k , ϱ W k , c DNLk , and c AT k from beginning day k ¼ 0 to end k ¼ n of observation. The equations with the constraints for the unknown parameters αw k , ϱ W k , c AT k , and c DNLk add up to zero, and they are entered with their time-dependent Lagrange multipliers and λαw k , λϱ W k , λ c DNLk , and λc AT k as in Eq. (A10). A minimization procedure will give the estimations for the unknowns αw k , ϱ W k , c DNLk , and c AT k .

Author details
Zsolt P. Ori Ori Diagnostic Instruments, L.L.C., Durham, NC, USA *Address all correspondence to: zsolt.ori56@gmail.com © 2019 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/ by/3.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.