On the introduced scientific article, was considered SLAM method which will combined with convolutional neural network for hostage detecting. We also take into account the optimal solution with minimal costs. Our solutions are directly applicable in different cases to detect humans and build the map of area.