Soft Sensors Based on Deep Neural Networks for Applications in Security and Safety