Skip to content

Commit 592005a

Browse files
Merge branch 'master' into qingxin-xia/issue124
2 parents a27a588 + d6c41ef commit 592005a

File tree

3 files changed

+241
-16
lines changed

3 files changed

+241
-16
lines changed

website/src/caseStudies/FacialRecognition.js

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,25 @@ const FacialRecognitionInfo = [
3030
subheader: "Stay Tuned For More!",
3131
bodyText: [
3232
{
33-
body: <p className="bold">We Will Work On This Case Study!</p>,
33+
body: (
34+
<p>
35+
Facial recognition technology is often used to identify crime
36+
suspects. However, research has shown that this technology is
37+
often inaccurate when identifying certain groups of people. A
38+
study by MIT found that facial recognition systems can be up to
39+
35% less accurate when identifying women or people of color. This
40+
can lead law enforcement to arrest or accuse the wrong people.
41+
</p>
42+
),
43+
},
44+
{
45+
body: (
46+
<p className="bold">
47+
In this case study, we explore how humans’ biases when identifying
48+
people can affect how we train our facial recognition
49+
systems.{" "}
50+
</p>
51+
),
3452
},
3553
],
3654
},
@@ -88,6 +106,20 @@ const FacialRecognitionInfo = [
88106
},
89107
},
90108

109+
{
110+
post: {
111+
profilePic: teachLogo,
112+
profilePicName: "Profile Picture - Frame 3",
113+
header: "Accuracy of Face Recognition Technologies",
114+
subheader: "Hover to See Group Performance",
115+
bodyText: [
116+
{
117+
body: <AccuracyChart />,
118+
},
119+
],
120+
},
121+
},
122+
91123
{
92124
post: {
93125
profilePic: teachLogo,
@@ -274,29 +306,26 @@ const FacialRecognitionInfo = [
274306
{
275307
body: (
276308
<p className="bold">
277-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
278-
eiusmod tempor incididunt ut labore et dolore magna aliqua.
309+
The Consequences of Bias in Facial Recognition
279310
</p>
280311
),
281312
},
282313
{
283314
body: (
284315
<p>
285-
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
286-
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
287-
reprehenderit in voluptate velit esse cillum dolore eu fugiat
288-
nulla pariatur.
316+
Facial recognition technology has repeatedly been shown to exhibit
317+
various biases against certain groups, leading to real-world
318+
consequences such as wrongful identification of suspects or
319+
determining healthcare. To address these issues, researchers are
320+
actively working on debiasing facial recognition models as well as
321+
the data sets they rely on. This involves creating more balanced
322+
training data and adjusting algorithms so they learn to make
323+
accurate predictions.
289324
</p>
290325
),
291326
},
292327
{
293-
body: (
294-
<p>
295-
<mark className="bold">{`TODO: `} </mark>Excepteur sint occaecat
296-
cupidatat non proident, sunt in culpa qui officia deserunt mollit
297-
anim id est laborum.
298-
</p>
299-
),
328+
body: <p></p>,
300329
},
301330
],
302331
},

website/src/components/AboutUsPage.js

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,100 @@ const aboutUsInfo = [
3030
{
3131
body: (
3232
<p className="bold">
33-
This will be a page with information about TeachLA as a whole, and
34-
what Learning Labs aim to do!
33+
"Empowering students to understand technology — and how it impacts
34+
the world around them."
35+
</p>
36+
),
37+
},
38+
],
39+
},
40+
},
41+
{
42+
post: {
43+
profilePic: teachLogo,
44+
profilePicName: "Teach LA Logo",
45+
header: "Who We Are",
46+
subheader: "About Teach LA",
47+
bodyText: [
48+
{
49+
body: (
50+
<p>
51+
Teach LA is a student-run organization at UCLA dedicated to making
52+
computer science education accessible, engaging, and inclusive for
53+
all.
54+
</p>
55+
),
56+
},
57+
{
58+
body: (
59+
<p>
60+
We believe that computer science isn't just about coding — it's
61+
about creativity, collaboration, and understanding the technology
62+
that shapes our everyday lives.
63+
</p>
64+
),
65+
},
66+
{
67+
body: (
68+
<p>
69+
Through free lessons, interactive projects, and community
70+
outreach, our members design and teach programming content to K–12
71+
students and beyond.
72+
</p>
73+
),
74+
},
75+
{
76+
body: (
77+
<p>
78+
Our mission is simple: to help everyone, regardless of background,
79+
learn how to think critically about technology and use it to make
80+
a positive impact.
81+
</p>
82+
),
83+
},
84+
],
85+
},
86+
},
87+
{
88+
post: {
89+
profilePic: teachLogo,
90+
profilePicName: "Teach LA Logo",
91+
header: "What Are Learning Labs?",
92+
subheader: "Interactive Education, Made Fun",
93+
bodyText: [
94+
{
95+
body: (
96+
<p>
97+
Learning Labs are interactive educational experiences designed and
98+
built by Teach LA members.
99+
</p>
100+
),
101+
},
102+
{
103+
body: (
104+
<p>
105+
Each lab turns a complex or abstract computer science topic into
106+
something you can <em>see</em>, <em>play with</em>, and{" "}
107+
<em>understand</em> hands-on.
108+
</p>
109+
),
110+
},
111+
{
112+
body: (
113+
<p>
114+
From exploring the logic behind artificial intelligence to
115+
understanding bias in algorithms, our labs invite you to
116+
experiment, learn, and reflect on how technology connects to the
117+
real world.
118+
</p>
119+
),
120+
},
121+
{
122+
body: (
123+
<p>
124+
Whether you're a beginner or an experienced coder, Learning Labs
125+
are here to spark curiosity and deepen understanding — one
126+
interactive lesson at a time.
35127
</p>
36128
),
37129
},
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
import React, { useEffect, useRef } from "react";
2+
import {
3+
Chart as ChartJS,
4+
BarController,
5+
BarElement,
6+
CategoryScale,
7+
LinearScale,
8+
Tooltip,
9+
Legend,
10+
} from "chart.js";
11+
12+
ChartJS.register(
13+
BarController,
14+
BarElement,
15+
CategoryScale,
16+
LinearScale,
17+
Tooltip,
18+
Legend,
19+
);
20+
21+
export default function AccuracyChart() {
22+
const canvasRef = useRef(null);
23+
const chartInstanceRef = useRef(null);
24+
25+
useEffect(() => {
26+
const ctx = canvasRef.current.getContext("2d");
27+
28+
if (chartInstanceRef.current) {
29+
chartInstanceRef.current.destroy();
30+
}
31+
32+
const data = {
33+
labels: ["Microsoft", "Face++", "IBM", "Amazon", "Kairos"],
34+
datasets: [
35+
{
36+
label: "Darker female",
37+
backgroundColor: "#e58a84",
38+
data: [79.2, 65.5, 65.3, 68.63, 77.5],
39+
},
40+
{
41+
label: "Darker male",
42+
backgroundColor: "#b39ce4",
43+
data: [94, 99.3, 88, 98.74, 98.7],
44+
},
45+
{
46+
label: "Lighter female",
47+
backgroundColor: "#8cb492",
48+
data: [98.3, 90.2, 92.9, 92.88, 93.6],
49+
},
50+
{
51+
label: "Lighter male",
52+
backgroundColor: "#f7c795",
53+
data: [100, 99.2, 99.7, 100, 100],
54+
},
55+
],
56+
};
57+
58+
const chart = new ChartJS(ctx, {
59+
type: "bar",
60+
data,
61+
options: {
62+
responsive: true,
63+
plugins: {
64+
legend: {
65+
position: "bottom",
66+
},
67+
tooltip: {
68+
callbacks: {
69+
label: (context) =>
70+
`${context.dataset.label}: ${context.parsed.y}%`,
71+
},
72+
},
73+
title: {
74+
display: true,
75+
text: "Accuracy of Face Recognition Technologies",
76+
},
77+
},
78+
scales: {
79+
y: {
80+
beginAtZero: true,
81+
title: {
82+
display: true,
83+
text: "Accuracy (%)",
84+
},
85+
},
86+
},
87+
},
88+
});
89+
90+
chartInstanceRef.current = chart;
91+
92+
return () => {
93+
if (chartInstanceRef.current) {
94+
chartInstanceRef.current.destroy();
95+
}
96+
};
97+
}, []);
98+
99+
return (
100+
<div style={{ width: "100%", maxWidth: "800px", margin: "0 auto" }}>
101+
<canvas ref={canvasRef} />
102+
</div>
103+
);
104+
}

0 commit comments

Comments
 (0)