<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://vista.su.domains/psych221wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mhsalem</id>
	<title>Psych 221 Image Systems Engineering - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://vista.su.domains/psych221wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mhsalem"/>
	<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Special:Contributions/Mhsalem"/>
	<updated>2026-07-12T04:59:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33894</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33894"/>
		<updated>2023-12-18T09:45:14Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* DNN Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
&lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
​&lt;br /&gt;
&#039;&#039;&#039;GoogleNet:&#039;&#039;&#039; It was introduced in 2014. It is an inception module with 1x1 convolutions used to reduce the parameter space enabling increased depth.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;SqueezeNet:&#039;&#039;&#039; It was introduced in 2016. It has a fire module made from squeeze convolution layer (1x1 filters) and expand convolution layer (combination of 1x1 and 3x3); force distillation of information.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ShuffleNet:&#039;&#039;&#039; It was introduced in 2017. The architecture use pointwise group convolution to reduce computation cost and channel shuffle to help information flow across feature channels.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;MobileNetV2:&#039;&#039;&#039; It was introduced in 2018. The architecture consists of depthwise separable convolutions to reduce the complexity cost and model size from v1.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;EfficientNetB0:&#039;&#039;&#039; It was introduced in 2019 and discovered by Neural Architecture Search (NAS) using a principled compound scaling method to uniformly scale network width, depth, and resolution with a set of fixed scaling coefficients​.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle Original Image from ImageNet.jpg | Picture 2: Beagle Original Image from Image Net&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the data collection and generating images, we used the Beagle Category from the ImageNet dataset. In this write-up, we will use Picture 2 as the base image and display the effect of the Camera parameters on it.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Picture 3: Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Picture 4: Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Picture 5: Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In F/# and Focal Length experiment, the modification of the parameters cause some blurriness and zoom effects on the base images as shown in the Pictures 3, 4 and 5. SqueezeNet and ShuffleNet performed poorly when compared to the other architectures because these 2 have the smallest parameter count limiting their expressivity; representational power.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart does not show impact on the classification when the focal length is modified. Similarly, when the Focal length is fixed and the F-number is change. However, only when the F-Number is set to F/32, the image is blurry causing decrease in the classification accuracy as shown in Figure 2.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Picture 6: Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Picture 7: Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Picture 8: Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Picture 9: Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix I ==&lt;br /&gt;
Our MATLAB project script can be found in [https://github.com/mhsalemStanford/psych221/blob/main/project.m project.m]. This script generates images with different Camera Characteristics and store the accuracy data in a mat file.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Appendix II ==&lt;br /&gt;
&#039;&#039;&#039;Mohammad Salem:&#039;&#039;&#039; Worked on MATLAB simulations and collecting data. Also, worked on the data analysis and report. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bogdan Burlacu:&#039;&#039;&#039; Worked on DNNs Architectures, ImageNet analysis to identify the proper ones to use in the project. Assisted in MATLAB simulations. Also, worked on Data analysis and report.&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33890</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33890"/>
		<updated>2023-12-18T09:34:13Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Appendix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle Original Image from ImageNet.jpg | Picture 2: Beagle Original Image from Image Net&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the data collection and generating images, we used the Beagle Category from the ImageNet dataset. In this write-up, we will use Picture 2 as the base image and display the effect of the Camera parameters on it.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Picture 3: Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Picture 4: Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Picture 5: Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In F/# and Focal Length experiment, the modification of the parameters cause some blurriness and zoom effects on the base images as shown in the Pictures 3, 4 and 5. SqueezeNet and ShuffleNet performed poorly when compared to the other architectures because these 2 have the smallest parameter count limiting their expressivity; representational power.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart does not show impact on the classification when the focal length is modified. Similarly, when the Focal length is fixed and the F-number is change. However, only when the F-Number is set to F/32, the image is blurry causing decrease in the classification accuracy as shown in Figure 2.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Picture 6: Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Picture 7: Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Picture 8: Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Picture 9: Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix I ==&lt;br /&gt;
Our MATLAB project script can be found in [https://github.com/mhsalemStanford/psych221/blob/main/project.m project.m]. This script generates images with different Camera Characteristics and store the accuracy data in a mat file.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Appendix II ==&lt;br /&gt;
&#039;&#039;&#039;Mohammad Salem:&#039;&#039;&#039; Worked on MATLAB simulations and collecting data. Also, worked on the data analysis and report. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bogdan Burlacu:&#039;&#039;&#039; Worked on DNNs Architectures, ImageNet analysis to identify the proper ones to use in the project. Assisted in MATLAB simulations. Also, worked on Data analysis and report.&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33867</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33867"/>
		<updated>2023-12-18T08:59:34Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* DNN Architecture */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle Original Image from ImageNet.jpg | Picture 2: Beagle Original Image from Image Net&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the data collection and generating images, we used the Beagle Category from the ImageNet dataset. In this write-up, we will use Picture 2 as the base image and display the effect of the Camera parameters on it.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Picture 3: Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Picture 4: Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Picture 5: Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In F/# and Focal Length experiment, the modification of the parameters cause some blurriness and zoom effects on the base images as shown in the Pictures 3, 4 and 5. SqueezeNet and ShuffleNet performed poorly when compared to the other architectures because these 2 have the smallest parameter count limiting their expressivity; representational power.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart does not show impact on the classification when the focal length is modified. Similarly, when the Focal length is fixed and the F-number is change. However, only when the F-Number is set to F/32, the image is blurry causing decrease in the classification accuracy as shown in Figure 2.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Picture 6: Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Picture 7: Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Picture 8: Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Picture 9: Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33866</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33866"/>
		<updated>2023-12-18T08:58:30Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle Original Image from ImageNet.jpg | Picture 2: Beagle Original Image from Image Net&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the data collection and generating images, we used the Beagle Category from the ImageNet dataset. In this write-up, we will use Picture 2 as the base image and display the effect of the Camera parameters on it.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Picture 3: Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Picture 4: Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Picture 5: Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In F/# and Focal Length experiment, the modification of the parameters cause some blurriness and zoom effects on the base images as shown in the Pictures 3, 4 and 5. SqueezeNet and ShuffleNet performed poorly when compared to the other architectures because these 2 have the smallest parameter count limiting their expressivity; representational power.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart does not show impact on the classification when the focal length is modified. Similarly, when the Focal length is fixed and the F-number is change. However, only when the F-Number is set to F/32, the image is blurry causing decrease in the classification accuracy as shown in Figure 2.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Picture 6: Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Picture 7: Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Picture 8: Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Picture 9: Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33851</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33851"/>
		<updated>2023-12-18T08:33:27Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle Original Image from ImageNet.jpg | Picture 2: Beagle Original Image from Image Net&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Picture 3: Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Picture 4: Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Picture 5: Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Picture 6: Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Picture 7: Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Picture 8: Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Picture 9: Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33850</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33850"/>
		<updated>2023-12-18T08:32:39Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle Original Image from ImageNet.jpg | Beagle Original Image from Image Net&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_Original_Image_from_ImageNet.jpg&amp;diff=33849</id>
		<title>File:Beagle Original Image from ImageNet.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_Original_Image_from_ImageNet.jpg&amp;diff=33849"/>
		<updated>2023-12-18T08:31:44Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33846</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33846"/>
		<updated>2023-12-18T08:30:16Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 15 mm.jpg | Beagle Image with F/4 and Focal length of 15 mm&lt;br /&gt;
Image:Beagle with F-4 and Focal Length of 50 mm.jpg | Beagle Image with F/4 and Focal length of 50 mm&lt;br /&gt;
Image:Beagle with F-32 and Focal Length of 15 mm.jpg | Beagle Image with F/32 and Focal length of 15 mm&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Focal Lengths with F/4 evaluated on EfficientNetB0&lt;br /&gt;
Image:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png | Figure 2: Generated Images Accuracy for the different F-Numbers with Focal Length of 15 mm evaluated on EfficientNetB0&lt;br /&gt;
Image:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png | Figure 3: Generated Images Accuracy for F/4 and Focal Length of 15 mm Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 4: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 5: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 4, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 5, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 6: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 7: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 6, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_F-32_and_Focal_Length_of_15_mm.jpg&amp;diff=33844</id>
		<title>File:Beagle with F-32 and Focal Length of 15 mm.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_F-32_and_Focal_Length_of_15_mm.jpg&amp;diff=33844"/>
		<updated>2023-12-18T08:28:27Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_F-4_and_Focal_Length_of_50_mm.jpg&amp;diff=33843</id>
		<title>File:Beagle with F-4 and Focal Length of 50 mm.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_F-4_and_Focal_Length_of_50_mm.jpg&amp;diff=33843"/>
		<updated>2023-12-18T08:28:04Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_F-4_and_Focal_Length_of_15_mm.jpg&amp;diff=33842</id>
		<title>File:Beagle with F-4 and Focal Length of 15 mm.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_F-4_and_Focal_Length_of_15_mm.jpg&amp;diff=33842"/>
		<updated>2023-12-18T08:27:30Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Focal_Lengths_F-4_DNNs_Generated_Accuracy_(F-4).png&amp;diff=33840</id>
		<title>File:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Focal_Lengths_F-4_DNNs_Generated_Accuracy_(F-4).png&amp;diff=33840"/>
		<updated>2023-12-18T08:23:56Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem uploaded a new version of File:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_DNNs_Generated_Accuracy_(80_milliseconds_exp_time).png&amp;diff=33839</id>
		<title>File:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_DNNs_Generated_Accuracy_(80_milliseconds_exp_time).png&amp;diff=33839"/>
		<updated>2023-12-18T08:23:32Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem uploaded a new version of File:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Read_Noise_DNNs_Generated_Accuracy_(200_mV_read_noise).png&amp;diff=33837</id>
		<title>File:Read Noise DNNs Generated Accuracy (200 mV read noise).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Read_Noise_DNNs_Generated_Accuracy_(200_mV_read_noise).png&amp;diff=33837"/>
		<updated>2023-12-18T08:22:48Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem uploaded a new version of File:Read Noise DNNs Generated Accuracy (200 mV read noise).png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Focal_Lengths_F-4_DNNs_Generated_Accuracy_(F-4).png&amp;diff=33831</id>
		<title>File:Focal Lengths F-4 DNNs Generated Accuracy (F-4).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Focal_Lengths_F-4_DNNs_Generated_Accuracy_(F-4).png&amp;diff=33831"/>
		<updated>2023-12-18T08:07:52Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Focal_Length_with_F-4_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33830</id>
		<title>File:Focal Length with F-4 Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Focal_Length_with_F-4_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33830"/>
		<updated>2023-12-18T08:07:33Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:F-Numbers_with_Focal_Length_of_15_mm_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33829</id>
		<title>File:F-Numbers with Focal Length of 15 mm Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:F-Numbers_with_Focal_Length_of_15_mm_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33829"/>
		<updated>2023-12-18T08:07:03Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33827</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33827"/>
		<updated>2023-12-18T08:05:38Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Read Noise */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 2: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. While the decrease may not be statistically significant, it is evident that the accuracy tends to decline with an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33815</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33815"/>
		<updated>2023-12-18T07:49:10Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 2: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33814</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33814"/>
		<updated>2023-12-18T07:47:57Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we assessed classification accuracy based on the presence of the correct label within the top predicted class. Data and Images were generated with a combination of f-numbers and focal lengths to explore if there are any interesting relations. The combination were used in the data collection are as follows which provide 40 deferent datasets:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we assessed classification accuracy based on the presence of the correct label within the top five predicted classes which more tolerant than the F/# and Focal Length combination experiment. Also, the data was collected by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039; 5, 10, 20, 40, 80 milliseconds. &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, the classification accuracy was assessed as same as the Exposure Time based on the top five predicted classes. The images were generated with the default settings of the Camera Designer App. However, we only modified the read noise of the camera sensor. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Read Noise:&#039;&#039;&#039; 1, 10, 50, 100, 200 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 2: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33800</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33800"/>
		<updated>2023-12-18T07:32:55Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | Picture 1: ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 2: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33799</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33799"/>
		<updated>2023-12-18T07:32:19Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:ISET_Camera_Desginer.png | ISET AI Camera Designer Application&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 2: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33798</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33798"/>
		<updated>2023-12-18T07:30:32Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
[[File:ISET_Camera_Desginer.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg | Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg | Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle with 1 mV Read Noise.jpg | Beagle Image with 1 mV Read Noise&lt;br /&gt;
Image:Beagle with 200 mV Read Noise.jpg | Beagle Image with 200 mV Read Noise&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Read Noise experiment, there is a subtle dissimilarity between the images, which may not be immediately apparent. The image on the right exhibits more noise, resulting in a loss of some finer details.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Read Noise Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Read Noises evaluated on EfficientNetB0&lt;br /&gt;
Image:Read Noise DNNs Generated Accuracy (200 mV read noise).png | Figure 2: Generated Images Accuracy for 200 mV Read Noise evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart depicts a decline in classification accuracy corresponding to an increase in read noise. Notably, SqueezeNet exhibited the worst performance with a classification accuracy of 66.2%, while MobileNetV2 and EfficientNetB0 demonstrated the highest classification accuracies in this experiment.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_200_mV_Read_Noise.jpg&amp;diff=33782</id>
		<title>File:Beagle with 200 mV Read Noise.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_200_mV_Read_Noise.jpg&amp;diff=33782"/>
		<updated>2023-12-18T06:52:08Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_1_mV_Read_Noise.jpg&amp;diff=33781</id>
		<title>File:Beagle with 1 mV Read Noise.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_1_mV_Read_Noise.jpg&amp;diff=33781"/>
		<updated>2023-12-18T06:51:41Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Read_Noise_DNNs_Generated_Accuracy_(200_mV_read_noise).png&amp;diff=33778</id>
		<title>File:Read Noise DNNs Generated Accuracy (200 mV read noise).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Read_Noise_DNNs_Generated_Accuracy_(200_mV_read_noise).png&amp;diff=33778"/>
		<updated>2023-12-18T06:47:59Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Read_Noise_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33777</id>
		<title>File:Read Noise Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Read_Noise_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33777"/>
		<updated>2023-12-18T06:46:18Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33770</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33770"/>
		<updated>2023-12-18T06:28:57Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
[[File:ISET_Camera_Desginer.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=500px heights=500px&amp;gt;&lt;br /&gt;
Image:Beagle_with_10_ms_Exp_Time.jpg|500px|Beagle Image with 10 milliseconds exposure time&lt;br /&gt;
Image:Beagle_with_80_ms_Exp_Time.jpg|500px|Beagle Image with 80 milliseconds exposure time&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the Exposure Time experiment, the images clearly reveal the impact of exposure time. A direct relationship is observed: as exposure time increases, the images become brighter, and conversely, they become darker.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed&amp;quot; widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:Exposure Time Generated Accuracy (EfficientNetB0).png | Figure 1: Generated Images Accuracy for the different Exposure Times evaluated on EfficientNetB0&lt;br /&gt;
Image:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png | Figure 2: Generated Images Accuracy for 80 milliseconds Exposure Time evaluated on deferent DNNs&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Figure 1, the chart illustrates the impact of the exposure time on the classification accuracy. The greater the exposure time, the better the classification accuracy since the images are clearer and sharper. Also, it is noticeable among the various deep neural networks (DNNs) employed to assess the images, the performance of the SqueezeNet DNN was the worst with a 52.8% accuracy, as shown in Figure 2, while the MobileNetV2 archived the best accuracy with 87.2%.&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise shufflenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise mobilenetv2 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise efficientnetb0 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_DNNs_Generated_Accuracy_(80_milliseconds_exp_time).png&amp;diff=33768</id>
		<title>File:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_DNNs_Generated_Accuracy_(80_milliseconds_exp_time).png&amp;diff=33768"/>
		<updated>2023-12-18T06:14:20Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem uploaded a new version of File:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33767</id>
		<title>File:Exposure Time Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33767"/>
		<updated>2023-12-18T06:14:05Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem uploaded a new version of File:Exposure Time Generated Accuracy (EfficientNetB0).png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33766</id>
		<title>File:Exposure Time Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33766"/>
		<updated>2023-12-18T06:13:40Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem reverted File:Exposure Time Generated Accuracy (EfficientNetB0).png to an old version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33765</id>
		<title>File:Exposure Time Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33765"/>
		<updated>2023-12-18T06:12:35Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: Mhsalem uploaded a new version of File:Exposure Time Generated Accuracy (EfficientNetB0).png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_10_ms_Exp_Time.jpg&amp;diff=33764</id>
		<title>File:Beagle with 10 ms Exp Time.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_10_ms_Exp_Time.jpg&amp;diff=33764"/>
		<updated>2023-12-18T06:03:19Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_80_ms_Exp_Time.jpg&amp;diff=33763</id>
		<title>File:Beagle with 80 ms Exp Time.jpg</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Beagle_with_80_ms_Exp_Time.jpg&amp;diff=33763"/>
		<updated>2023-12-18T06:02:51Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_DNNs_Generated_Accuracy_(80_milliseconds_exp_time).png&amp;diff=33729</id>
		<title>File:Exposure Time DNNs Generated Accuracy (80 milliseconds exp time).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_DNNs_Generated_Accuracy_(80_milliseconds_exp_time).png&amp;diff=33729"/>
		<updated>2023-12-18T05:15:45Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33728</id>
		<title>File:Exposure Time Generated Accuracy (EfficientNetB0).png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:Exposure_Time_Generated_Accuracy_(EfficientNetB0).png&amp;diff=33728"/>
		<updated>2023-12-18T05:15:04Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33712</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33712"/>
		<updated>2023-12-18T04:41:50Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer ===&lt;br /&gt;
[[File:ISET_Camera_Desginer.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Simulates Cameras with different subsystems; Optics, Sensor, and IP.&amp;lt;br&amp;gt;&lt;br /&gt;
*Uses a collection of images selected by the user.&amp;lt;br&amp;gt;&lt;br /&gt;
*Applies modifications to the images through utilizing the designed subsystems.&amp;lt;br&amp;gt; &lt;br /&gt;
*Evaluates Original Images and generated images on different pre-trained DNNs. However, scores are based on the classification match of the original and generated images depending on the number of score classes.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Focal Length and Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise shufflenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise mobilenetv2 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise efficientnetb0 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=File:ISET_Camera_Desginer.png&amp;diff=33707</id>
		<title>File:ISET Camera Desginer.png</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=File:ISET_Camera_Desginer.png&amp;diff=33707"/>
		<updated>2023-12-18T04:32:21Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33304</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33304"/>
		<updated>2023-12-12T05:46:57Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Exposure Time */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Times:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Focal Length and Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise shufflenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise mobilenetv2 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise efficientnetb0 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33303</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33303"/>
		<updated>2023-12-12T05:46:38Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
In this combination experiment, we generated images with a combination of f-numbers and focal lengths. The combination were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exposure Time ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images by only modifying the exposure time. The exposure times were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Time used for the each Focal Length:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
In this experiment, we generated images with the default settings of the Camera Designer App. However, we only modified the read noise. The read noise values that were used in the data collection are as follows:&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Focal Length and Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise shufflenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise mobilenetv2 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise efficientnetb0 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33302</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33302"/>
		<updated>2023-12-12T05:19:32Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal Lengths:&#039;&#039;&#039; 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Time used for the each Focal Length:&#039;&#039;&#039; Focal Length +- 3 milliseconds&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Focal Length and Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise squeezenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise shufflenet figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise mobilenetv2 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Read noise efficientnetb0 figure.png|500px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33296</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33296"/>
		<updated>2023-12-12T03:53:48Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal Lengths:&#039;&#039;&#039; 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Time used for the each Focal Length:&#039;&#039;&#039; Focal Length +- 3 milliseconds&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
=== F/# and Focal Length ===&lt;br /&gt;
&lt;br /&gt;
=== Focal Length and Exposure Time ===&lt;br /&gt;
&lt;br /&gt;
=== Read Noise ===&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33295</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33295"/>
		<updated>2023-12-12T03:51:23Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Focal Length (mm) - Exposure Time Combination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal Lengths:&#039;&#039;&#039; 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Time used for the each Focal Length:&#039;&#039;&#039; Focal Length +- 3 milliseconds&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33294</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33294"/>
		<updated>2023-12-12T03:50:59Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Focal Length (mm) - Exposure Time Combination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal Lengths:&#039;&#039;&#039; 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Time used for the each Focal Length:&#039;&#039;&#039; Focal Length +- 3 milliseconds&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33293</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33293"/>
		<updated>2023-12-12T03:50:46Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Focal Length (mm) - Exposure Time Combination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal Lengths:&#039;&#039;&#039; 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exposure Time used for the each Focal Length:&#039;&#039;&#039; Focal Length +- 3 ms&lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33292</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33292"/>
		<updated>2023-12-12T03:50:19Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* Experiments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
Focal Lengths: 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
Exposure Time used for the each Focal Length: Focal Length +- 20 mm &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33291</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33291"/>
		<updated>2023-12-12T03:49:15Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* F/# - Focal Length Combination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
=====F/#:===== &lt;br /&gt;
f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=====Focal  Lengths used for each of F/#:=====&lt;br /&gt;
15, 20, 35, 50 mm&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
Focal Lengths: 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
Exposure Time used for the each Focal Length: Focal Length +- 20 mm &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV &lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33290</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33290"/>
		<updated>2023-12-12T03:48:17Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* F/# - Focal Length Combination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;F/#:&#039;&#039;&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039;&#039;&#039; 15, 20, 35, 50 mm&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
Focal Lengths: 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
Exposure Time used for the each Focal Length: Focal Length +- 20 mm &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV &lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33289</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33289"/>
		<updated>2023-12-12T03:47:08Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: /* F/# - Focal Length Combination */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;F/#:&#039;&#039;&#039; f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Focal  Lengths used for each of F/#:&#039;&#039;&#039; 15, 20, 35, 50 mm&lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
Focal Lengths: 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
Exposure Time used for the each Focal Length: Focal Length +- 20 mm &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV &lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
	<entry>
		<id>http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33288</id>
		<title>Impact of Camera Characteristics on DNN Model Inference Performance</title>
		<link rel="alternate" type="text/html" href="http://vista.su.domains/psych221wiki/index.php?title=Impact_of_Camera_Characteristics_on_DNN_Model_Inference_Performance&amp;diff=33288"/>
		<updated>2023-12-12T03:46:20Z</updated>

		<summary type="html">&lt;p&gt;Mhsalem: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
There are many image recognition applications that classify images using pre-trained Neural networks. However, testing images used in these application could be captured by different users, cameras, environments, etc. How could the image quality affects the application decisions or classification? Using ISETCameraDesigner, we will generate images with different camera characteristics. These set of images will be evaluated on different DNN model inferences and conclusions will be drawn about the different DNN models performance, scores, and effect of the images quality on the predictions.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
=== F/# === &lt;br /&gt;
The ratio of the aperture diameter to focal length. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; N = f/D &amp;lt;/math&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
N: F/# (F-Number) &amp;lt;br&amp;gt;&lt;br /&gt;
f: Focal Length (m) &amp;lt;br&amp;gt;&lt;br /&gt;
D: Aperture Diameter (m) &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Focal Length === &lt;br /&gt;
The measurement of how strongly the system converges or diverges light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exposure Time === &lt;br /&gt;
The duration of the camera/sensor collects light. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ISET AI Camera Designer === &lt;br /&gt;
*Build Camera subsystems; Optics, Sensor, and IP.&lt;br /&gt;
*Use a collection of images.&lt;br /&gt;
*Generate Images from the original Images with the Camera Design.&lt;br /&gt;
*Evaluates Original Images vs Generated Images on different pre-trained DNNs.&lt;br /&gt;
**Scores are based on the classification match (top-1) of the original and generated images.&amp;lt;/li&amp;gt;&lt;br /&gt;
=== ImageNet === &lt;br /&gt;
ImageNet Dataset: &lt;br /&gt;
*1000 classes/categories&lt;br /&gt;
*1,281,167 training images &lt;br /&gt;
*50,000 validation images &lt;br /&gt;
*100,000 test images &lt;br /&gt;
&lt;br /&gt;
=== DNN Architecture === &lt;br /&gt;
*Pre-trained on ImageNet dataset and available in Matlab&lt;br /&gt;
*Chosen for smaller footprint targeting embedded applications&lt;br /&gt;
*All Convolutional Neural Networks (CNNs)&lt;br /&gt;
*Output a predicted class using probability distribution from softmax&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ DNNs Architectures&lt;br /&gt;
|-&lt;br /&gt;
! DNN Architecture !! Depth !! Size !! Parameters (Millions) !! Image Input Size&lt;br /&gt;
|-&lt;br /&gt;
| GoogleNet || 22 || 27 MB || 7.0 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| SqueezeNet || 18 || 5.2 MB || 1.24 || 227-by-227&lt;br /&gt;
|-&lt;br /&gt;
| ShuffleNet || 50 || 5.4 MB || 1.4 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| MobileNetV2 || 53 || 13 MB || 3.5 || 224-by-224&lt;br /&gt;
|-&lt;br /&gt;
| EfficientNetB0 || 85 || 20 MB || 5.3 || 224-by-224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
In this project, there were many techniques that were used to measure and analyze the data.  It was fully ran thru MATLAB and ISETCam. MATLAB and ISETCam played significant role in generating images with different Camera characteristics. Throughout this project, different DNN models, ImageNet datasets, and camera characteristics were used to measure the mean classification accuracy of the Beagle Category (196 Images) and analyze them.&lt;br /&gt;
&lt;br /&gt;
=== Experiments === &lt;br /&gt;
&lt;br /&gt;
In this project, we tweaked the camera characteristics by incorporating a combination of parameters in the camera subsystems such as Optics and Image Sensor. Our approach involved conducting multiple experiments to thoroughly investigate the effect of the different camera characteristics on the DNN models classification.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The combination of data used in each of the experiments is as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== F/# - Focal Length Combination ====&lt;br /&gt;
&lt;br /&gt;
F/#: f/1.0, f/1.4, f/2, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 &lt;br /&gt;
&lt;br /&gt;
Focal  Lengths used for each of F/#: 15, 20, 35, 50 mm &lt;br /&gt;
&lt;br /&gt;
==== Focal Length (mm) - Exposure Time Combination ====&lt;br /&gt;
&lt;br /&gt;
Focal Lengths: 15, 20, 28, 35, 50, 70, 85, 135, 200, 300 mm &lt;br /&gt;
&lt;br /&gt;
Exposure Time used for the each Focal Length: Focal Length +- 20 mm &lt;br /&gt;
&lt;br /&gt;
==== Read Noise ====&lt;br /&gt;
&lt;br /&gt;
Read Noise: 0.1, 1, 5, 10, 20 mV &lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
== Conclusions ==&lt;br /&gt;
&lt;br /&gt;
*DNN model performance is impacted by camera parameters&lt;br /&gt;
*Empirical iterative discovery process to determine impact direction and magnitude&lt;br /&gt;
*Camera parameters’ adjustments can be applied at training time either to restrict or widen the data distribution depending on application&lt;br /&gt;
**Restrict to target a smaller model parameter space (more constrained application)&lt;br /&gt;
**Widen to generalize better (less constrained application)&lt;br /&gt;
*At inference time they can bring an out-of-distribution example into in-distribution&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can write math equations as follows:&lt;br /&gt;
&amp;lt;math&amp;gt;y = x + 5 &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can include images as follows (you will need to upload the image first using the toolbox on the left bar, using the &amp;quot;Upload file&amp;quot; link).&lt;br /&gt;
&lt;br /&gt;
[[File:Snip 20210106183207.png|200px]]&lt;/div&gt;</summary>
		<author><name>Mhsalem</name></author>
	</entry>
</feed>