ABSTRACT
In our daily life we use electricity for different purposes, but we know most of people are waste the electricity. This system will be used to save electricity in efficient way in most of schools and agencies where so many people are doing study or work , but some of them leave their class or office without switching off lights and fans , from this we got idea to make a project that automatically switched off lights and fans when no one in class/office .
we can say , this is a small part of home automation system. Rooms live streaming video converted in frame to detect person then raspberry pi generate signals to operate the equipment. And status of equipments will be display in web portal.This system will save electricity in efficient way.
ACKNOWLEDGEMENT
The success of any task relies on the efforts made by a person, but it cannot be achieved without the cooperation of other persons who are being helpful.
So, we would like to thank Government Engineering Collage, Modasa and Computer Engineering for giving us the opportunity of doing this project.
The entire session of our phase I completion was a great experience providing us with the insight & invocation into learning various software engineering concepts & benefits of teamwork. I would like to take this opportunity to express our sincere thanks to all those people without whose support and cooperation, it would have been difficult to complete this project. Primarily, I am very much thankful to our project guide Dr.
Mahesh Goyani for his leading guidance and sincere efforts throughout project work. He took a deep interest in simplifying the difficulties. Also, he has been a consistent source of inspiration for me.
Chapter 1
Introduction
Project Summary
Smart Equipment Monitoring is a thought which save electricity in efficient way.Equipment like switches of lights and fans.Equipment monitoring will be monitor the condition of switches is on or off . This project is best for a classrooms or room where CCTv already installed.By that we make a system that will be detect the person in room (To detect the person in room we will use deep learning Object detection Algorithms which will detect the person) from live streaming video (To detect person from video we will use Image Processing library Like OpenCV and many more).If no one detected in room the on lights and fans will be aumatically switched off(We will use raspberry pi to control the switches of lights and fans).Python language will be used throught this project.
Chapter 2. Requirement Study
Technology and Literature Review
Within the technology, we are using Python , MySQL , Image Processing and Deep Learning as Backend. For the frontend, we are using HTML5, CSS3, Bootstrap, JavaScript.
Front-end:
Hypertext Markup Language:
HTML stands for “Hypertext Markup Language.” HTML is the language used to create webpages. “Hypertext” refers to the hyperlinks that an HTML page may contain. “Markup language” refers to the way tags are used to define the page layout and elements within the page. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.
CSS:
CSS stands for Cascading Style Sheets is a simple design language intended to simplify the process of making web pages presentable. CSS handles the look and feel part of a web page. Using CSS, we can control the color of the text, the style of fonts, the spacing between paragraphs, resized columns, what background images or colors are used, layout designs,variations in display for different devices and screen sizes as well as a variety of other effects.
Bootstrap:
Bootstrap is a free and open-source front-end framework for designing websites and web applications Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites.
Bootstrap 4 is the newest version of Bootstrap.It contains CSS-and (optionally) JavaScript-based design templates for typography,forms,buttons,navigation and other interface components.
JavaScript:
JavaScript often abbreviated as JS, is a high-level, interpreted programming language. JavaScript is the Programming Language for the Web.It can update and change both HTML and CSS and can calculate, manipulate and validate data.JavaScript provide interaction between user and web page or website.
Back-end:
Python:
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse.
MySQL:
MySQL is a freely available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). SQL is the most popular language for adding, accessing and managing content in a database. It is most noted for its quick processing, proven reliability, ease and flexibility of use. MySQL is an essential part of almost every open source PHP application. Good examples for PHP & MySQL-based scripts are WordPress, Joomla, Magento and Drupal.
Image Processing:
Image processing is a method to perform some operations on an image, in order to get an enhanced image or to extract some useful information from it. It is a type of signal processing in which input is an image and output may be image or characteristics/features associated with that image. Nowadays, image processing is among rapidly growing technologies. It forms core research area within engineering and computer science disciplines too.
Deep Learning:
Deep learning is an artificial intelligence function that imitates the workings of the human brain in processing data and creating patterns for use in decision making. Deep learning is a subset of machine learning in artificial intelligence (AI) that has networks capable of learning unsupervised from data that is unstructured or unlabeled. Also known as deep neural learning or deep neural network.
Project Planning
Software Development Process Model:
Spiral Model A Combination of Iterative and Waterfall Models:
Spiral model is a combination of Iterative and waterfall model. This model is best used for large projects which involves continuous enhancements. There are specific activities which are done in one iteration (spiral) where the output is a small prototype of the large software. The same activities are then repeated for all the spirals till the entire software is build.
To explain in simpler terms, the steps involved in spiral model are:
Figure 2.1.Simple steps of spiral model
For large and medium-risk projects, a spiral model can be employed to projects which demand frequent releases. Best suited to projects which have vague or complex specifications, this model helps developers make changes to the code at any point of time.
Figure 2.2 Spiral Model
The Spiral Model has 4 stages are described below:
- Planning: This stage contain estimates of cost, resources and schedules that would be iterative in nature. Planning also involves the overall understanding of the system requirements between you as a system analyst and your client.
- Risk Analysis: The second phase focuses on identifying potential threats through the formulation of a risk mitigation strategy is planned and finalized.
- Software Engineering: The third stage concerns testing, coding and deploying software at the client’s site.
- Evaluation: Client/Customers evaluates software and provide their feedback and approval.
Advantages of the Spiral model:
- The high amount of risk analysis hence, avoidance of Risk is enhanced.
- Good for large and mission-critical projects.
- Strong approval and documentation control.
- Additional Functionality can be added at a later date.
- Software is produced early in the software life cycle.
Disadvantages of Spiral model:
- It can be a costly model to use.
- Risk analysis requires highly specific expertise.
- The project’s success is highly dependent on the risk analysis phase.
- It doesn’t work well for smaller projects.
2.2 Why Select Particular Process Model? Match with Your project
- Criteria for Selecting Software Process Models:
- When costs and risk evaluation is important
- For medium to high-risk projects
- Long-term project commitment unwise because of potential changes to economic priorities
- Users are unsure of their needs
- Requirements are complex
- New product line
- Significant changes are expected (research and exploration)
System Requirement Study
User Characteristics
There are two groups of users using the system:
Admin:
Admin manage the user and provide system to the user.Admin can send the notification to user anytime and admin also send monthly report to the users.
User:
User have to install our hardware system to automatically switched off lights and fans when no one detects in rooms.User will get monthly report for their room’s equipments.
Hardware Requirement (Client-Side)
- Processor: Any Device with Internet Connection and browser.
- Raspberry pi 3: To Handle switches of lights and fans.
- Camera: detect person from live video.?
Software Requirement (Server-Side)
- Operating system: Windows 10
- Browser: Chrome / Safari /Mozilla Firefox / Internal Explorer, etc.
- Front End: HTML5, CSS3, Bootstrap, JavaScript, jQuery.
- Framework:?Flask
- IDLE: PyCharm
- Back End: Python , MySQL , Image Processing
Chapter 3. Design
Study of Current System
Home Automation System is too costly for educational institute like school and collge and some offices to handle only switches of fans switches of fans and lights which has already cctv camera installed rooms.when students and employee leave their rooms without switched off lights and fans then institute or office will have to pay more electricity bill.
Problem & Weakness of Current System
- Current Systems are too costly
- Electricity bill increase.
- Waste of electricity.
Requirement of New System
As discuss before that Home automation system is too costly for that institute which hase already cctv camrera installed rooms.Why they purchase more on a system like home automation system to save electricity and if they hire a puen for switching off lights and fans after students and employee left their place then it will be costly . and If they use sensor for this task it will be also costly then We will develop a system used for only cctv installed room so , user have to pay for our product that will be purchase in less amount of money.
Feasibility Study
The feasibility study is an important step in any software development process. This is because it makes an analysis of different aspects like cost required for developing and executing the system, the time required for each phase of the system and so on.
The preliminary investigation examines project feasibility, the likelihood the system will be useful to the organization. The main objective of the feasibility study is to test the Technical, Operational and Economical feasibility for adding new modules and debugging old running systems. All system is feasible if they are unlimited resources and infinite time. There are aspects in the feasibility study portion of the preliminary investigation:
- Technical Feasibility
- Operation Feasibility
- Economic Feasibility
Technical Feasibility
The technical issue usually raised during the feasibility stage of the investigation includes the following:
- Necessary technology like python , deep learning , image processing already exist.
- Necessary hardware componets like camera , raspberry pi3 also exist.
- There are technical guarantees of accuracy, reliability, ease of access and data security.
perational Feasibility
Proposed projects are beneficial only if they can be turned out into an information system. That will meet the organization’s operating requirements. Operational feasibility aspects of the project are to be taken as an important part of the project implementation. Some of the important issues raised are to test the operational feasibility of a project includes the following:
- There is sufficient support for the users.
- The system will be used and work properly if it is being developed and implemented.
- The system will detect the person in rooms from live streaming video.
- If no one detected in video and which lights and fans are on that will automatically switched off.
Economic Feasibility
A system can be developed technically and that will be used if installed must still be a good investment for the organization. In the economic feasibility, the development cost in creating the system is evaluated against the ultimate benefit derived from the new systems.
- The system will be available in low cost then definitely increase demand for this system.
- Some company can expand this system for many equipments for business.
- In future , It may have high potential for marketing.
Chapter 4. Diagrams
Use case diagram Use case diagrams model the functionality of a system using actors and use cases. Use cases are a set of actions, services, and functions that the system needs to perform. In this context, a “system” is something being developed or operated, such as a web site. The “actors” are people orentities operating under defined roles within the system.
Fig 4.1 Use Case of Smart Equipment Monitoring
4.2 Activity Diagram An activity diagram visually presents a series of actions or flow of control in a system similar to a flowchart or a data flow diagram. Activity diagrams are often used in business process modeling. They can also describe the steps in a use case diagram. Activities modeled can be sequential and concurrent. In both cases an activity diagram will have an initial state and an ea final state.
Admin Activity Diagram
Admin activity diagram contain the functions of the admin.
Fig 4.2 Activity Diagram for Smart Equipment Monitorig
User Activity Diagram
User Activity diagram contain functions of user.
Fig 4.3 Activity Diagram for Smart Equipment Monitorig
Data Flow Diagram
A data flow diagram (DFD) illustrates how data is processed by a system in terms of inputs and outputs. As its name indicates its focus is on the flow of information, where data comes from, where it goes and how it gets stored.
- DFD Level 0
- DFD level 0 only contains one process node that generalizes the function of the entire system in relationship to external entities.
- Fig 4.4 DFD Level 0
- DFD Level 1 :Admin
- DFD level 1 for Admin that shows the main processes of the admin within the system .
- Fig 4.5 DFD Level 1:Admin
- DFD Level 1 :User
- DFD level 1 for User that shows the main processes of the user within the system .
- Fig 4.6 DFD Level 1:User 1
- DFD Level 2 :Admin
- DFD level 2 for Admin show more detailed of any one processes of admin than a DFD level 1 contains.
- Fig 4.7 DFD Level 2:Admin
- DFD Level 2 :User
- DFD level 2 for User show more detailed of any one processes of user than a DFD level 1 contains.
- Fig 4.8 DFD Level 2:User
- Design Engineering Canvas
Empathy mapping canvas
The empathy map is a great powerful tool that helps putting yourself inside the head of a person you might be looking at as a prospective customer or product user.
Fig 4.9 Empathy Canvas
AEIOU Canvas
AEIOU is a heuristic to help interpret observations gathered by ethnographic practice in the industry. Its two primary functions are to code data, and to develop building blocks of models that will ultimately address the objectives and issues of a client.
Fig 4.10 AEIOU Canvas
Ideation Canvas
Within the Ideation phase, we select a test case where we have to think possible problem occurring situation and solution for problem faced by the people in the selected test case are considered further.
Fig 4.11 Ideation Canvas
Product development Canvas
The purpose of this service is to design and implement a good and efficient service.
Fig 4.12 Product Development Canvas
Chapter 5. Conclusion
After the idea is implemented it will be easier to to save electricity in efficient way .This project now only for automatically switched off for fans and lights but in future it has large scope.
Future scope
- Maybe this will be highly used in future. In future , may have high potential for marketing.
- This system will be handle the request to control equipment by mobile applications.
- This system will capable to handle more equipments.
- And also possible that switches of lights and fans are control by alexa via voice command.
References
- [1] Redmon, Joseph, “You only look once: Unified, real-time object detection.” Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2016.
- [2] K. Kang, H. Li, T. Xiao, W. Ouyang, J. Yan, X. Liu, and X. Wang, “Object detection in videos with tubelet proposal networks,” in CVPR, 2017.
- [3] N. Dalal and B. Triggs, Histograms of oriented gradients for human detection. In (CVPR), 2005, pages 886-893.
- [4] Carmelo Bastos-Filho and Rodrigo F. S. C. Oliveira, “Human detection in digital videos using motion features extractors”, IEEE Latin American Conference on Computational Intelligence, vol. 10, 2016