Combining feature vectors for a neural network

Click For Summary

Discussion Overview

The discussion revolves around the combination of feature vectors extracted from two different video datasets for input into a neural network classifier. Participants explore methods for effectively merging these vectors and address concerns regarding high-dimensional input for a Radial Basis Function Artificial Neural Network (RBF-ANN).

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions the assumption that neural networks only accept a single vector as input, prompting inquiries about architectures that can handle multiple vectors.
  • Another participant suggests that inputs to artificial neural networks (ANNs) can be treated as arrays or vectors, and that multiple vectors can be concatenated into a single vector without loss of information, provided their sizes are compatible.
  • Concatenation of vectors is discussed as a method to create an appropriate input for deep neural networks, with the input layer size being a function of the number of vectors and their dimensions.
  • A participant expresses interest in using an RBF-ANN for classification and raises concerns about the implications of high-dimensional input vectors (16000 dimensions) on performance and training efficiency.
  • Another participant acknowledges a lack of familiarity with RBF-ANNs but suggests that high-dimensional input might lead to slow training or memory issues, referencing the "curse of dimensionality" as a potential concern.
  • Dimensionality reduction techniques are mentioned as possible solutions for managing high-dimensional data.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for combining feature vectors or the implications of high-dimensional input for RBF-ANNs. Multiple competing views and uncertainties remain regarding these topics.

Contextual Notes

Participants express varying levels of familiarity with RBF-ANNs and dimensionality reduction techniques, indicating potential gaps in knowledge that may affect the discussion.

themagiciant95
Messages
56
Reaction score
5
Let's consider this scenario. I have two conceptually different video datasets, for example a dataset A composed of videos about cats and a dataset B composed of videos about houses. Now, I'm able to extract a feature vectors from both the samples of the datasets A and B, and I know that, each sample in the dataset A is related to one and only one sample in the dataset B and they belong to a specific class (there are only 2 classes).

For example:

Sample x1 AND sample y1 ---> Class 1
Sample x2 AND sample y2 ---> Class 2
Sample x3 AND sample y3 ---> Class 1
and so on...

If I extract the feature vectors from samples in both datasets , which is the best way to combine them in order to give a correct input to the classifier (for example a neural network) ?

feature vector v1 extracted from x1 + feature vector v1' extracted from y1 ---> input for classifier

I ask this because I suspect that neural networks only take one vector as input, while I have to combine two vectors
 
Technology news on Phys.org
themagiciant95 said:
I ask this because I suspect that neural networks only take one vector as input
why do you think so?
 
lomidrevo said:
why do you think so?
Hi, do you know neural networks that take more than 1 single vector as input ?
 
Generally, the inputs to ANN can be seen as array of numbers, or vector if you wish. But on the other hand, any (finite) multidimensional array can be reshaped to a vector. So you can pass components of the two vectors "serialized" as components of a single vector, without loosing any information. If the size of your inputs vectors is the same, say N, the size of the input layer of your net will be just 2*N. In general, if you had M vectors of size N, your input layer would be of size M*N. For example, that's the case of ANNs that process grayscale images.
 
Are you talking about concatenating vectors in order to create an appropriate input vector to the deep neural network ?
 
Yes. Or reshape the matrix into vector.. it depends on how do you store the data.
It is useful to realize that at the beginning of training, when the network hasn't seen any instanes yet, the input features can be considered as "independent" variables, so the network doesn't really care about our representation of the data. It doesn't matter whether those are components of one vector or of M vectors, or of any other structure. It is the goal of the training to find the hidden relationships between data.
We talk about supervised learning, right?
 
  • Like
Likes   Reactions: Jarvis323
do you work in some ML framework, or do you try to code it from scratch? I definitely recommend the first option
 
I would like to try RBF-ANN as the classifier.

Let me explain better. For the moment ignore my original question.
I have a dataset A of videos. I've extracted the feature vector of each video (with a convolutional neural network, via transfer learning) creating a dataset B. Now, every vector of the dataset B has a high dimension (about 16000), and I would like to classify these vectors using an RBF-ANN (there are only 2 possible classes).

Is it a problem if the input vector to the RBF-ANN has a high dimension (16000) ? If yes, any way to deal with it ?
 
Honestly I am not familiar with RBF-ANN. Just for my curiosity, do you have a specific reason to use it?

themagiciant95 said:
Is it a problem if the input vector to the RBF-ANN has a high dimension (16000) ?
If you haven't tried it to run yet, give it a chance. Maybe there won't be any problems.
Eventually, the training might become very slow, or you might have issues with insufficient memory. Also this phenomena could be a problem:
https://en.wikipedia.org/wiki/Curse_of_dimensionality
themagiciant95 said:
If yes, any way to deal with it ?
Maybe to try some of these techniques?:
https://en.wikipedia.org/wiki/Dimensionality_reduction
(no experience on my side...)
 
  • Like
Likes   Reactions: themagiciant95
  • #10
Thank you infinitely. I'll try :))
 
  • Like
Likes   Reactions: lomidrevo

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K