CORE SYSTEM 5 OF 5

Environmental Monitoring

End-to-end mining operations governance for the Province

A comprehensive platform overseeing every facet of Zambales mining operations — from permit registry and live ANPR-based gate monitoring, to ore hauling with geofencing, environmental sensor surveillance, compliance inspections, FPIC for Indigenous Peoples, worker safety, and automated computation of LGU royalty and excise tax shares.

Permit Registry Live Gate ANPR Weighbridge Geofencing Environmental Sensors FPIC OSH Royalty Auto-Compute

System Overview

The Environmental Monitoring system unifies three operational domains — Operations (gate monitoring, hauling, vehicles), Compliance & Safety (environmental, inspections, OSH, workers), and Governance & Revenue (permits, FPIC, community, financial). All three are tied together by a common audit log, an LGU-aware multi-tenancy model, and 14 automated alert types that reach the right person at the right time.

⛏️

Operations

Live gate monitoring with license-plate recognition, IP camera feeds, weighbridge integration, vehicle logs, hauling-route tracking with geofencing, and ore shipment seals.

🛡️

Compliance & Safety

Environmental sensors with threshold alerts, water quality sampling, compliance inspections, violations, OSH committees, worker certification, daily headcount, and incident investigations.

⚖️

Governance & Revenue

Permit registry (MPSA, ECC, EPEP, SDMP), FPIC for Indigenous Peoples, community projects, royalty payments, performance bonds, excise tax, and LGU revenue share computation.

Module Capabilities

⛏️

Operations

Day-to-day gate, vehicle, and hauling oversight

Live Gate Monitor
Single-screen view of every gate: live IP camera feeds, recent vehicle log entries, weighbridge readings, and ANPR detections in real time
License Plate Recognition
Every plate captured at gates is matched against the registered vehicle list; unregistered plates trigger instant alerts
IP Camera Registry
Cameras assigned to gates with online/offline detection and automatic offline alerts
Weighbridge Integration
Each weighing event captured; tare/gross/net auto-computed; discrepancy detection vs. declared tonnage
Vehicle Registry
All trucks, haulers, and equipment registered to operators by type; categorization across 9 vehicle classes
Vehicle Log
Every In/Out event time-stamped with gate, weighbridge data, photo evidence, and driver info
Hauling Routes & Geofencing
Predefined truck routes from pit to port; route deviation triggers a geofence-breach alert
Ore Shipments & Seals
Tonnage by ore type and grade; tamper-evident seals tied to shipment ID; cross-checked with weighbridge totals
🛡️

Compliance & Safety

Environment, inspections, worker safety

Environmental Sensors
Continuous monitoring (water pH, TSS, heavy metals, dust PM10, noise); threshold-exceeded readings trigger automated alerts
Water Quality Sampling
Manual lab samples logged with metadata, photos, and sample IDs; lab results uploaded later and linked
Environmental Zones
Sensitive areas (rivers, watersheds, IP territories) demarcated; activities flagged when affecting these zones
Compliance Inspections
Inspector field visits with checklists; findings tagged per item; outcome logged (Compliant / Notice / Violation)
Violations & Suspensions
Notice of Violation issuance with citation; track operator response, resolution, or escalation to Cease-and-Desist
OSH Committee
Occupational Safety & Health committee membership, meetings, and resolutions per mining site
Safety Incidents
Field incidents logged by severity; investigation tracking; root-cause analysis attached
Workers & Certifications
Worker registry per site; safety / equipment-operator / first-aid certifications with expiry alerts
Daily Headcount
Per-site daily worker headcount captured; cross-referenced with shift logs for safety/payroll audit
Rehabilitation Plans
Mine rehabilitation plans with milestones; monthly activity logs; progressive land restoration tracking
⚖️

Governance & Revenue

Permits, community, financial

Permit Registry
MPSA, EP, ISAGP, Small-Scale Mining Permits — full lifecycle including application, issuance, renewal, expiry alerts
Document Management
Versioned document repository: MPSA, ECC, EPEP, SDMP, Annual Reports, Tax Clearance, MOAs — with approval workflow
FPIC (Indigenous Peoples)
Free, Prior & Informed Consent process tracking for IP communities; consent status, MOA, and benefit-sharing arrangements
Community Projects
SDMP-funded projects with budget allocation, milestones, beneficiary tracking; ties to BenefitDistribution
Community Complaints
Channel for affected communities to file concerns; routed to operator + LGU; resolution tracking
Stakeholder Meetings
Multi-party meetings (operator + LGU + community + IP); minutes, attendance, action items
Production Reports
Monthly / quarterly / annual production submitted to MGB & DENR in prescribed formats
Royalty & Performance Bond
Royalty payment tracking; performance bond compliance; overdue-payment alerts
Excise Tax & Revenue Share
Auto-computed excise tax; LGU revenue share split per Mining Act formula (Province / Municipality / Barangay)
Financial Reports
Audit-ready financial reports per operator and per period; exported in formats required by COA & BIR
🚨

14 Automated Alert Types

The system continuously evaluates operations and generates the following alerts in real time. Each alert type has a configurable severity, notification template, and recipient routing rule.

1. Unregistered Plate
2. Curfew Violation
3. Overweight Load
4. Suspicious Activity
5. Environmental Threshold
6. Permit Expiry
7. Certification Expiry
8. Geofence Breach
9. Hauling Route Deviation
10. Weather Warning
11. Safety Incident
12. Overdue Payment
13. Camera Offline
14. Weighbridge Discrepancy

Demo Accounts

Use these credentials in the staging environment to explore role-specific features.

All demo accounts share the same password: admin123

Role Username Email Access Scope
System Administratoradminadmin@miningmonitor.phFull system administration
LGU Administrator (Maria Santos)zambales.adminadmin@zambales.gov.phProvince of Zambales — LGU-scoped
Inspector — Sta. Cruz (Pedro Reyes)inspector.santacruzinspector.santacruz@zambales.gov.phField inspections, violations, environmental
Inspector — Masinloc (Carlos Villanueva)inspector.masinlocinspector.masinloc@zambales.gov.phField inspections, violations, environmental
Viewer (Ana Garcia)viewer1viewer@zambales.gov.phRead-only dashboards and reports
Note: Demo credentials are seeded by the database initializer. Production credentials are issued upon system handover.

Roles & Permissions Matrix

Capability SysAdmin LguAdmin Inspector Finance SiteMgr GateOp Viewer
Manage companies / permitsLGU
View Live Gate MonitorLGUsitegateview
Vehicle log entrysitegate
Field inspectionsLGU
Issue Notice of ViolationLGU
Environmental sensors / samplesLGUsiteview
Manage workers + certificationssite
FPIC managementLGU
Royalty / excise tax computation
Production reports submissionsite
Approve documentsLGUfinance docs
Manage users + audit logLGU users
Generate compliance reportsLGUfinanceview
Scope notation: ✓ = full access · LGU = scoped to assigned municipality · site = own mining site · gate = own gate · view = read-only

End-to-End Workflows

Master Workflow — Mining Operations Lifecycle

From operator registration through daily operations, environmental and safety oversight, and revenue collection.

flowchart TD A([New Mining Operator]) --> B[Register Company + Site] B --> C[Upload Permits
MPSA / EP / SSMP] C --> D[Upload Compliance Docs
ECC / EPEP / SDMP] D --> E[FPIC if IP Territory] E --> F[LGU Admin Reviews + Approves] F --> G([Active Operation]) G --> H[Daily: Live Gate Monitor] G --> I[Daily: Worker Headcount] G --> J[Continuous: Environmental Sensors] G --> K[Periodic: Compliance Inspections] H --> L[ANPR + Weighbridge Logs] L --> M[Ore Hauling Tracked w/ Geofencing] M --> N[Production Auto-Aggregated] K --> O{Findings} O -->|Compliant| P[Renewal Auto-Eligible] O -->|Violation| Q[NOV Issued] Q --> R[Operator Responds] R --> S{Resolved?} S -->|Yes| P S -->|No| T[Operation Suspension] N --> U[Royalty / Excise Auto-Computed] U --> V[LGU Revenue Share Generated] V --> W[Submitted to BIR / DBM] G --> X{Permit Expiring?} X -->|90 days out| Y[Auto-Reminder Alert] Y --> Z[Renewal Submitted] Z --> P style A fill:#E8EEF6,stroke:#1F4E79 style G fill:#D1FAE5,stroke:#065F46 style T fill:#FEE2E2,stroke:#991B1B style W fill:#D1FAE5,stroke:#065F46

Workflow A — Permit Registration & Document Management

LGU Admin registers a new mining operator with full document trail.

flowchart LR A[LGU Admin Login] --> B[Companies → New] B --> C[Capture Company Profile
TIN, Address, Contact] C --> D[Add Mining Site
Location, Boundary, Type] D --> E[Issue Site Login for Operator] E --> F[Operator Uploads Permits
MPSA / EP / SSMP] F --> G[Upload ECC + EPEP] G --> H[Upload SDMP + MOAs] H --> I{IP Territory?} I -->|Yes| J[Initiate FPIC Process] J --> K[Capture IP Council MOA] I -->|No| L[Skip FPIC] K --> M[Documents Routed for Approval] L --> M M --> N[LGU Admin / Inspector Review] N --> O{Decision} O -->|Approve| P[Operation Active] O -->|Return| Q[Comments to Operator] Q --> F style A fill:#E8EEF6 style P fill:#D1FAE5

Step-by-Step Procedure

1
LGU Admin opens Companies → New Company and captures profile.
2
Add mining site(s) under the company — boundary polygon (drawn on map), type, capacity.
3
Issue Site Manager and Gate Operator logins for the operator's personnel.
4
Operator uploads required documents: MPSA/EP, ECC, EPEP, SDMP, Tax Clearance, Business Permit, Financial Capability Proof, Mine Rehabilitation Plan, Ore Transport Permit.
5
FPIC handling: if the site overlaps an IP ancestral domain, an FPIC dossier is created — initial consent, MOAs, benefit-sharing, and ongoing community feedback.
6
Approval routing: documents marked "Requires Approval" route to LGU Admin or Inspector based on category.
7
Activate: once all required documents are approved, the site status becomes Active.

Workflow B — Live Gate Monitoring (ANPR + Camera + Weighbridge)

Each truck entering or leaving a mining gate is captured automatically.

flowchart TD A[Truck Approaches Gate] --> B[IP Camera Captures Plate] B --> C[ANPR Engine Reads Plate Number] C --> D[Match Against Vehicle Registry] D --> E{Registered?} E -->|No| F[🚨 Alert: Unregistered Plate] F --> G[Gate Operator Notified] E -->|Yes| H[Time Window Check] H --> I{Curfew?} I -->|Yes| J[🚨 Alert: Curfew Violation] I -->|No| K[Truck Proceeds to Weighbridge] K --> L[Weighbridge Captures Weight] L --> M{Overweight?} M -->|Yes| N[🚨 Alert: Overweight Load] M -->|No| O[Vehicle Log Created
In/Out + Time + Weight + Photo] O --> P{Discrepancy
vs Declared?} P -->|Yes| Q[🚨 Alert: Weighbridge Discrepancy] P -->|No| R[Approved] F --> S[Live Gate Monitor Updates] J --> S N --> S Q --> S R --> S style A fill:#E8EEF6 style F fill:#FEE2E2 style J fill:#FEE2E2 style N fill:#FEE2E2 style Q fill:#FEE2E2 style R fill:#D1FAE5

Workflow C — Ore Hauling with Geofencing

Truck leaves mining site for the port; route compliance monitored throughout.

flowchart LR A[Ore Loaded at Pit] --> B[Weighbridge Out + Shipment Seal] B --> C[Hauling Record Created] C --> D[GPS Tracking Begins] D --> E[Route Compared to Approved Hauling Route] E --> F{Within Geofence?} F -->|Yes| G[Continue Tracking] F -->|No| H[🚨 Alert: Route Deviation] H --> I[LGU + Operator Notified] G --> J[Arrival at Destination] H --> J J --> K[Destination Weighbridge Check] K --> L{Weight Matches?} L -->|Yes| M[Shipment Seal Verified] L -->|No| N[🚨 Discrepancy Investigation] M --> O[Shipment Closed] N --> O O --> P[Production Records Updated] style A fill:#E8EEF6 style H fill:#FEE2E2 style N fill:#FEE2E2 style P fill:#D1FAE5

Workflow D — Environmental Monitoring & Threshold Alerts

Continuous sensor data triggers alerts when DENR thresholds are exceeded.

flowchart TD A[Environmental Sensors Deployed
Water · Air · Noise · Dust] --> B[Continuous Readings Every 5 min] B --> C[Compare vs Configured Thresholds] C --> D{Within Limits?} D -->|Yes| E[Log Reading] D -->|No| F[🚨 Alert: Environmental Threshold] F --> G[Notify Site Manager + LGU + Inspector] G --> H[Inspector Visits Site] H --> I[Manual Water Quality Sample] I --> J[Lab Analysis] J --> K{Confirmed Exceedance?} K -->|Yes| L[Issue NOV + Cease Affected Operation] K -->|No| M[Record Sensor False Alarm] L --> N[Operator Submits Remediation Plan] N --> O[Approved + Tracked to Closure] M --> P[Calibrate Sensor] style A fill:#E8EEF6 style F fill:#FEE2E2 style L fill:#FEE2E2 style O fill:#D1FAE5

Workflow E — Compliance Inspection & Violation Issuance

Inspector conducts a scheduled compliance visit, escalates findings if needed.

flowchart LR A[Inspector Login] --> B[Open Schedule] B --> C[Site Profile Loaded] C --> D[Multi-Domain Checklist
Permits · Safety · Environment · Workers · Financial] D --> E[Field Capture: Photos + GPS + Notes] E --> F[Tag Each Item:
✓ Compliant · ⚠ Notice · ✕ Violation] F --> G{Overall Status} G -->|All Compliant| H[Issue Compliance Certificate] G -->|Minor| I[Issue Notice + Deadline] G -->|Major| J[Issue NOV with Citation] J --> K[Operator Receives via App + Email] K --> L[Submits Action Plan] L --> M[Inspector Verifies Resolution] M --> N{Acceptable?} N -->|Yes| H N -->|No| O[Escalate: Penalty / Suspension] style A fill:#E8EEF6 style H fill:#D1FAE5 style J fill:#FEE2E2 style O fill:#FEE2E2

Workflow F — Royalty & LGU Revenue Share Computation

End-of-period: production aggregated, taxes computed, revenue split per Mining Act formula.

flowchart TD A[Month-End Trigger] --> B[System Aggregates Production
per Operator + Ore Type] B --> C[Cross-Check vs Hauling Records] C --> D[Cross-Check vs Weighbridge Records] D --> E{Reconciled?} E -->|No| F[Flag Discrepancy for Investigation] E -->|Yes| G[Apply Excise Tax Rate per Ore Type] G --> H[Compute Royalty Due] H --> I[Apply LGU Share Formula
Province / Municipality / Barangay] I --> J[Finance Officer Reviews] J --> K{Approve} K -->|Yes| L[Generate Statement] L --> M[Submit to BIR / DBM] M --> N[Reconcile vs Actual Remittance] N --> O{Match?} O -->|Yes| P([Period Closed]) O -->|No| Q[Flag Shortfall + Notify] F --> J style A fill:#E8EEF6 style P fill:#D1FAE5 style Q fill:#FEE2E2

Workflow G — FPIC & Community Engagement

Free, Prior & Informed Consent process for Indigenous Peoples territory.

flowchart LR A[Operator Applies for IP Site] --> B[NCIP Coordination] B --> C[FPIC Dossier Created] C --> D[Initial Consultation Meeting] D --> E[Stakeholder Meeting Logged
Attendance + Minutes + Photos] E --> F[Community Decision Period] F --> G{Consent Granted?} G -->|No| H[Site Application Halted] G -->|Yes| I[Memorandum of Agreement Signed] I --> J[Benefit Distribution Plan] J --> K[SDMP Activities Funded] K --> L[Community Projects Tracked] L --> M[Ongoing Stakeholder Meetings] M --> N[Community Complaints Channel] N --> O{Complaints?} O -->|Yes| P[Investigate + Resolve] O -->|No| Q[Annual FPIC Compliance Review] P --> Q Q --> R{Continue?} R -->|Yes| M R -->|No| S[Consent Withdrawal Process] style A fill:#E8EEF6 style I fill:#D1FAE5 style H fill:#FEE2E2 style S fill:#FEE2E2

Use Case Scenarios

SCENARIO 1

Unregistered Plate at Gate

A truck attempts to leave a mining site with an unrecognized license plate.

  1. IP camera captures plate as truck approaches gate
  2. ANPR engine reads "ZAM-1234"
  3. System checks vehicle registry — no match
  4. Alert "Unregistered Plate" fires within 2 seconds
  5. Gate operator notified on Live Gate Monitor
  6. Truck held for verification
  7. Either registered on the spot or turned away with documentation
  8. Event logged with full photo + plate evidence for audit
SCENARIO 2

Geofence Breach During Hauling

Hauling truck deviates from the approved route between pit and port.

  1. Hauling record created at pit weighbridge
  2. GPS tracker on truck broadcasts position
  3. Truck deviates from approved route by > 500m
  4. Alert "Hauling Route Deviation" fires
  5. LGU + operator + inspector notified instantly
  6. Truck contacted; either resumes route or investigated
  7. Suspected diversion → field response dispatched
  8. Full audit trail preserved for legal action
SCENARIO 3

Environmental Threshold Exceeded

Water quality sensor near a river reads TSS levels 3x the DENR threshold.

  1. Sensor logs reading at 5-minute interval
  2. System detects threshold exceedance
  3. Alert fires to site manager, LGU, and inspector
  4. Inspector dispatched within 24 hours
  5. Manual water sample taken; sent to lab
  6. Lab confirms exceedance
  7. NOV issued with cease-affected-operation order
  8. Operator submits remediation plan
  9. Plan tracked to closure; sensor restored
SCENARIO 4

Permit Expiry Reminder

An MPSA permit is approaching expiry; renewal must be filed.

  1. System scans permits daily
  2. Permit expires in 90 days → first reminder sent
  3. Subsequent reminders at 60 / 30 / 14 / 7 days
  4. Operator submits renewal application
  5. LGU Admin reviews + approves
  6. Permit dates updated; old version archived
  7. Operations continue uninterrupted
SCENARIO 5

Weighbridge Discrepancy

Operator's declared monthly tonnage is 12% lower than weighbridge records show.

  1. Month-end aggregation runs
  2. System compares declared tonnage vs. weighbridge
  3. Discrepancy > 5% triggers Weighbridge Discrepancy alert
  4. Inspector dispatched; cross-references gate logs and shipment seals
  5. Confirms under-reporting
  6. NOV issued; penalty computed on under-declared volume
  7. Operator submits revised production report
  8. Royalty / excise tax recomputed; back-payment scheduled
SCENARIO 6

FPIC Compliance for IP Site

A new mining site overlaps an Indigenous Peoples ancestral domain.

  1. System detects boundary overlap with IP territory
  2. FPIC dossier auto-created
  3. NCIP coordination logged
  4. Stakeholder meetings held; minutes uploaded
  5. Community decision: consent granted
  6. MOA signed; benefit distribution plan attached
  7. SDMP-funded community projects tracked
  8. Annual FPIC compliance review with stakeholder feedback
SCENARIO 7

Worker Certification Expiry

Heavy-equipment operator's safety certification expires next week.

  1. System checks worker certifications daily
  2. Certification expires in 7 days → alert fires
  3. Site manager notified; worker scheduled for re-certification
  4. If not renewed by expiry, worker access flagged
  5. Daily headcount log auto-flags if uncertified worker present
  6. Re-certification logged; worker reactivated
SCENARIO 8

Public Transparency Portal

Province publishes monthly mining production for public review.

  1. Admin enables monthly public dashboard
  2. Aggregated tonnage per operator published
  3. Compliance status displayed (green / yellow / red)
  4. LGU revenue collected per municipality shown
  5. Active environmental incidents listed
  6. Citizens can submit feedback via DRMM SOS Citizen App

System Outputs

DASHBOARD
Live Gate Monitor
Real-time camera feed + ANPR + weighbridge
DASHBOARD
Production Dashboard
Live tonnage by operator and month
REPORT
DENR / MGB Submission
Production + environmental reports in prescribed formats
REPORT
Excise Tax / BIR Report
Tax computation by period
FINANCE
LGU Revenue Statement
Province / Municipality / Barangay split
COMPLIANCE
Inspection Reports
Field inspection results with media
FPIC
IP Compliance Dossier
FPIC, MOA, benefit distribution, complaints
PUBLIC
Transparency Portal
Citizen-facing aggregated data
AUDIT
Full Audit Log
Every action timestamped for COA
DASHBOARD
Environmental Heatmap
Sensor readings on map with thresholds
REGISTRY
Worker & Cert List
Active workers + certification expiry
EXPORT
SDMP Activity Report
Community projects + benefit distribution

Frequently Asked Questions

Does Environmental Monitoring replace MGB or DENR systems?

No. It complements them. The system captures Province-level operational data and produces reports in formats compatible with MGB / DENR submissions. Key data fields align with national reporting requirements.

How does the ANPR (license plate recognition) work?

IP cameras at gates capture every passing plate. The recognition engine reads the plate number and matches it against the registered vehicle database in real time. Unrecognized plates trigger an instant alert to the gate operator.

Can it integrate with existing weighbridge equipment?

Yes. The system supports both direct integration with electronic weighbridges via standard data feeds, and manual ticket entry / photo upload for older equipment. Discrepancies between declared and weighed tonnage are flagged automatically.

How does geofencing detect route deviations?

Each approved hauling route has a polygon "corridor" defined on the map. GPS-tracked trucks transmit position; if a truck strays beyond the corridor by more than the configured tolerance, an alert fires immediately to the operator and LGU.

What environmental sensors are supported?

Standard water quality sensors (pH, TSS, heavy metals, conductivity), air quality (PM10, PM2.5, dust), noise meters, and weather stations. The system accepts data feeds in common protocols and runs threshold checks against configurable DENR-aligned limits.

How is FPIC handled for IP territories?

When a mining site boundary overlaps an Indigenous Peoples ancestral domain, an FPIC dossier is automatically created. The dossier tracks NCIP coordination, stakeholder meetings, consent decisions, MOAs, benefit-sharing plans, and ongoing community feedback. Without an active FPIC consent, operations cannot be activated.

Does the system handle different mineral types?

Yes. Nickel, chromite, sand & gravel, limestone, and other mineral classifications are supported, each with their own tax rates and reporting requirements. Configuration is done by the System Administrator.

How is data integrity ensured against operator under-reporting?

Multiple cross-checks: weighbridge records vs. declared tonnage, gate logs vs. shipment seals, GPS tracking vs. approved hauling routes, and historical pattern analysis. Discrepancies above configured thresholds trigger automated investigation alerts.

Is Two-Factor Authentication required?

2FA is supported per user and required for System Administrator, Inspector, and Finance Officer roles by default. Other roles can enable 2FA voluntarily. Configurable per organization policy.

How does the audit log work?

Every create, update, delete, approval, and rejection action is captured in the audit log with timestamp, user, IP address, and a before/after diff of changes. The log is immutable and exportable for COA review.

How does it integrate with the other 4 systems?

Permits, sites, and incidents plot on GIS; environmental complaints from DRMM SOS auto-route here; LGU inspectors and operators are managed via HRIS; and inspection vehicles dispatch through Fleet Management.