Method for controlling the environment of an autonomous agricultural animal feeding machine, the autonomous agricultural machine being able and intended to, in an autonomous manner, during an extraction run, position itself in front of the pick-up face of a pile of animal feeding product in an extraction position and to carry out an extraction operation on the pick-up face, several extraction runs respectively forming a succession of extraction positions side by side along the pick-up face, the method consists, on each extraction run, in carrying out the following steps, using an environmental control system: - in an observation step: from the autonomous agricultural machine in a position in front of the pick-up face, preferably in one of the extraction positions, in observing the environment of the autonomous agricultural machine in front of or at the pick-up face, then - in a processing step: in processing the observation data so as to detect the presence or absence of target(s) and to deduce therefrom:. a positive critical detection result indicating the presence of at least one target, called a critical target, likely to generate an incident at and/or in front of the pick-up face during a subsequent extraction run, or a negative critical detection result indicating the absence of any critical target(s),. if applicable, a positive non-critical detection result indicating the presence of at least one non-critical target or a negative non-critical detection result indicating the absence of any non-critical target(s), - in an information step: in making available to the remote user of the autonomous agricultural machine at least one item of information on the results. - in an observation step: from the autonomous agricultural machine in a position in front of the pick-up face, preferably in one of the extraction positions, in observing the environment of the autonomous agricultural machine in front of or at the pick-up face, then - in a processing step: in processing the observation data so as to detect the presence or absence of target(s) and to deduce therefrom:. a positive critical detection result indicating the presence of at least one target, called a critical target, likely to generate an incident at and/or in front of the pick-up face during a subsequent extraction run, or a negative critical detection result indicating the absence of any critical target(s),. if applicable, a positive non-critical detection result indicating the presence of at least one non-critical target or a negative non-critical detection result indicating the absence of any non-critical target(s),. a positive critical detection result indicating the presence of at least one target, called a critical target, likely to generate an incident at and/or in front of the pick-up face during a subsequent extraction run, or a negative critical detection result indicating the absence of any critical target(s),. if applicable, a positive non-critical detection result indicating the presence of at least one non-critical target or a negative non-critical detection result indicating the absence of any non-critical target(s), - in an information step: in making available to the remote user of the autonomous agricultural machine at least one item of information on the results.