A system for automated enteral feeding of a patient, comprising: at least one hardware processor executing a code for: computing, over a portion of a time interval, a resting energy expenditure of the patient based on CO 2 production rate and/or O 2 consumption rate estimates of the subject made by measurements of at least one sensor; computing a target nutritional goal to reach at an end of the time interval, the target nutritional goal corresponding to a target amount of energy expenditure of the patient over the time interval computed by extrapolating the REE from the portion to the time interval; computing a target feeding profile denoting a target enteral feeding of the patient by an automated enteral feeding device for reaching the target nutritional goal at an end of a time interval; defining a baseline feeding profile of a patient by matching to the target feeding profile, wherein the patient is automatically fed by the automated enteral feeding device according to the baseline feeding profile for reaching the target nutritional goal; pausing the enteral feeding by the automated enteral feeding device for at least one pause time interval during a gastric residual volume event; wherein the GRV event is a reflux of the patient and/or a scheduled GRV procedure; computing a residual loss in a GRV residual bag that collects the evacuated reflux by weighing and/or a GRV flow sensor, the residual loss representing feeding losses; wherein a feeding deficit is formed between the target feeding profile and the baseline feeding profile during the at least one pause time interval, wherein the feeding deficit indicates a difference between the total accumulated feedings actually administered to the patient, and the desired accumulated feedings; and adjusting the baseline feeding profile by increasing to a higher feeding rate that is higher than a feeding rate of the corresponding target feeding profile for compensating for the feeding losses occurring during the at least one to compensate the feeding deficit for reaching the target nutritional goal at the end of the time interval. computing, over a portion of a time interval, a resting energy expenditure of the patient based on CO 2 production rate and/or O 2 consumption rate estimates of the subject made by measurements of at least one sensor; computing a target nutritional goal to reach at an end of the time interval, the target nutritional goal corresponding to a target amount of energy expenditure of the patient over the time interval computed by extrapolating the REE from the portion to the time interval; computing a target feeding profile denoting a target enteral feeding of the patient by an automated enteral feeding device for reaching the target nutritional goal at an end of a time interval; defining a baseline feeding profile of a patient by matching to the target feeding profile, wherein the patient is automatically fed by the automated enteral feeding device according to the baseline feeding profile for reaching the target nutritional goal; pausing the enteral feeding by the automated enteral feeding device for at least one pause time interval during a gastric residual volume event; wherein the GRV event is a reflux of the patient and/or a scheduled GRV procedure; computing a residual loss in a GRV residual bag that collects the evacuated reflux by weighing and/or a GRV flow sensor, the residual loss representing feeding losses; wherein a feeding deficit is formed between the target feeding profile and the baseline feeding profile during the at least one pause time interval, wherein the feeding deficit indicates a difference between the total accumulated feedings actually administered to the patient, and the desired accumulated feedings; and adjusting the baseline feeding profile by increasing to a higher feeding rate that is higher than a feeding rate of the corresponding target feeding profile for compensating for the feeding losses occurring during the at least one to compensate the feeding deficit for reaching the target nutritional goal at the end of the time interval.