Industrial Cyber-Physical Systems (CPS) are promoting the development of smart machines and products, leading to the next generation of intelligent production systems. In this context, Artificial Intelligence (AI) is posed as a key enabler for the realization of CPS requirements, supporting the data analysis and the system dynamic adaptation. However, the centralized Cloud-based AI approaches are not suitable to handle many industrial scenarios, constrained by responsiveness and data sensitive. Edge Computing can address the new challenges, enabling the decentralization of data analysis along the cyber-physical components. In this context, distributed AI approaches, such those based on Multi-agent Systems (MAS), are essential to handle the distribution and interaction of the components. Based on that, this work uses a MAS approach to design cyber-physical agents that can embed different data analysis capabilities, supporting the decentralization of intelligence. These concepts were applied to an industrial automobile multi-stage production system, where different kinds of data analysis were performed in autonomous and cooperative agents disposed along Edge, Fog and Cloud computing layers.Industrial Cyber-Physical Systems (CPS) are enabling the next generation of intelligent production systems, mainly based on the concepts of smart machines and products. Driven by the needs to attend the ever-changing market trends, such digital transformation is mainly based on the use of Internet of Things (IoT), Cloud Computing and Artificial Intelligence (AI) technologies [12]. While the first enables the interconnection of equipment and consequently the digitization of the industrial environment [22], the second provides on demand high processing and storage resources [15]. On the other hand, AI provides advanced data analysis algorithms, such those based on Machine-Learning (ML), that can take advantage of the huge amounts of IoT data and the power of Cloud Computing, in order to provide actionable information and support data-driven decision-making [20,8].Although Cloud manufacturing [15] has been seen as a new paradigm in the realization of the 4th industrial revolution (4IR) [12], the traditional Cloud-based approaches, where IoT devices send all the data to be processed by centralized applications, present some drawbacks. Indeed, besides information security and privacy concerns [21], this approach is not suitable for many real-time, data-sensitive and constrained network applications [2]. In this context, Fog Computing emerged to cover the Cloud limitations, promoting the deployment of data processing capabilities closer to the data sources [4]. It defines an intermediate computing layer between Cloud applications and IoT devices that besides providing a more direct, reliable, secure and fast link between them, also promotes the decentralization of data analysis, decision-making and control, increasing local components autonomy.Besides Fog, which considers equipment at the local network, CPS also considers processing ca...