pengy-ai

Personalized Education and Guidance for Your indoor fire safety

https://github.com/gdsc-cau/pengy-ai

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Personalized Education and Guidance for Your indoor fire safety

Basic Info
  • Host: GitHub
  • Owner: GDSC-CAU
  • License: agpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 2.04 MB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • Open Issues: 12
  • Releases: 0
Created about 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Contributing License Citation

README.md

PENGY

UN's Sustainable Development

Goal 11. Sustainable Cities and Communities

Problem

  1. Not Paying Attention to Fire Risks: A lot of people dont realize how everyday actions and oversights can lead to serious fire hazards. Things like plugging too many devices into one outlet, not storing things safely, or forgetting to check if fire safety gear works properly are common mistakes. Many think, "A fire wont happen to me," and end up ignoring basic safety steps.

  2. Radio-like one-way education: The current approach to fire safety education often delivers information that is not directly applicable to the specific environments in which we live or work. This lack of personalized and relevant content makes it difficult for individuals to truly grasp the importance of fire safety or to envision how to implement these practices in their daily lives. To address this issue, there's a pressing need to shift from a one-size-fits-all method of instruction to a more interactive and engaging educational model.

  3. Not Looking for Information on Fire Safety: People generally dont make an effort to learn fire safety knowledge by their own will. Since many think a fire is unlikely to happen to them, they dont see the point in spending time on this topic. Even when helpful tips and information are easy to find, they're often ignored. This attitude stops important safety information from getting to the people who need it most and makes them less prepared for fire risks around them.

Solution

Our Solution addresses the issue of underestimating fire risks due to a lack of fire safety awareness and preparedness. By transforming the perception of fire from a distant to a daily concern, we aim to heighten awareness of fire hazards and provide knowledge for appropriate responses.

Key features:

  1. Management of Fire Hazards in Personal Spaces

  2. Fire Safety Education through diverse content including news, YouTube videos, fire prevention tips, and academic theses.

  3. Content Generation: These contents are semi-automatically generated through crawling and open-source APIs.

  4. Customized Advice: Tailored advice for fire management specific to different spaces, generated by Gemini Vision Pro.

  5. VertexAI with Grounding: Added for verifying response reliability.

  6. Temperature-Based Risk Assessment: Spaces' risk levels are now measurable via thermometers, reflected differently on Google Maps for easy visualization.

  7. Daily Fire Safety Tips: Using google batch, delivered via push notifications (Firebase Cloud Messaging) tailored to user's registered spaces.

  8. Fire Safety Quizzes: To test and improve knowledge, with enhanced UX during waiting time for Gemini's response.

  9. Safety Checklist per space.

  10. Real-time Object Detection for Fire Risk Assessment: YOLO v8 ML model trained on top 7 fire hazard categories for personalized recommendations, integrated with camera feed for real-time detection and suggestion of fire risk objects.

How to run

[Front-End] Click to download a releaed apk. To install this, you need to able downloading an app from unknown sources.

or

using flutter 1. Clone this project bash git clone https://github.com/GDSC-CAU/Pengy-FE.git 2. Set .env in root project bash MAP_KEY=*Put your Google Maps API KEY* 3. Set local.properties in root project/android/local.properties bash MAP_KEY=*Put your Google Maps API KEY* 4. Run with Android Studio

[Back-End] click to redirect to Back-End repository. 1. Clone this project bash git clone https://github.com/GDSC-CAU/Pengy-BE.git 2. Create a Python virtual environmen bash python -m venv venv ./venv/scripts/activate 3. Install dependencies and start the server. bash pip install -r requirements.txt python manage.py runserver

[AI] click to redirect to AI repository. 1. Clone this project bash git clone https://github.com/GDSC-CAU/Pengy-AI.git 2. Create a Python virtual environmen bash python -m venv venv ./venv/scripts/activate 3. Install dependencies bash pip install -r requirements.txt 4. if you wanna train your model, refer to jupyter bash cd jupyter 5. for object detection with webcam bash python detect.py your.model 6. export your model to tflite bash python export.py your.model tflite

System Architecture

Used open source

  • yolo v8: https://github.com/ultralytics/ultralytics
  • scholarly: https://github.com/scholarly-python-package/scholarly

Google Products

  • Flutter
  • Firebase
  • TensorFlow Lite
  • Google Cloud Platform
  • Google Maps API
  • Google Login API
  • YouTube API
  • Gemini API
  • Vertex AI

Screens

| MainPage | | :------------: | ||

| BeforeCamera | Loading Analysis Result | Space Analysis Result | | :------------: | :------------: | :------------: | || ||

| Space Check List | Fire Hazard Info | Space Analysis Result | | :------------: | :------------: | :------------: | | | | |

Team

|Janghyeon Park (Leader)|Sunbin Do|Byeori Moon|Junhyung Park| |:---:|:---:|:---:|:---:| |Back-End/AI| AI/Back-End|Front-End/Design|Front-End/AI| |park-janghyeon|typingmistake|byeori-moon|DogJHDOG|

Owner

  • Name: Google Developer Student Clubs | CAU
  • Login: GDSC-CAU
  • Kind: organization
  • Email: gdsc.cau@gmail.com
  • Location: Korea, South

Google Developer Student Clubs CAU is a community group for Chung Ang University students interested in Google developer technologies.

Citation (CITATION.cff)

cff-version: 1.2.0
preferred-citation:
  type: software
  message: If you use this software, please cite it as below.
  authors:
  - family-names: Jocher
    given-names: Glenn
    orcid: "https://orcid.org/0000-0001-5950-6979"
  - family-names: Chaurasia
    given-names: Ayush
    orcid: "https://orcid.org/0000-0002-7603-6750"
  - family-names: Qiu
    given-names: Jing
    orcid: "https://orcid.org/0000-0003-3783-7069"
  title: "Ultralytics YOLO"
  version: 8.0.0
  # doi: 10.5281/zenodo.3908559  # TODO
  date-released: 2023-1-10
  license: AGPL-3.0
  url: "https://github.com/ultralytics/ultralytics"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/ci.yaml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • codecov/codecov-action v4 composite
  • conda-incubator/setup-miniconda v3 composite
  • slackapi/slack-github-action v1.25.0 composite
.github/workflows/cla.yml actions
  • contributor-assistant/github-action v2.3.1 composite
.github/workflows/codeql.yaml actions
  • actions/checkout v4 composite
  • github/codeql-action/analyze v3 composite
  • github/codeql-action/init v3 composite
.github/workflows/docker.yaml actions
  • actions/checkout v4 composite
  • docker/login-action v3 composite
  • docker/setup-buildx-action v3 composite
  • docker/setup-qemu-action v3 composite
  • nick-invision/retry v3 composite
  • slackapi/slack-github-action v1.25.0 composite
.github/workflows/format.yml actions
  • ultralytics/actions main composite
.github/workflows/greetings.yml actions
  • actions/first-interaction v1 composite
.github/workflows/links.yml actions
  • actions/checkout v4 composite
  • nick-invision/retry v3 composite
.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • slackapi/slack-github-action v1.25.0 composite
.github/workflows/stale.yml actions
  • actions/stale v9 composite
examples/YOLOv8-ONNXRuntime-Rust/Cargo.toml cargo
docker/Dockerfile docker
  • pytorch/pytorch 2.2.0-cuda12.1-cudnn8-runtime build
pyproject.toml pypi
  • matplotlib >=3.3.0
  • opencv-python >=4.6.0
  • pandas >=1.1.4
  • pillow >=7.1.2
  • psutil *
  • py-cpuinfo *
  • pyyaml >=5.3.1
  • requests >=2.23.0
  • scipy >=1.4.1
  • seaborn >=0.11.0
  • thop >=0.1.1
  • torch >=1.8.0
  • torchvision >=0.9.0
  • tqdm >=4.64.0
requirements.txt pypi
  • Jinja2 ==3.1.3
  • Markdown ==3.5.2
  • MarkupSafe ==2.1.5
  • PyYAML ==6.0.1
  • Pygments ==2.17.2
  • Werkzeug ==3.0.1
  • absl-py ==2.1.0
  • astunparse ==1.6.3
  • cachetools ==5.3.2
  • certifi ==2024.2.2
  • charset-normalizer ==3.3.2
  • colorama ==0.4.6
  • coloredlogs ==15.0.1
  • contourpy ==1.2.0
  • cycler ==0.12.1
  • filelock ==3.13.1
  • flatbuffers ==23.5.26
  • fonttools ==4.49.0
  • fsspec ==2024.2.0
  • gast ==0.5.4
  • google-auth ==2.28.0
  • google-auth-oauthlib ==1.2.0
  • google-pasta ==0.2.0
  • grpcio ==1.60.1
  • h5py ==3.10.0
  • humanfriendly ==10.0
  • idna ==3.6
  • keras ==2.15.0
  • kiwisolver ==1.4.5
  • libclang ==16.0.6
  • markdown-it-py ==3.0.0
  • matplotlib ==3.8.3
  • mdurl ==0.1.2
  • ml-dtypes ==0.2.0
  • mpmath ==1.3.0
  • networkx ==3.2.1
  • numpy ==1.26.4
  • oauthlib ==3.2.2
  • onnx ==1.15.0
  • onnx-graphsurgeon ==0.3.27
  • onnx2tf ==1.17.5
  • onnxruntime ==1.17.0
  • onnxsim ==0.4.35
  • opencv-python ==4.9.0.80
  • opt-einsum ==3.3.0
  • packaging ==23.2
  • pandas ==2.2.0
  • pillow ==10.2.0
  • protobuf ==4.25.3
  • psutil ==5.9.8
  • py-cpuinfo ==9.0.0
  • pyasn1 ==0.5.1
  • pyasn1-modules ==0.3.0
  • pybind11 ==2.11.1
  • pyparsing ==3.1.1
  • pyreadline3 ==3.4.1
  • python-dateutil ==2.8.2
  • pytz ==2024.1
  • requests ==2.31.0
  • requests-oauthlib ==1.3.1
  • rich ==13.7.0
  • rsa ==4.9
  • scipy ==1.12.0
  • seaborn ==0.13.2
  • six ==1.16.0
  • sng4onnx ==1.0.1
  • sympy ==1.12
  • tensorboard ==2.15.2
  • tensorboard-data-server ==0.7.2
  • tensorflow-cpu ==2.15.0
  • tensorflow-estimator ==2.15.0
  • tensorflow-intel ==2.15.0
  • tensorflow-io-gcs-filesystem ==0.31.0
  • termcolor ==2.4.0
  • tflite-support ==0.1.0a1
  • thop ==0.1.1.post2209072238
  • torch ==2.2.0
  • torchvision ==0.17.0
  • tqdm ==4.66.2
  • typing_extensions ==4.9.0
  • tzdata ==2024.1
  • urllib3 ==2.2.1
  • wrapt ==1.14.1