Power Spectral Density as a single number confusion I'm trying to recreate the results of a machine learning applied to the DSP classification in the article: link.
I have a signal (activity measurements from a smartwatch) per patient, so about 30 signals in total, quite long. For machine learning algorithm authors take traditional approach: extract statistical values about the signal, create columns (1 column per feature, 1 row per patient/signal) and plug this into a classifier. I'm confused about the spectral density used as feature.
Questions:

If I take PSD of a signal, I get another signal (time series) with values, not a single value, am I right? Therefore I would get not 1 column with spectral density feature per patient, but a full signal.

Suppose the article is imprecise (it is in other places) and authors made some &quot;mental shortcut&quot; while writing this. What else could they mean by &quot;spectral density&quot; feature? It should be 1 column, so 1 number extracted from each signal from patient. They mention it is in frequency domain, so PSD would be right, but it would not produce a single number.
Question 1: Yes you are correct, the power spectral density is the power distribution per unit frequency so is a continuous function of frequency.
Question 2: The single number as given can be an estimate of total power.
What they gave is completely incorrect starting with the formula as given:
$$P = lim_{T \rightarrow \infty}\frac{1}{T}\int_0^T|x(k)|^2dt$$
This is an attempt to provide a formula for the total power in the signal, as the time average of the energy of the signal (but where is t in the function for x?). I assume $k$ is a typo, but if it refers to an FFT bin, then as $T \rightarrow \infty$ discrete $x(k)$ would become a continuous function of time as $x(t)$ so that the above would properly represent the total power as:
$$P = lim_{T \rightarrow \infty}\frac{1}{T}\int_0^T|x(t)|^2dt$$
Note that the absolute value squared of the FFT bins, $|x(k)|^2$ can be used as an estimate of the power spectral density (see links below for conditions on this), with proper scaling to any units desired as the the relative power in each bin.
For further details on estimating PSD from the DFT, see:
Power spectral density vs. FFT bin magnitude
What is the difference between PSD and squared magnitude of frequency spectrum?