Architecture Document
Architecture Document
(The student team can select one of the following architectures for their project and they
should provide a detailed explanation: Microservices, Event-Driven Architecture,
Serverless, or Monolithic architectures. Additionally, they should create relevant
diagrams, such as use case, class, DFD, component, sequence, and deployment
diagrams, to support their project.)
1. Application
1.1 Microservices
● The project can adopt a microservices
architecture to decouple components like:
o Image Preprocessing Service:
Handles normalization and prepares
raw input images for augmentation.
o Model Inference Service: Deploys
CNN or Transformer networks for
feature extraction and classification.
o User Interface Service: Provides
tailored interfaces for farmers,
consultants, and admins for results,
trends, and system configurations
1.2 Event-Driven
● Implement an event-driven approach to improve scalability:
o Trigger events upon user actions, such as uploading images, initiating model
predictions, or saving results.
1.3 Serverless
● Use serverless platforms like AWS Lambda, Azure Functions, or Google Cloud
Functions for:
o On-demand image processing and classification to reduce operational costs.
o Scalable handling of user requests with automatic resource provisioning.
2. Database
2.1 ER Diagram
Entities:
1. USER
● Track who uploads samples
● Contains: user ID, username, role
2. SAMPLE
● Environmental sample details
● Includes: sample ID, type, location, image
3. ANALYSIS
● Sample analysis results
● Contains: contamination level, detection details
4. MICROPLASTIC_DETECTION
● Specific microplastic findings
● Includes: plastic type, concentration, risk level
5. MODEL
● Machine learning model metadata
● Contains: model name, architecture, accuracy
Key Relationships: