An electronic apparatus for detecting risk factors around a vehicle, the apparatus comprising: a communicator; a memory configured to store at least one computer-executable instruction; and a processor configured to execute the at least one computer-executable instruction, wherein the processor is configured to: receive, through the communicator, images obtained from a camera disposed for capturing the outside of the vehicle, based on a plurality of external vehicles being included in the obtained images, obtain information on a type of the plurality of external vehicles by inputting the images of the plurality of external vehicles to an artificial intelligence model learned by an artificial intelligence algorithm, and identify a first external vehicle whose total height is equal to or greater than a preset height among the plurality of external vehicles based on the obtained information, and set a region of interest on the identified first external vehicle, obtain a roll angle and a rate of change of the roll angle of the identified first external vehicle in the region of interest by inputting the obtained images to a second artificial intelligence model to obtain the roll angle, a roll direction angle and a rate of change of the roll direction angle of the identified first external vehicle, wherein the second artificial intelligence model is learned by the artificial intelligence algorithm, and obtain a rollover index of the identified first external vehicle using the roll angle and the rate of change of the roll direction angle, and perform a preset operation according to the obtained rollover index, wherein the performing the preset operation according to the obtained rollover index comprises, based on the obtained rollover index being greater than a preset rollover index, providing a notification to a user. a communicator; a memory configured to store at least one computer-executable instruction; and a processor configured to execute the at least one computer-executable instruction, wherein the processor is configured to: receive, through the communicator, images obtained from a camera disposed for capturing the outside of the vehicle, based on a plurality of external vehicles being included in the obtained images, obtain information on a type of the plurality of external vehicles by inputting the images of the plurality of external vehicles to an artificial intelligence model learned by an artificial intelligence algorithm, and identify a first external vehicle whose total height is equal to or greater than a preset height among the plurality of external vehicles based on the obtained information, and set a region of interest on the identified first external vehicle, obtain a roll angle and a rate of change of the roll angle of the identified first external vehicle in the region of interest by inputting the obtained images to a second artificial intelligence model to obtain the roll angle, a roll direction angle and a rate of change of the roll direction angle of the identified first external vehicle, wherein the second artificial intelligence model is learned by the artificial intelligence algorithm, and obtain a rollover index of the identified first external vehicle using the roll angle and the rate of change of the roll direction angle, and perform a preset operation according to the obtained rollover index, wherein the performing the preset operation according to the obtained rollover index comprises, based on the obtained rollover index being greater than a preset rollover index, providing a notification to a user. receive, through the communicator, images obtained from a camera disposed for capturing the outside of the vehicle, based on a plurality of external vehicles being included in the obtained images, obtain information on a type of the plurality of external vehicles by inputting the images of the plurality of external vehicles to an artificial intelligence model learned by an artificial intelligence algorithm, and identify a first external vehicle whose total height is equal to or greater than a preset height among the plurality of external vehicles based on the obtained information, and set a region of interest on the identified first external vehicle, obtain a roll angle and a rate of change of the roll angle of the identified first external vehicle in the region of interest by inputting the obtained images to a second artificial intelligence model to obtain the roll angle, a roll direction angle and a rate of change of the roll direction angle of the identified first external vehicle, wherein the second artificial intelligence model is learned by the artificial intelligence algorithm, and obtain a rollover index of the identified first external vehicle using the roll angle and the rate of change of the roll direction angle, and perform a preset operation according to the obtained rollover index, wherein the performing the preset operation according to the obtained rollover index comprises, based on the obtained rollover index being greater than a preset rollover index, providing a notification to a user.