Method for setting parameters in an autonomous working device, the autonomous working device being controlled based on a plurality of working parameters for the autonomous device to perform a working task, the method comprising the following steps: - generating for each of a plurality of different working environments a set of sensor values that sensors of the autonomous working device produce while being operated in the respective working environment, - partitioning the plurality of sets of sensor values into categories using a numerical clustering algorithm, wherein for each cluster, corresponding to one category, a representative set of sensor values is determined and each category corresponds to one prototypical working environment, - optimizing the working parameters for each category to find an optimized working parameter set for each prototypical working environment, - storing in a memory of the autonomous working device the optimized working parameter sets, wherein each optimized working parameter set for each prototypical working environment is stored in association with a respective representative set of sensor values, - generating for an individual working environment in which operation of the autonomous working device shall be performed an individual set of sensor values that the sensors of the autonomous working device produce while being operated in this individual working environment, - determining, based at least on the individual set of sensor values, among the stored prototypical working environments, a prototypical working environment showing highest similarity to the individual working environment, and - setting the working parameters in the autonomous working device according to the optimized working parameter set corresponding to the determined prototypical working environment. - generating for each of a plurality of different working environments a set of sensor values that sensors of the autonomous working device produce while being operated in the respective working environment, - partitioning the plurality of sets of sensor values into categories using a numerical clustering algorithm, wherein for each cluster, corresponding to one category, a representative set of sensor values is determined and each category corresponds to one prototypical working environment, - optimizing the working parameters for each category to find an optimized working parameter set for each prototypical working environment, - storing in a memory of the autonomous working device the optimized working parameter sets, wherein each optimized working parameter set for each prototypical working environment is stored in association with a respective representative set of sensor values, - generating for an individual working environment in which operation of the autonomous working device shall be performed an individual set of sensor values that the sensors of the autonomous working device produce while being operated in this individual working environment, - determining, based at least on the individual set of sensor values, among the stored prototypical working environments, a prototypical working environment showing highest similarity to the individual working environment, and - setting the working parameters in the autonomous working device according to the optimized working parameter set corresponding to the determined prototypical working environment.