Nissan_Project / app.py
clevo570's picture
Update app.py
e626e19
import streamlit as st
from PIL import Image
st.title('Nissan Project')
st.markdown("## Overview")
st.markdown("### Backgroud")
st.markdown("Currently Nissan uses a survey to measure opinion/brand preference, brand awareness, and attribute association for automotive brands and models.")
st.markdown("**Attributes currently being tracked in survey**")
st.markdown("- **Functional Attributes:** Dependable, Lasts long, Value for money, Quality fit and finish, Attractive styling, Safe, Retains resale value, Driver comfort, Fun to drive, Advanced features, Responsive handling, Prestigious, Dealerships, Fuel efficient, Quick acceleration, Environmentally friendly, Affordable")
st.markdown("- **Personal Attributes:** Trusted, Leader, Responsible, Confident, Innovative, Exciting, Practical, Adventurous, Passionate, Distinctive, Youthful, Aggressive")
st.markdown("We use Transformer Model combing actual customer and expert commentary online to determine natural conversations about how automotive brands and models are being talked about instead of using the traditional attributes survey takers are pushed through to. ")
st.markdown("### Problem")
st.markdown("Understand organically the conversations around the Nissan Rogue and competitors as a first use case. What attributes are naturally associated with which models, both outside of and including the existing attributes we track? And what is preference/opinion of each model in comparison to one another.")
st.markdown("### Problem")
st.markdown("To gain the data, we scraped from the Web Scrape car reviews online and merge them, including Edmunds.com, KBB.com, cars.com, Youtube Review under Nissan Rogue, Chevy Equinox, Ford Escape, Ford Bronco Sport, Honda CR-V, Hyundai Tucson, Kia Sportage, Mazda CX-5, Subaru Forester, Toyota RAV4.")
st.markdown("Then, we directly apply zero-shot classification on all attributes as our baseline model.")
st.markdown("Since there are some potential issues, we design a two-stage model:")
st.markdown("1. Judge if this attribute is mentioned in each car review by applying transformers question-answering to it.")
st.markdown("2. If Yes (this attribute is included in this car review), proceed to apply zero-shot classification for each attribute (eg. dependable, not dependable); If No, ignore.")
st.markdown("### Result")
st.markdown("**Improved results:**")
figure1 = Image.open('img1.png')
st.image(figure1)
st.markdown("**Correlation of each attributes:**")
figure2 = Image.open('img2.png')
st.image(figure2)
st.markdown("Comparing each model:")
figure3 = Image.open('img3.png')
st.image(figure3)
st.markdown("## Critical thinking")
st.markdown("1. The Rogue's overall rating is slightly below average, especially when it comes to car acceleration and fun to drive. We checked the car configs and Rogue has 180 hp and the others are around 200 hp. We think this is the main reason.")
st.markdown("2. We think Rogue can bring more at this price compared with other models, which means better value for money. We think the potential customers of these models are price-sensitive, and Rogue should improve on the premise of maintaining value for money.")
st.markdown("3. Some attributes are overlapped or unclearly defined, we may optimize them later, such as Value for money and Retains resale value are similar, and it's hard to interpret what is last long.")
st.markdown("4. Since zero-shot model has limitations, we will choose another model, such as GPT-3, to try fine-tuning. This is also our future work.")
st.markdown("## Resource Links")
st.markdown("[Huggingface tutorial](https://huggingface.co/course/chapter7/3?fw=pt#using-our-finetuned-model)")
st.markdown("[facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli)")
st.markdown("[deepset/roberta-base-squad2](https://huggingface.co/deepset/roberta-base-squad2)")
st.markdown("[GitHub Repo ](https://github.com/vanderbilt-data-science/nissan).")
st.markdown("## Huggingface Model Card")
st.markdown("Huggingface model card is [here](https://huggingface.co/clevo570/Nissan_Project).")