This paper investigates the relevant problem of improving the efficiency of embedded automatic control systems, where deep learning-based computer vision algorithms act as virtual sensors. Methods of model compression (quantization, pruning) within Edge AI and TinyML approaches are analyzed. It is hypothesized that isolated software optimization of neural networks, without considering the dynamics of the physical object, may reduce the system's stability margins due to the emergence of stochastic noise and variable latency. A comprehensive research methodology is proposed, combining the use of digital twins, simulation (Vision-in-the-loop), emulation, and hardware implementation (Hardware-in-the-loop). This approach aims to find the optimal trade-off between inference latency and recognition accuracy to enhance the reliability and efficiency of autonomous cyber-physical systems.