Development of a health monitoring algorithm