This app uses machine learning to perform facial detection, emotion detection, and object detection. If performing facial analysis, it will try to determine the gender, age and emotions of people in a selfie. When performing object detection, the app will attempt to classify the objects in a picture.
Face 1: Male [99.9% confidence], smile: Yes [98.5%], age: 27-44, emotion: angry [30.5%] https://t.co/06TjI4qLX0pic.twitter.com/jNgfPetHMn
— Mwamba Analytics (@MwambaAnalytics) October 27, 2017
Emotion and facial detection
- Take a selfie, alone or with friends. For best results, ensure that the faces are not obscured.
- Follow @mwambaanalytics.
- Attach the selfie and tweet it to @mwambaanalytics, with the hashtag #facedetect
- The app will respond with a tweet listing the genders, age, and emotions for all faces in the selfie. The confidence that the algorithm has in its answer is given as a percentage. Only the highest confidence emotions are displayed. See the example above.
Object detection
Canal: [98.7% confidence], Outdoors: [98.7%], Water: [98.7%], Automobile: [98.5%], https://t.co/06TjI4qLX0 pic.twitter.com/GNYhEIoCEA
— Mwamba Analytics (@MwambaAnalytics) December 4, 2017
- Take a picture of any scene (office, outdoors, room, etc).
- Follow @mwambaanalytics.
- Attach the picture and tweet it to @mwambaanalytics, with the hashtag #objectdetect
- The app will attempt to classify different objects in the picture, and respond in a tweet. The confidence that the algorithm has in its answer is given as a percentage.
additional examples
Face 1: Male [99.2% confidence], smile: No [99.1%], age: 26-44, emotion: disgusted [50.3%] Face 2: Female [98.6% confidence], smile: No [97.9%], age: 26-43, emotion: sad [35.3%] https://t.co/puwRKVGhEp pic.twitter.com/mIwThWMHUg
— Mwamba Analytics (@MwambaAnalytics) February 13, 2019
Person: [99.4% confidence], Chicken: [99.1%], Hen: [99.1%], Bird: [99.1%] https://t.co/puwRKVGhEp pic.twitter.com/H4fcS2ylPk
— Mwamba Analytics (@MwambaAnalytics) February 11, 2019
tech details
-This app uses the twitter API, python, and a slew of Amazon Web Services (AWS).
-Facial detection when looking at faces is not a challenge to ML, since all faces have the same basic structure (eyes, mouth, nose, etc). More difficult is a task like differentiating between cats and dogs.
-Emotion detection, also, is nuanced, and the results from this basic app might not be impressive. Whereas even a toddler can read facial expressions easily, algorithms might struggle. The somewhat unquantifiable aspect of expressions (a half-raised eyebrow, pursed lips, a clenched jaw) often make emotion detection challenging for algorithms.