Food safety pre-warning system can enhance the sustainability of food supply chain. Pre-warning system reduced the cost related food safety and quality. Data mining were effective to find food safety pre-warning rules. Internet of Things strengthened the communication among partners in a supply chain.