Patent attributes
Embodiments of the invention are directed to machine learning-based anomaly detection in program code. The system provides a machine learning (ML) anomaly detection model component structured to detect architectural flaws in program code based on processing application logs associated with technology program code and determining flow sequences between a plurality of layers of code. In particular, the system trains the machine learning (ML) anomaly detection model that is structured to (i) construct a first application layer map based on mapping each of the plurality of first classes associated with the first technology program code to one or more application layers, (ii) determine a first architecture pattern associated with the first technology program code, and (iii) determine whether the first technology program code is associated with an anti-pattern.