Skip to content

Commit 2f3116a

Browse files
committed
Initial commit
0 parents  commit 2f3116a

18 files changed

+422
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.mat filter=lfs diff=lfs merge=lfs -text

README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Wood Species Classification Using Vibration Signature
2+
3+
Acquire live data from NI data acquisition hardware in MATLAB using the Data Acquisition Toolbox and use the Deep Learning Toolbox to classify 3 different wood species (Mexican Ebony, Hard Maple and Bloodwood) based on vibrational characteristics.
4+
This demo also uses the Wavelet Toolbox to compute continuous wavelet transform (CWT) images of the live acquired data samples. The CWT images were used to train our CNN model.
5+
6+
![](images/classificationGui.png)
7+
8+
## Wood Species
9+
10+
The convolution neural network (CNN) was trained on vibrational data samples acquired from 3 different varieties of wood species known as:
11+
12+
* Mexican Ebony
13+
* Hard Maple
14+
* Bloodwood
15+
16+
![](images/woodSpecies.PNG)
17+
18+
## Hardware Setup
19+
20+
Configure the hardware - Connect NI 9234 data acquisition module with the impact hammer and accelerometers as follows:
21+
22+
* Channel 0 - PCB 086C03 Impact Hammer
23+
* Channel 1 - PCB 352C65 Accelerometer
24+
* Channel 2 - PCB 352C65 Accelerometer
25+
* Channel 3 - PCB 352C65 Accelerometer
26+
27+
Mount the 3 accelerometers on separate wood species blocks (Mexican Ebony, Hard Maple and Bloodwood).
28+
29+
![](images/hardwareSetup.png)
30+
31+
## Data Acquisition
32+
33+
Data Acquisition Toolbox was used to acquire vibrational signals from NI 9234 DAQ module. Data Acquisition Toolbox provides functions for configuring data acquisition hardware and reading data into MATLAB for analysis.
34+
The toolbox supports a variety of DAQ hardware, including USB, PCI, PCI Express®, PXI®, and PXI-Express devices, from National Instruments™ and other vendors.
35+
36+
![](images/overviewDiag.PNG)
37+
38+
Thse following link provides more information about the Data Acquisition Toolbox:
39+
40+
https://www.mathworks.com/products/data-acquisition.html
41+
42+
## Signal Processing
43+
44+
Vibrational data from the accelerometers mounted on wood blocks was acquired using NI 9234 DAQ module in MATLAB. Signal samples were analyzed and preprocessed in MATLAB. Continuous Wavelet Transforms (CWT) were used
45+
to generate the 2-D time-frequency maps of time series data. These time-frequency maps were used as inputs for the deep convolutional neural network (CNN). The ability of the CWT to simultaneously capture steady-state
46+
and transient signal behavior in time series data makes the wavelet-based time-frequency representation particularly robust when paired with deep CNNs.
47+
48+
![](/images/waveletImage.PNG)
49+
50+
For more information about Wavelet Transforms and time-frequency analysis, visit the following link:
51+
52+
https://www.mathworks.com/help/wavelet/time-frequency-analysis.html
53+
54+
## Goal
55+
56+
* Configure Hardware
57+
* Strike wood block with the impact hammer
58+
* Accelerometer captures wood specific vibrational data
59+
* Classification model predicts the type of wood based on impact
60+
61+
## Demo Video
62+
63+
This demo was showcased in MathWorks/NI virtual event. The name of the session was - Data Acquisition and Machine Learning Using MathWorks and NI Tools.
64+
The session provides insights into a typical machine learning workflow and how one can use machine learning to classify materials followed by a live demo showcase.
65+
Link for the virtual session:
66+
67+
https://gateway.on24.com/wcc/eh/2429684/lp/2748276/data-acquisition-and-machine-learning-using-mathworks-and-ni-tools
68+
69+
## Demo Setup
70+
71+
* From a list of MATLAB files in the 'wood classification demo' folder, open and run the demoSetup.m script in MATLAB. This script clears everything in MATLAB editor and sets it up for running the demo.
72+
* To start the demo, please run the startDaq.m script.
73+
74+
Copyright 2021 The MathWorks, Inc.

SECURITY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reporting Security Vulnerabilities
2+
3+
If you believe you have discovered a security vulnerability, please report it to
4+
[security@mathworks.com](mailto:security@mathworks.com). Please see
5+
[MathWorks Vulnerability Disclosure Policy for Security Researchers](https://www.mathworks.com/company/aboutus/policies_statements/vulnerability-disclosure-policy.html)
6+
for additional information.

images/classificationGui.png

305 KB
Loading

images/hardwareSetup.png

1.83 MB
Loading

images/overviewDiag.PNG

101 KB
Loading

images/waveletImage.PNG

286 KB
Loading

images/woodSpecies.PNG

369 KB
Loading

license.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copyright (c) 2021, The MathWorks, Inc.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
3. In all cases, the software is, and all modifications and derivatives of the software shall be, licensed to you solely for use in conjunction with MathWorks products and service offerings.
9+
10+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
427 KB
Loading

0 commit comments

Comments
 (0)