The integration of digital technologies into manufacturing processes led to the creation of smart factories that are more efficient, productive, and cost-effective, giving rise to what is commonly known as Industry 4.0 or the Fourth Industrial Revolution. Technologies such as artificial intelligence (AI), machine learning, big data analytics, and the Internet of Things (IoT) are...