With the growing adoption of the Internet of Things (IoT) technology in the agricultural sector, smart devices are becoming more prevalent. The availability of new, timely, and precise data offers a great opportunity to develop advanced analytical models. Therefore, the platform used to deliver new developments to the final user is a key enabler for adopting IoT technology. This work presents a generic design of a software platform based on the cloud and implemented using microservices to facilitate the use of predictive or prescriptive analytics under different IoT scenarios. Several technologies are combined to comply with the essential features—scalability, portability, interoperability, and usability—that the platform must consider to assist decision-making in agricultural 4.0 contexts. The platform is prepared to integrate new sensor devices, perform data operations, integrate several data sources, transfer complex statistical model developments seamlessly, and provide a user-friendly graphical interface. The proposed software architecture is implemented with open-source technologies and validated in a smart farming scenario. The growth of a batch of pigs at the fattening stage is estimated from the data provided by a level sensor installed in the silo that stores the feed from which the animals are fed. With this application, we demonstrate how farmers can monitor the weight distribution and receive alarms when high deviations happen.
A total of 66,620 records from the first six parities for number of piglets born alive (NBA) from 20,120 Landrace sows and 24,426 records for weight (WT) and backfat thickness (BT) at 175 d of age were analyzed to estimate genetic parameters. The pedigree consisted of 47,186 individuals, including 392 sires and 5,394 dams. Estimates were based on marginal posterior distribution of the genetic parameters obtained using Bayesian inference implemented via the Gibbs sampling procedure with a Data Augmentation step. The posterior means and posterior standard deviation (PSD) for heritability of NBA ranged from 0.064 (PSD 0.005) in the first parity to 0.146 (PSD 0.019) in the sixth parity, always increasing with the order of the parity. The posterior means for genetic correlations of litter size between adjacent parities were, in most cases, greater than 0.80. However, genetic correlation were much lower between nonadjacent parities. For example, the genetic correlation was 0.534 (PSD 0.061) between the fourth and the sixth parity for NBA. The posterior means of heritability for WT and BT were 0.229 (PSD 0.018) and 0.350 (PSD 0.019), respectively. Posterior mean for genetic correlation between WT and BT was 0.339 (PSD 0.044). The posterior means for genetic correlation between production (WT and BT) and reproduction traits (NBA in different parities) were close to zero in most cases. Results from this study suggest that different parities should be considered as different traits. Moreover, selection for growth and backfat should result in no or very little correlated response in litter size.