A method of controlling a detection system of a vehicle, the method comprising: receiving, with one or more electronic processors coupled to a detection array of a range detection device, data from a camera, wherein the camera includes a field of view and the data includes at least one of an image and a video; identifying, with the one or more electronic processors, a first area in the field of view of the camera by performing image analysis of the image or video received from the camera; generating metadata indicating information about the first area including a type of area based on the image analysis; determining, with the one or more electronic processors, a first threat probability of the first identified area based on the area type of the first identified area by establishing an initial threat probability score for the identified first area based on initial threat probability scores stored in a look-up table according to the type of the identified area; determining, with the one or more electronic processors, that the first threat probability is greater than a threat level threshold; and in response to determining that the first threat probability is greater than the threat level threshold, providing, with the one or more electronic processors, an instruction to the detection array to change a shape of a beam created by the detection array to focus the beam in a direction of the first identified area; wherein in response to receiving the instruction, the detection array emits the beam with the changed shape to focus the beam in the direction of the first identified area. receiving, with one or more electronic processors coupled to a detection array of a range detection device, data from a camera, wherein the camera includes a field of view and the data includes at least one of an image and a video; identifying, with the one or more electronic processors, a first area in the field of view of the camera by performing image analysis of the image or video received from the camera; generating metadata indicating information about the first area including a type of area based on the image analysis; generating metadata indicating information about the first area including a type of area based on the image analysis; determining, with the one or more electronic processors, a first threat probability of the first identified area based on the area type of the first identified area by establishing an initial threat probability score for the identified first area based on initial threat probability scores stored in a look-up table according to the type of the identified area; determining, with the one or more electronic processors, that the first threat probability is greater than a threat level threshold; and in response to determining that the first threat probability is greater than the threat level threshold, providing, with the one or more electronic processors, an instruction to the detection array to change a shape of a beam created by the detection array to focus the beam in a direction of the first identified area; wherein in response to receiving the instruction, the detection array emits the beam with the changed shape to focus the beam in the direction of the first identified area.