###### Abstract  
The risk of supply chain disruption is usually related to daily disturbances in supply chain operations (e.g., demand fluctuations) and some emergency risks, such as earthquakes and epidemic outbreaks. During a crisis, companies need agility to quickly find new suppliers and open auxiliary sales channels to meet customer needs and remain competitive. However, identifying \"event\" is one of the most difficult challenges of current decision support systems. If the system encounters an emergency, it is usually unable to promptly notify users of the warning to avoid risks. A sensible solution is to incorporate the real-time event-monitoring system into SCM (i.e., supply chain management) in order to share emergency information in the early stage for preemptive management in the supply chain. On the other hand, in order to process confidential supply chain data with other members, the SCM infrastructure requires secure data sharing. The blockchain-based SCM system can improve the transparency of traceability to ensure that the supply chain system provides high-quality products and protects data privacy and security. The view is taken; therefore, in this work, we combined a method of real-time event detection using collected Twitter data and blockchain technology for event monitoring to improve the visibility of the supply chain system and take preemptive measures for risk avoidance. The experiments show some interesting results and potentials for future work in the field of the agile supply chain. blockchain; event detection; machine learning; supply chain management; Twitter +
Footnote †: journal: Medical  
formulate control strategies from the perspective of the company. However, one problem is that when an emergency occurs, even if each member optimizes performance, the entire supply chain may not achieve the best performance. The resilience of the supply chain must be based on the ability of SCM members to respond to various risks. Resilient supply chains incorporate event readiness, are capable of providing an efficient response, and often are capable of recovering to their original state or even better post the disruptive event [6]. The issue of resilience needs particular attention and is defined as the ability of a system to resist, adapt, recover from unpredictable events. In order to quantify the system recovery. Some previous studies have been developed effective models to analyze the impacts on the SCM and logistics-related systems [7]. Meanwhile, higher levels of SCM practice (e.g., strategic supplier partnership, customer relationship, level of information sharing, quality of information sharing, and postponement) can lead to enhanced competitive advantage and improved organizational performance [8]. Effective information sharing and information transparency have proven to be beneficial means to improve the resilience of supply chains [9; 10; 11; 12; 13]. As such, the entire supply chain network must trust each other to share emergency information and take appropriate measures to quickly respond to unexpected supply chain disruption risks. In order to process supply chain data with other members, this type of infrastructure requires secure data sharing. However, because corporate data in the supply chain is highly confidential in its business activities, this type of data sharing may increase the risk of exposure and is usually a lucrative target for hackers. In particular, current systems of data sharing use a centralized architecture that requires centralized trust. Under such a circumstance, blockchain technology should be one of the best solutions for supply chain data privacy and security [14]. Blockchain for the supply chain is a powerful combination of two approaches designed for transactions with a shared ledge infrastructure suitable for various industries [15; 16; 17; 18; 19; 20; 21; 22]. The blockchain itself is an optimized system for decentralized databases, and there are no fixed center nodes in blockchain-based networks.