Theoretical Foundations of Artificial Intelligence Application in the "Safe City" System | Synapse