In situ sensing and modeling of molecular events at the cellular level