A lighting system for adjusting illumination of a lighting fixture illuminating an environment, the lighting system comprising: the lighting fixture, configured to illuminate the environment; and an apparatus comprising: at least one occupancy sensor to provide sensor data representing at least one occupancy event in the environment illuminated by the lighting fixture; a memory, operatively coupled to the at least one occupancy sensor, to log the sensor data provided by the at least one occupancy sensor; and at least one processor, operatively coupled to the lighting fixture and the memory, characterized in that the processor is configured to: partition the logged sensor data into a plurality of clusters based on at least one classification parameter associated with the occupancy event; generate at least one output state based on at least one characteristic of each cluster of at least a subset of the plurality of clusters; and adjust the illumination of the lighting fixture based on the at least one output state; wherein the at least one classification parameter comprises at least one of a time, a temperature, an object velocity, an object direction, and an object size associated with the logged sensor data; wherein the at least one characteristic of each cluster of at least a subset of the plurality of clusters is at least one of a cluster size, a mean value of the at least one classification parameter, a median value of the at least one classification parameter, and a range of the at least one classification parameter. the lighting fixture, configured to illuminate the environment; and an apparatus comprising: at least one occupancy sensor to provide sensor data representing at least one occupancy event in the environment illuminated by the lighting fixture; a memory, operatively coupled to the at least one occupancy sensor, to log the sensor data provided by the at least one occupancy sensor; and at least one processor, operatively coupled to the lighting fixture and the memory, characterized in that the processor is configured to: partition the logged sensor data into a plurality of clusters based on at least one classification parameter associated with the occupancy event; generate at least one output state based on at least one characteristic of each cluster of at least a subset of the plurality of clusters; and adjust the illumination of the lighting fixture based on the at least one output state; wherein the at least one classification parameter comprises at least one of a time, a temperature, an object velocity, an object direction, and an object size associated with the logged sensor data; wherein the at least one characteristic of each cluster of at least a subset of the plurality of clusters is at least one of a cluster size, a mean value of the at least one classification parameter, a median value of the at least one classification parameter, and a range of the at least one classification parameter. partition the logged sensor data into a plurality of clusters based on at least one classification parameter associated with the occupancy event; generate at least one output state based on at least one characteristic of each cluster of at least a subset of the plurality of clusters; and adjust the illumination of the lighting fixture based on the at least one output state; wherein the at least one classification parameter comprises at least one of a time, a temperature, an object velocity, an object direction, and an object size associated with the logged sensor data; wherein the at least one characteristic of each cluster of at least a subset of the plurality of clusters is at least one of a cluster size, a mean value of the at least one classification parameter, a median value of the at least one classification parameter, and a range of the at least one classification parameter.