Visible to the public Data-Driven Modeling and Preview-Based Control for Cyber-Physical System Safety