Electricity plays an important part in production costs, but there is a scarcity of systems that consider the production chain as a whole and express all relevant performance indices. This work initiates the integration of two currently independent management systems: PGEN project (from Federal Institute of Santa Catarina, Brazil), focused on energy management of public buildings, and Barn 4.0 project (from Häme University of Applied Sciences, Finland), focused on Animal Welfare Management in the dairy industry. The main results of those two projects are briefly presented, including a system of cows' behavioral activity recognition (interactions, agglomerations, among 8 other classes) using Computer Vision, and a predictive system of electrical consumption using an ensemble of 6 Machine Learning models. We elaborated a conceptual framework of an Integrated Production Management System, also pointing out important directions for future research and the possibilities of applying this system to other industries.