What in fact you are saying is that you cannot detect a loose connection. It's an impedance problem.
When the conection get loose the input pick's up voltage signals of high-impedance values (neighbouring signals, noise or supply voltages).
An ancient solution for this solution is tying this signal with a resitor to your analog ground (the ground signal of your analog inputs). The resistor-value will depend on the output impedance of your analog sources. You could start with 100K and see if your connected measured signal drops/rises.
Detecting loose connections is one of the reasons in industrial wiring one uses 4-20mA signals, where 0 mA means a broken wire.