An additive manufacturing system , comprising: a print head that is configured to print an object in a layer by layer manner; an illumination source for providing illumination to a surface of a printed layer of the object; an image sensor configured to capture an image of the printed layer; and at least one hardware processor configured to: receive a captured image ; obtain one or more desired mechanical properties for the object; generate a three-dimensional topographical image of the printed layer; identify an anomaly in the printed layer from the generated topographical image using a first artificial intelligence algorithm that is configured to detect anomalies in printed layers; determine a correlation between the identified anomaly and one of an infill density and an infill pattern used to print the printed layer using a second artificial intelligence algorithm that is configured to determine correlations between identified anomalies and the one of the infill density and the infill pattern; adjust a value for the one of the infill density and the infill pattern to be used by the print head to print a subsequent layer of the object; and cause the print head to print the subsequent layer of the object using the value for the one of the infill density and the infill pattern to substantially achieve the one or more desired mechanical properties. a print head that is configured to print an object in a layer by layer manner; an illumination source for providing illumination to a surface of a printed layer of the object; an image sensor configured to capture an image of the printed layer; and at least one hardware processor configured to: receive a captured image ; obtain one or more desired mechanical properties for the object; generate a three-dimensional topographical image of the printed layer; identify an anomaly in the printed layer from the generated topographical image using a first artificial intelligence algorithm that is configured to detect anomalies in printed layers; determine a correlation between the identified anomaly and one of an infill density and an infill pattern used to print the printed layer using a second artificial intelligence algorithm that is configured to determine correlations between identified anomalies and the one of the infill density and the infill pattern; adjust a value for the one of the infill density and the infill pattern to be used by the print head to print a subsequent layer of the object; and cause the print head to print the subsequent layer of the object using the value for the one of the infill density and the infill pattern to substantially achieve the one or more desired mechanical properties. receive a captured image ; obtain one or more desired mechanical properties for the object; generate a three-dimensional topographical image of the printed layer; identify an anomaly in the printed layer from the generated topographical image using a first artificial intelligence algorithm that is configured to detect anomalies in printed layers; determine a correlation between the identified anomaly and one of an infill density and an infill pattern used to print the printed layer using a second artificial intelligence algorithm that is configured to determine correlations between identified anomalies and the one of the infill density and the infill pattern; adjust a value for the one of the infill density and the infill pattern to be used by the print head to print a subsequent layer of the object; and cause the print head to print the subsequent layer of the object using the value for the one of the infill density and the infill pattern to substantially achieve the one or more desired mechanical properties. <EOS>