An Approach to Intelligent Pneumonia Detection and Integration