Different filters for pretrainned network
조회 수: 1 (최근 30일)
이전 댓글 표시
if i have a group of images and i filtered all of them with different filters , is there a way or method or a published something or calculate a fator to know me which filtered group is best with specific pretrainned transfer learning network for classification task using matlab without training the network with each group of filtered images
답변 (2개)
Image Analyst
2024년 8월 6일
Only you would know if they preprocessing filters you tried will help your network classify the images better than with no preprocessing filters. I suggest you look at the images where the classification was wrong and try to figure out how to make those images look like the images your network worked well on.
We don't even know what your images look like since you forgot to attach any here. And you didn't say what you want to know. Are you trying to apply one class to the whole image (like whether or not it has puppies in it) or do you want to classify on a pixel-by-pixel basis (like indicate which pixels are puppy pixels and which are background pixels)?
Why do you think that preprocessing will help? Maybe you don't even need to do it. Does it fail badly if you don't preprocess?
Do you know what an ROC curve is? Maybe you should build one up to determine which filter is best. https://en.wikipedia.org/wiki/Receiver_operating_characteristic MATLAB has ROC functions roc, rocmetrics, etc. that might help.
Jaimin
2024년 8월 9일
I understand that you want to evaluate existing pre-trained models using images processed with different types of filters to determine which approach most suitable for binary classification during transfer learning.
I can suggest you a 2-step process to achieve this.
First step: Feature extraction
Evaluate images with different filters using a pre-trained model (e.g., "resnet50") and fetch the feature vector from that model, follow these steps:
- Load the Pre-trained Model
- Prepare Image Groups
- Extract Features
Second step: Analyse Features
Collect the feature vectors for all images in each group (e.g. normal and abnormal). These vectors can then be used to perform statistical analysis, such as Principal Component Analysis (PCA) or calculating silhouette scores, to evaluate the separability and quality of the features extracted from each filtered group.
Compare the results from the different filtered groups to determine which filter produces the most discriminative features. This helps you identify the best filtering method to use before starting the transfer learning process.
For your reference, I have attached some useful resources
Performing transfer learning using resnet50: https://www.mathworks.com/help/deeplearning/ref/resnet50.html
Silhouette plot: https://www.mathworks.com/help/stats/silhouette.html
Other pretrained models: https://www.mathworks.com/help/deeplearning/ug/pretrained-convolutional-neural-networks.html
I hope this will be helpful to you.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!