Additive manufacturing (AM) is a crucial component of a smart factory that promises to change traditional supply chains. However, the parts built using state-of-the-art 3D printers have noticeable unpredictable mechanical properties. In this paper, a machine learning (ML) model is proposed as a promising approach to improve the underlying failure phenomena in the AM process. The paper also describe how a ML model can be distributed to form an interactive learning network of smart AM components to fulfil the Industry 4.0 requirements including self-organization, distributed control, communication, and real-time decision-making capability.Currently, almost all AM machines have only limited sensing capabilities that are mostly inaccessible to the users, or completely "open-loop" system operating without any feedback measurement systems for correction during the process. However, future AM machines must be a smart system that can perform self-monitoring, self-calibrating, and quality self-controlling in real-time. The gap between the smart factory and existing manufacturing systems can be bridged concerning the automation, flexibility, and reconfigurability of AM machines in an interactive distributed network as a natural way of scaling up learning algorithms.