A Knowledge-Based Environmental Protection System