System for optimizing an energy consumed by a guided vehicle by automatically adapting an acceleration curve to changes in weight of the guided vehicle in function of time, the system comprising: - a camera system configured for being installed on-board the guided vehicle in order to take images of each entrance and exit door of the guided vehicle at least during a period T of time, wherein the period T of time starts at the opening of the entrance and exit door and ends at its closing (from claim 3); - a processing unit connected to the camera system and to a control system of the guided vehicle in charge of controlling and commanding changes of the guided vehicle velocity according to a determined adapted acceleration curve, said processing unit being configured for: i. receiving the images taken by the camera system; and ii. processing said images in order to determine a number B of passengers boarding the guiding vehicle and a number L of passengers leaving the guided vehicle during said period T of time; iii. calculating a total number P of passengers inside the guided vehicle at the end of the period T, wherein P = B-L; iv. evaluating a total weight W of the guided vehicle at the end of the period T in function of the total number P of passengers inside the guided vehicle at the end of the period T and determining an adapted acceleration curve in function of the total weight W, wherein the adapted acceleration curve is configured for minimizing energy consumption of the guided vehicle for the determined total weight W; v. transmitting said determined adapted acceleration curve to the control system in charge of controlling and commanding changes of velocity of the guided vehicle in function of the determined adapted acceleration curve. - a camera system configured for being installed on-board the guided vehicle in order to take images of each entrance and exit door of the guided vehicle at least during a period T of time, wherein the period T of time starts at the opening of the entrance and exit door and ends at its closing (from claim 3); - a processing unit connected to the camera system and to a control system of the guided vehicle in charge of controlling and commanding changes of the guided vehicle velocity according to a determined adapted acceleration curve, said processing unit being configured for: i. receiving the images taken by the camera system; and ii. processing said images in order to determine a number B of passengers boarding the guiding vehicle and a number L of passengers leaving the guided vehicle during said period T of time; iii. calculating a total number P of passengers inside the guided vehicle at the end of the period T, wherein P = B-L; iv. evaluating a total weight W of the guided vehicle at the end of the period T in function of the total number P of passengers inside the guided vehicle at the end of the period T and determining an adapted acceleration curve in function of the total weight W, wherein the adapted acceleration curve is configured for minimizing energy consumption of the guided vehicle for the determined total weight W; v. transmitting said determined adapted acceleration curve to the control system in charge of controlling and commanding changes of velocity of the guided vehicle in function of the determined adapted acceleration curve. i. receiving the images taken by the camera system; and ii. processing said images in order to determine a number B of passengers boarding the guiding vehicle and a number L of passengers leaving the guided vehicle during said period T of time; iii. calculating a total number P of passengers inside the guided vehicle at the end of the period T, wherein P = B-L; iv. evaluating a total weight W of the guided vehicle at the end of the period T in function of the total number P of passengers inside the guided vehicle at the end of the period T and determining an adapted acceleration curve in function of the total weight W, wherein the adapted acceleration curve is configured for minimizing energy consumption of the guided vehicle for the determined total weight W; v. transmitting said determined adapted acceleration curve to the control system in charge of controlling and commanding changes of velocity of the guided vehicle in function of the determined adapted acceleration curve.