A computer program product embodied in a computer readable storage device and comprising instructions that when executed by a processor, cause the processor to:
- submit, over a network, from a user device that is associated with a user to a cloud server that includes one or more processors, a desired weight Dw for the user and a timeframe (τ) in which the a desired weight Dw is to be achieved, wherein the desired weight Dw and the timeframe (τ) are identified or entered by the user via a Graphical User Interface (GUI) on the user device;
- generate, by one or more processors, a number of sub-goal weights g0, g1, . . . gn based on a current weight Cw, a desired weight loss amount (ΔW), the desired weight Dw, a curve tension r which is set to an initial value that is greater than zero, and the timeframe (τ) in which the weight loss amount (ΔW) is to be achieved, wherein the timeframe (τ) includes a number (n) of time periods that each correspond with a pair of successive ones of the sub-goal weights g0, g1, . . . gn such that sub-goal weight g0 corresponds with a beginning of the first one of the number (n) of time periods and sub-goal weight gn corresponds with an end of the last one of the number (n) of time periods, and wherein the sub-goal weights g0, g1, . . . gn are generated by the one or more processors using the sub-goal generation formulas:
- g
- 0
- =
- W
- 0
- +
- D
- w
- =
- Δ
-
-
- W
- 1
- -
- e
- -
- r
-
-
- τ
- 10
-
- (
- e
- 0
- 10
- -
- e
- -
- r
-
-
- τ
- 10
- )
- +
- D
- w
- =
- C
- w
- ,
-
- g
- 1
- =
- W
- 1
- +
- D
- w
- =
- Δ
-
-
- W
- 1
- -
- e
- -
- r
-
-
- τ
- 10
-
- (
- e
- -
- r
- 10
- -
- e
- -
- r
-
-
- τ
- 10
- )
- +
- D
- w
- ,
-
- g
- 2
- =
- W
- 2
- +
- D
- w
- =
- Δ
-
-
- W
- 1
- -
- e
- -
- r
-
-
- τ
- 10
-
- (
- e
- -
- 2
-
- r
- 10
- -
- e
- -
- r
-
-
- τ
- 10
- )
- +
- D
- w
- ,
- and
- g
- n
- =
- W
- n
- +
- D
- w
- =
- Δ
-
-
- W
- 1
- -
- e
- -
- r
-
-
- τ
- 10
-
- (
- e
- -
- nr
- 10
- -
- e
- -
- r
-
-
- τ
- 10
- )
- +
- D
- w
- =
- D
- w
- ;
- send the sub-goal weights g0, g1, . . . gn and the number of time periods that each correspond with the pair of successive ones of the sub-goal weights g0, g1, . . . gn to a weight measuring device that is associated with the user;
- receive one of a number of measured weights W0, W1, . . . Wn from the weight measuring device that is associated with the user, wherein the one of the number of measured weights W0, W1, . . . Wn is measured by the weight measuring device that is associated with the user, wherein each one of the number of measured weights W0, W1, . . . Wn is associated with a corresponding one of the number of sub-goal weights g0, g1, . . . gn for a same one of the number (n) of time periods, and wherein each one of the sub-goal weights g0, g1, . . . gn represents a short term desired weight for an associated one of the number of measured weights W0, W1, . . . Wn;
- and
- display, on a screen of the weight measuring device, the one of the number of measured weights W0, W1, . . . Wn and the corresponding one of the number of sub-goal weights g0, g1, . . . gn that represents the short term desired weight for the associated one of the number of measured weights W0, W1, . . . Wn to indicate a progress of the user towards achieving the short term desired weight.