UCSF team develops early-warning system for preterm labor