The series of events in which information about the density of cells in a population is received by direct cell-cell contact and is converted into a molecular signal, resulting in the cessation of cell growth or proliferation.