JAISCR, 2025, Vol. 15, No. 3, pp. 215
A BIMODAL DEEP MODEL TO CAPTURE EMOTIONS
FROM MUSIC TRACKS
Jan Tobolewski1, Michał Sakowicz1, Jo di Tu mo2, and Bo˙
zena Kos ek3,∗
1Facul y o Elec onics, Telecommunica ions and In o ma ics, Gda´
nsk Uni e si y o Technology,
11/12 Na u owicza S ., 80-233 Gda´
nsk, Poland
2Depa men o Compu e Science, Uni e si a Poli `
ecnica de Ca alunya,
Jo di Gi ona Salgado, 1-3, 08034 Ba celona, Spain
3Audio Acous ics Labo a o y, Facul y o Elec onics, Telecommunica ions, and In o ma ics,
Gda´
nsk Uni e si y o Technology, 11/12 Na u owicza S ., 80-233 Gda´
nsk, Poland
∗E-mail: bozena.kos [email protected]
Submi ed: 28 h No embe 2024; Accep ed: 21s Feb ua y 2025
Abs ac
This wo k aims o de elop a deep model o au oma ically labeling music acks in e ms
o induced emo ions. The machine lea ning a chi ec u e consis s o wo componen s: one
dedica ed o ly ic p ocessing based on Na u al Language P ocessing (NLP) and ano he
de o ed o music p ocessing. These wo componen s a e combined a he decision-making
le el. To achie e his, a ange o neu al ne wo ks a e explo ed o he ask o emo ion
ex ac ion om bo h ly ics and music. Fo ly ic classifica ion, h ee a chi ec u es a e
compa ed, i.e., a 4-laye neu al ne wo k, Fas Tex , and a ans o me -based app oach. Fo
music classifica ion, he a chi ec u es in es iga ed include Incep ionV3, a collec ion o
models om he ResNe amily, and a join a chi ec u e combining Incep ion and ResNe .
SVM se es as a baseline in bo h h eads. The s udy explo es h ee da ase s o songs
accompanied by ly ics, wi h MoodyLy ics4Q selec ed and p ep ocessed o model ain-
ing. The bimodal app oach, inco po a ing bo h ly ics and audio modules, achie es a
classifica ion accu acy o 60.7% in iden i ying emo ions e oked by music pieces. The
MoodyLy ics4Q da ase used in his s udy encompasses musical pieces spanning di e se
gen es, including ock, jazz, elec onic, pop, blues, and coun y. The algo i hms demon-
s a e eliable pe o mance ac oss he da ase , highligh ing hei obus ness in handling a
wide a ie y o musical s yles.
Keywo ds: au oma ic labeling, deep model, emo ion, music, ly ics, machine lea ning
1 In oduc ion
Emo ion ecogni ion is a p ocess ha uses ech-
nology o iden i y human emo ions om a ious
sou ces, such as acial exp essions, speech, ex ,
o physiological signals [1]. Music p o oundly in-
fluences human emo ions, enhancing emo ional ex-
pe iences and s ongly e oking di e en eelings
[2, 3]. Resea ch has shown ha music-e oked plea-
su e inc eases dopamine p oduc ion, whe eas dis-
sonan music o en leads o a ise in blood oxygen
le els [4]. Unde s anding he emo ional impac o
music has significan applica ions in a eas such as
music ecommenda ion, in elligen music playe s,
he apy [5], and a ec i e compu ing. The emo ion
10.2478/jaisc -2025-0011
– 238
216 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
ecogni ion sys em may be, a he same ime, ca-
pable o iden i ying human emo ional s a es. How-
e e , i should be poin ed ou ha music does no
always change he emo ions o he pe son who lis-
ens o i . How well i wo ks and how he pe son
eels depends on many ac o s. One conce n is how
long he pe son lis ens o he music. Song e al. [6]
used he K uskal-Wallis es and ound ha people
ook mo e ime o eel sadness o elaxa ion han
happiness o ange when lis ening o music. The
au ho s also looked a how people’s mood ma ched
he emo ions ha he music was supposed o induce.
They ound no significan di e ences in how as
people el emo ions, bu hey ound a posi i e e-
la ionship be ween hem. This means ha people
o en eel he same emo ions as hose insc ibed in
he music. Hence, based on emo ion ecogni ion in
music, a ecommende sys em may sugges simila
songs o he ones he use lis ens o o ask he use s
wha mood hey a e in o p esen hem wi h a sui -
able song.
Bo h he ly ics and he melody cause he emo-
ions induced by lis ening o a music ack [7].
Mo eo e , ly ical and audio ea u es p o ide dis-
inc and complemen a y in o ma ion abou he
emo ional con en o music. Al hough audio cap-
u es music’s onal and exp essi e elemen s, ly ics
con ibu e o seman ic and con ex ual unde s and-
ing. Combining hese modali ies ensu es ha he
sys em can s ill p oduce meaning ul p edic ions
when one modali y is less eliable [8]. This may
happen, o example, o complex ins umen al
music wi h a iny dose o ly ics o ap wi h a
mono onous melodic line o e flowing wi h con en
in he ly ical laye . Hence, au oma ic labeling is
a p ocess in which a sys em au onomously ags a
music ack based on audio con en , such as music
cha ac e is ics (music gen e, hy hm, o emo ions)
o seman ic anno a ions, ei he manual, collec ed
om social agging se ices, o Web con en min-
ing [9].
Al hough p e ious s udies ha e in es iga ed
emo ion ecogni ion om ly ics o audio indepen-
den ly, a comp ehensi e app oach in eg a ing bo h
modali ies emains unde explo ed. Hence, combin-
ing mul iple modali ies—such as audio, ex , ideo,
and image— o cap u e he complexi y and di e si y
o human emo ions could enhance emo ion ecog-
ni ion [10, 11]. The e o e, he mo i a ion behind
ou wo k is o fi s conduc a unimodal s udy on
ly ics and music emo ion classifica ion, and hen
compa e i wi h a bimodal app oach. Mo eo e ,
we would like o check bo h adi ional and deep-
lea ning app oaches ha au oma ically label music
acks based on he emo ions hey induce. To ha
end, we classi y ly ics in o ou classes o emo ion
(happy, ang y, elaxed, and sad), and hese classes
can be di ec ly in e ed om he ou quad an s
o Russell’s Valence-A ousal (each quad an co e-
sponds o one o ou ou classes).
1.1 Rela ed wo k
Algo i hms ha e become inc easingly in ol ed
in music in ecen yea s [12, 13, 14]. They a e
used o asks such as ecommending music, com-
posing songs, imp o ing sound quali y, emo ing
noise, and adjus ing song empo. Many o hese al-
go i hms ely on a ificial in elligence (AI), pa ic-
ula ly machine lea ning (ML), which enables hem
o lea n om da a and expe ience, iden i y pa e ns,
and make p edic ions. Some sys ems can au oma -
ically label music, bu hey s ill equi e u he im-
p o emen o enhance accu acy, obus ness, and e-
liabili y. Addi ionally, a use -da a-d i en app oach
is essen ial, especially o pe sonaliza ion. This in-
ol es adap ing an applica ion o make use s eel
i is ailo ed specifically o hem, as explained by
Ba a a and Coelho [15]. Pe sonaliza ion depends
on collec ing use da a and analyzing hei in e ac-
ions wi h he pla o m. I also le e ages big da a
analy ics o p edic use p e e ences [16]. This in-
o ma ion is ga he ed as use s lis en o music, al-
lowing he ecommenda ion model o con inuously
efine i sel based on hei music p e e ences. As a
esul , pe sonalized music playlis s can be c ea ed
o ma ch a use ’s daily ac i i ies and mood.
Va ious me hods and echniques can be used o
analyze and in e p e emo ions, such as signal p o-
cessing, compu e ision, and na u al language p o-
cessing. Fea u e-based app oaches, such as hose
o Schmid e al. (2010) [17], ha e demons a ed
he u ili y o hand-c a ed acous ic ea u es o au-
dio classifica ion. Bimodal app oaches, as shown
in he wo k o Yang e al. (2008) [18], u he im-
p o e emo ion classifica ion by in eg a ing audio
and ly ical ea u es o mo e accu a e p edic ions.
Deep lea ning me hods, including CNN a chi ec-
u es o audio [19, 20, 21, 22], wo d embedding
217
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
ecogni ion sys em may be, a he same ime, ca-
pable o iden i ying human emo ional s a es. How-
e e , i should be poin ed ou ha music does no
always change he emo ions o he pe son who lis-
ens o i . How well i wo ks and how he pe son
eels depends on many ac o s. One conce n is how
long he pe son lis ens o he music. Song e al. [6]
used he K uskal-Wallis es and ound ha people
ook mo e ime o eel sadness o elaxa ion han
happiness o ange when lis ening o music. The
au ho s also looked a how people’s mood ma ched
he emo ions ha he music was supposed o induce.
They ound no significan di e ences in how as
people el emo ions, bu hey ound a posi i e e-
la ionship be ween hem. This means ha people
o en eel he same emo ions as hose insc ibed in
he music. Hence, based on emo ion ecogni ion in
music, a ecommende sys em may sugges simila
songs o he ones he use lis ens o o ask he use s
wha mood hey a e in o p esen hem wi h a sui -
able song.
Bo h he ly ics and he melody cause he emo-
ions induced by lis ening o a music ack [7].
Mo eo e , ly ical and audio ea u es p o ide dis-
inc and complemen a y in o ma ion abou he
emo ional con en o music. Al hough audio cap-
u es music’s onal and exp essi e elemen s, ly ics
con ibu e o seman ic and con ex ual unde s and-
ing. Combining hese modali ies ensu es ha he
sys em can s ill p oduce meaning ul p edic ions
when one modali y is less eliable [8]. This may
happen, o example, o complex ins umen al
music wi h a iny dose o ly ics o ap wi h a
mono onous melodic line o e flowing wi h con en
in he ly ical laye . Hence, au oma ic labeling is
a p ocess in which a sys em au onomously ags a
music ack based on audio con en , such as music
cha ac e is ics (music gen e, hy hm, o emo ions)
o seman ic anno a ions, ei he manual, collec ed
om social agging se ices, o Web con en min-
ing [9].
Al hough p e ious s udies ha e in es iga ed
emo ion ecogni ion om ly ics o audio indepen-
den ly, a comp ehensi e app oach in eg a ing bo h
modali ies emains unde explo ed. Hence, combin-
ing mul iple modali ies—such as audio, ex , ideo,
and image— o cap u e he complexi y and di e si y
o human emo ions could enhance emo ion ecog-
ni ion [10, 11]. The e o e, he mo i a ion behind
ou wo k is o fi s conduc a unimodal s udy on
ly ics and music emo ion classifica ion, and hen
compa e i wi h a bimodal app oach. Mo eo e ,
we would like o check bo h adi ional and deep-
lea ning app oaches ha au oma ically label music
acks based on he emo ions hey induce. To ha
end, we classi y ly ics in o ou classes o emo ion
(happy, ang y, elaxed, and sad), and hese classes
can be di ec ly in e ed om he ou quad an s
o Russell’s Valence-A ousal (each quad an co e-
sponds o one o ou ou classes).
1.1 Rela ed wo k
Algo i hms ha e become inc easingly in ol ed
in music in ecen yea s [12, 13, 14]. They a e
used o asks such as ecommending music, com-
posing songs, imp o ing sound quali y, emo ing
noise, and adjus ing song empo. Many o hese al-
go i hms ely on a ificial in elligence (AI), pa ic-
ula ly machine lea ning (ML), which enables hem
o lea n om da a and expe ience, iden i y pa e ns,
and make p edic ions. Some sys ems can au oma -
ically label music, bu hey s ill equi e u he im-
p o emen o enhance accu acy, obus ness, and e-
liabili y. Addi ionally, a use -da a-d i en app oach
is essen ial, especially o pe sonaliza ion. This in-
ol es adap ing an applica ion o make use s eel
i is ailo ed specifically o hem, as explained by
Ba a a and Coelho [15]. Pe sonaliza ion depends
on collec ing use da a and analyzing hei in e ac-
ions wi h he pla o m. I also le e ages big da a
analy ics o p edic use p e e ences [16]. This in-
o ma ion is ga he ed as use s lis en o music, al-
lowing he ecommenda ion model o con inuously
efine i sel based on hei music p e e ences. As a
esul , pe sonalized music playlis s can be c ea ed
o ma ch a use ’s daily ac i i ies and mood.
Va ious me hods and echniques can be used o
analyze and in e p e emo ions, such as signal p o-
cessing, compu e ision, and na u al language p o-
cessing. Fea u e-based app oaches, such as hose
o Schmid e al. (2010) [17], ha e demons a ed
he u ili y o hand-c a ed acous ic ea u es o au-
dio classifica ion. Bimodal app oaches, as shown
in he wo k o Yang e al. (2008) [18], u he im-
p o e emo ion classifica ion by in eg a ing audio
and ly ical ea u es o mo e accu a e p edic ions.
Deep lea ning me hods, including CNN a chi ec-
u es o audio [19, 20, 21, 22], wo d embedding
A BIMODAL DEEP MODEL TO . . .
ep esen a ions o ly ics [23], and T ans o me -
based a en ion mechanisms [24], ha e been shown
o enhance classifica ion accu acy h ough au o-
ma ic ea u e ex ac ion. Ag awal e al. ou lined
wo app oaches: he fi s being a mul i ask app oach
inco po a ing bo h emo ion and Russell’s Valence-
A ousal dimensions, and he second a single- ask
app oach ocused solely on emo ion classifica ion
[24]. Han e al. (2022) [25] highligh ha music
emo ion ecogni ion sys ems ha e e ol ed om a-
di ional hand-c a ed ea u e-based machine lea n-
ing o deep lea ning models ha lea n ea u e ep e-
sen a ions au oma ically. In addi ion, p e ious s ud-
ies ha e explo ed mul imodal lea ning pa adigms
ha in eg a e audio and ly ical inpu o imp o e
emo ion ecogni ion [26, 27]. Delbouys e al.
(2018) [27] highligh he ad an ages o deep lea n-
ing o e classical models in music mood de ec-
ion. Thei wo k compa es adi ional ea u e-based
app oaches wi h end- o-end deep lea ning mod-
els, showing ha deep models significan ly ou pe -
o m classical me hods in a ousal de ec ion, while
alence p edic ion benefi s om mul imodal mid-
le el usion.
1.2 S udy ou line
Compa ison o he cu en s anda d, i.e., deep
lea ning (DM) models wi h classical algo i hms,
such as suppo ec o machines (SVM), in expe i-
men s on music, ly ics, and emo ion analysis, may
be insigh ul. SVMs in such s udies we e o en used
as baselines as hey a e well unde s ood and ha e
a long his o y o obus pe o mance on s uc u ed
and mode a ely complex da a. Ano he impo an
poin is ha his may also help o quan i y how
much imp o emen (i any) deep models p o ide
and whe he he added complexi y o deep lea ning
is jus ified. Mo eo e , SVM does no equi e mas-
si e compu a ional esou ces, bu i s ill p o ides in-
sigh s in o he impo ance o ea u es and decision
bounda ies. This is an easily in e p e able bench-
ma k agains which he pe o mance o deep mod-
els can be measu ed. In he case o a mode a ely
sized da ase , he compa ison can e eal whe he
he deep models le e age hei capaci y o o e fi .
Also, SVM and o he baseline algo i hms ely on
p e-p ocessed ea u es, while deep lea ning models
lea n ea u es au oma ically. Compa ison o pe o -
mances o , o example, SVM and DM can high-
ligh whe he ex ac ed ea u es add alue in he
con ex o music, ly ics, and emo ion e alua ion.
Tha is why ou in es iga ions s a wi h he
baseline algo i hms o unimodal emo ion classifi-
ca ion and hen c ea e a bimodal sys em o label-
ing music acks using s a e-o - he-a deep neu al
ne wo ks. Using ad anced neu al a chi ec u es o
bo h ly ic and audio p ocessing, he s udy a emp s
o imp o e he accu acy o emo ion classifica ion.
Fu he mo e, he use o di e se musical gen es en-
su es he obus ness o he p oposed app oach, mak-
ing i adap able o a wide ange o musical s yles.
The a chi ec u e o he applied bimodal neu al ne -
wo k model consis s o a na u al language module
o p ocess ly ics and an audio module o p ocess-
ing he sound ack o music exce p s (see Figu e 1).
Each module allows o he classifie model ain-
ing om sui able p ep ocessed aining co pus (i.e.,
ly ic co pus and audio co pus o he na u al lan-
guage module and he audio module, espec i ely),
as well as using hese lea ned models o classi y
new ly ics and audio. Bo h modules a e connec ed
a he decision s age.
To e alua e and compa e all he app oaches, we
explo ed h ee da abases wi h espec o he s a e-
o - he-a : Music4All [28], MoodyLy ics [29], and
MoodyLy ics4Q [30]. Music4All consis s o o e
15 housand songs ep esen ed by hei ly ics, 30-
second exce p s o hei audio clips, and o he a -
ibu es (a is , gen e, popula i y, ags, e c.). The
acks we e collec ed om many di e en sou ces
and hei ags we e no uni o m. The Music4All
da abase o e s a con inuous emo ion ep esen a-
ion acco ding o Thaye ’s model [31]. Such an
app oach allows mapping A ousal-Valence quad-
an s in o ou emo ions, bu he bounda ies a e
no fixed: o one emo ion, he bounda ies may
be in line wi h he A ousal-Valence axes, and o
ano he one, hey may be sligh ly shi ed. An al-
e na i e app oach is he disc e e ep esen a ion o
emo ions, which is mo e na u al o human e al-
ua ion. MoodyLy ics [29] con ains 2,595 labeled
songs along wi h hei ack i les and a is s. The
c ea o s o his da ase anno a ed each song wi h
one o he ou emo ion classes o Russel’s model
[32]: happy, ang y, elaxed, and sad. Moody-
Ly ics4Q [30] is a da ase con aining 2000 songs
om he unk, ock, jazz, elec onic, pop, blues,
and coun y music gen es. Each song is ep esen ed
218 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
Figu e 1. Expe imen al design
by he a is ’s name, he song’s i le, and he emo-
ion class assigned by las . m [33] use s (happy, an-
g y, elaxed, o sad). The whole se o songs is
dis ibu ed in o 500 pieces o each emo ion class.
Howe e , he da ase does no con ain ei he he
ly ics o he audio o he songs, so we had o ge
hem om o he se ices, as desc ibed in Sec ion
(2.1). When compa ing MoodyLy ics and Moody-
Ly ics4Q, he la e has ewe epea ed songs and
mo e accu a e assignmen s o emo ional labels o
songs [28, 30]. Tha is why we decided o employ
MoodyLy ics4Q [29] in ou s udy.
The pape is o ganized as ollows. Sec ion 2
shows how MoodyLy ics4Q is supplemen ed wi h
ly ics e ie ed om Genius [34] and audio ex-
ac ed om YouTube [35]. Sec ion 3 encompasses
unimodal based on ly ics and audio, as well as join
modali ies, i.e., bimodal emo ion classifica ion. I
also con ains ly ics and audio p ep ocessing. Sec-
ion 3.2 summa izes he esul s achie ed in a uni-
modal app oach by each o he esea ched algo-
i hms. This is ollowed by audio p ep ocessing
and classifica ion, o which SVM, Incep ion V3,
ResNe amily, VGGNe , and Incep ion-ResNe a e
employed, p esen ed along wi h he esul s ob ained
(see Sec ions 3.3 and 3.4). In Sec ion 3, bimodal
emo ion classifica ion is also examined based on
majo i y o ing ensemble me hodology. The e-
sul s achie ed show ha combining wo modali ies
imp o es, o some ex en , he me ics o he final
model compa ed o sepa a ely ope a ing a chi ec-
u es. This indica es he e ec i eness o he bi-
modal app oach and sugges s ha such an app oach
may be applied in o he sys ems ela ed o emo ion
classifica ion based on music acks. The pape dis-
cusses he esul s om he pe o med expe imen s
and compa es hem wi h simila app oaches om
he li e a u e (see Sec ion 4). The o e all conclu-
sion, along wi h limi a ions, is also gi en. Also,
possible ways o enhance he sys em’s pe o mance
a e ou lined.
Finally, ou esea ch con ibu es significan ly
by iden i ying and add essing e o s and incon-
sis encies wi hin he MoodyLy ics and Moody-
Ly ics4Q da ase s. Specifically, we highligh hese
issues and p opose p ep ocessing s eps, such as e-
mo ing duplica es and ins umen al songs, while
ocusing solely on he English da ase o ly ic clas-
sifica ion. As a esul , ou final compa ison ocuses
solely on he English da ase . Fu he mo e, ou
findings demons a e ha he majo i y o ing en-
semble e ec i ely classifies h ee ou o ou emo-
ions—happy, ang y, and elaxed—while he con-
ca ena ion ensemble demons a es g ea e eliabil-
i y ac oss all emo ional ca ego ies.
All in es iga ions p esen ed in his pape we e
ca ied ou on a compu a ional clus e p o ided by
he Gda´
nsk Uni e si y o Technology (GUT). This
de ice has a 10-co e CPU In el Xeon Sil e 4210,
clocked a 2.20 GHz and 378 GB o RAM, sup-
po ed by NVIDIA A40 wi h 46 GB memo y, which
enables u ilizing GPUs o compu a ion [36].
2 Da a P epa a ion
In his sec ion, he p ocess in ol ed in p epa -
ing he da a used o he expe imen s was desc ibed.
This included explo ing he da ase and spli ing
i in o app op ia e subse s o ensu e balanced and
e ec i e model aining. As al eady men ioned
219
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
Figu e 1. Expe imen al design
by he a is ’s name, he song’s i le, and he emo-
ion class assigned by las . m [33] use s (happy, an-
g y, elaxed, o sad). The whole se o songs is
dis ibu ed in o 500 pieces o each emo ion class.
Howe e , he da ase does no con ain ei he he
ly ics o he audio o he songs, so we had o ge
hem om o he se ices, as desc ibed in Sec ion
(2.1). When compa ing MoodyLy ics and Moody-
Ly ics4Q, he la e has ewe epea ed songs and
mo e accu a e assignmen s o emo ional labels o
songs [28, 30]. Tha is why we decided o employ
MoodyLy ics4Q [29] in ou s udy.
The pape is o ganized as ollows. Sec ion 2
shows how MoodyLy ics4Q is supplemen ed wi h
ly ics e ie ed om Genius [34] and audio ex-
ac ed om YouTube [35]. Sec ion 3 encompasses
unimodal based on ly ics and audio, as well as join
modali ies, i.e., bimodal emo ion classifica ion. I
also con ains ly ics and audio p ep ocessing. Sec-
ion 3.2 summa izes he esul s achie ed in a uni-
modal app oach by each o he esea ched algo-
i hms. This is ollowed by audio p ep ocessing
and classifica ion, o which SVM, Incep ion V3,
ResNe amily, VGGNe , and Incep ion-ResNe a e
employed, p esen ed along wi h he esul s ob ained
(see Sec ions 3.3 and 3.4). In Sec ion 3, bimodal
emo ion classifica ion is also examined based on
majo i y o ing ensemble me hodology. The e-
sul s achie ed show ha combining wo modali ies
imp o es, o some ex en , he me ics o he final
model compa ed o sepa a ely ope a ing a chi ec-
u es. This indica es he e ec i eness o he bi-
modal app oach and sugges s ha such an app oach
may be applied in o he sys ems ela ed o emo ion
classifica ion based on music acks. The pape dis-
cusses he esul s om he pe o med expe imen s
and compa es hem wi h simila app oaches om
he li e a u e (see Sec ion 4). The o e all conclu-
sion, along wi h limi a ions, is also gi en. Also,
possible ways o enhance he sys em’s pe o mance
a e ou lined.
Finally, ou esea ch con ibu es significan ly
by iden i ying and add essing e o s and incon-
sis encies wi hin he MoodyLy ics and Moody-
Ly ics4Q da ase s. Specifically, we highligh hese
issues and p opose p ep ocessing s eps, such as e-
mo ing duplica es and ins umen al songs, while
ocusing solely on he English da ase o ly ic clas-
sifica ion. As a esul , ou final compa ison ocuses
solely on he English da ase . Fu he mo e, ou
findings demons a e ha he majo i y o ing en-
semble e ec i ely classifies h ee ou o ou emo-
ions—happy, ang y, and elaxed—while he con-
ca ena ion ensemble demons a es g ea e eliabil-
i y ac oss all emo ional ca ego ies.
All in es iga ions p esen ed in his pape we e
ca ied ou on a compu a ional clus e p o ided by
he Gda´
nsk Uni e si y o Technology (GUT). This
de ice has a 10-co e CPU In el Xeon Sil e 4210,
clocked a 2.20 GHz and 378 GB o RAM, sup-
po ed by NVIDIA A40 wi h 46 GB memo y, which
enables u ilizing GPUs o compu a ion [36].
2 Da a P epa a ion
In his sec ion, he p ocess in ol ed in p epa -
ing he da a used o he expe imen s was desc ibed.
This included explo ing he da ase and spli ing
i in o app op ia e subse s o ensu e balanced and
e ec i e model aining. As al eady men ioned
A BIMODAL DEEP MODEL TO . . .
and jus ified in Sec ion 1, we employed Moody-
Ly ics4Q [29] in ou s udy.
2.1 Da ase C ea ion
The da ase was c ea ed in wo phases: a e-
ie al phase and a fil e ing phase. The e ie al
phase consis ed o ob aining he ly ics and audio
o each song included in he da ase . We e ie ed
ly ics om Genius [34] because o i s pa ne ship
wi h Spo i y [37], one o he la ges music s eam-
ing se ices. We used he Genius API o his pu -
pose. Fo audio e ie al, we used he YouTube
pla o m [35] ins ead o he Spo i y API. This de-
cision was due o wo p ima y easons: he incom-
ple e a ailabili y o all songs in he selec ed da ase
on Spo i y and he inabili y o selec specific audio
segmen s o analysis (e.g., beginning, middle, o
end). A sc aping sc ip was implemen ed o down-
load all he equi ed acks om YouTube. The
Pa y lib a y [38] was used in conjunc ion wi h he
Mo iePy module [39] o con e YouTube ideos
in o MP3 o ma o subsequen analysis.
Al hough i is no possible o download mul iple
high-quali y audios belonging o specific albums
and a is s ully au oma ically due o a ia ions in
eco ding quali y, such as li e eco dings om con-
ce s o audience pa icipa ion, in oughly 2% o he
da ase , we sea ched o highe -quali y songs and
pe o med manual eplacemen s as needed.
The fil e ing phase consis ed o emo ing e-
dundan eco ds om he da ase . The duplica es
we e emo ed ( hey a e no lis ed he e due o he
space limi ; howe e , his in o ma ion is a ailable
om he au ho s on eques ). A e emo ing du-
plica es, he da abase con ained 1990 songs. On he
o he hand, i was ound ha mos o he esul ing
songs a e in English, conc e ely, 1883 songs, while
102 a e dis ibu ed in o he 21 languages, and 5 a e
ins umen al songs. Due o he ac ha he da ase
is s ongly biased owa ds English, we decided o
conside songs in o he languages and ins umen al
songs as ou lie s (a ound 5% o he MoodyLy ic4Q
eco ds).
In o al, he final ly ical da ase (English ly ic
da ase ) used o ou expe imen s con ains 1883
ly ics. As shown in Table 1, he numbe o songs
assigned o each class indica es ha he ou classes
a e well-balanced.
Table 1. Emo ion assignmen o classes in he
English ly ic da ase .
Emo ion
Label
Happy Ang y Sad Relaxed
Numbe
o Songs
471 491 462 459
2.2 Da a Pa i ion
The da ase s we e pa i ioned in o h ee sub-
se s: aining, alida ion, and es . The aining
se employed o he eaching model comp ised
70% o he o al da a. The alida ion se , used o
alida e he model and hype pa ame e uning, ac-
coun ed o 15%, while he es se , assessing he
final model’s gene aliza ion, consis ed o he e-
maining 15%. Table 2 p o ides a dis ibu ion o he
songs among he classes ac oss he da a pa i ions.
I indica es an e en dis ibu ion o lea ning exam-
ples wi hin each subse , ensu ing equi able ep e-
sen a ion o model aining.
Table 2. Dis ibu ion o he classes in he da ase
pa i ions.
Emo ion
Label
Happy Ang y Sad Relaxed
Numbe o
T aining
Songs
350 348 348 347
Numbe o
Valida ion
Songs
75 75 75 74
Numbe o
Tes Songs
75 74 74 75
Table 3. Dis ibu ion o he classes in he English
ly ic da ase pa i ions.
Emo ion
Label
Happy Ang y Sad Relaxed
Numbe o
T aining
Songs
331 344 327 325
Numbe o
Valida ion
Songs
68 73 65 67
Numbe o
Tes Songs
72 74 70 67
Fo he English ly ic da ase , we used he same
di ision me hod o e en ually combine he audio
and ly ic elemen s, allowing us o c ea e he final
da ase . Table 3 shows he dis ibu ion o classes
220 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
o each pa i ion o he English ly ic da ase . De-
spi e he minimal obse ed disc epancy in he num-
be o examples in he subse s, his pa i ioning was
conside ed balanced.
3 Me hods
This Sec ion ou lines he de elopmen o a
bimodal deep-lea ning a chi ec u e o classi ying
emo ions in music acks. The p oposed app oach
in eg a es bo h ly ical and audio p ocessing o cap-
u e he emo ional nuances embedded wi hin musi-
cal pieces.
To e alua e classifica ion pe o mance, we em-
ployed mul iple me ics, including Accu acy, P eci-
sion, Recall, Suppo , and he F1 sco e.
3.1 Ly ics P ep ocessing
Se e al ex -cleaning ope a ions we e pe -
o med o each ly ic: he song i le was emo ed
om he ly ics, as well as punc ua ion ma ks, ag-
ging me ada a, and ex a newline con ol cha ac e s.
A e ha , pa -o -speech (PoS) agging was pe -
o med in o de o achie e mo pho-syn ac ic ea-
u es o some o he ly ics classifica ion me hods.
Fo such a p ocess, SpaCy agge , a Py hon NLP
oolki [40], was used.
Table 4 desc ibes some s a is ics ela ed o he
numbe o okens o he ly ics om he aining
se . In addi ion, Table 5 shows he dis ibu ion o
PoS ags occu ing in he ly ics (absolu e equen-
cies and pe cen ages pe PoS ag in pa en heses),
pai ing a en ion o hose PoS ags ha can exp ess
eelings (nouns, adjec i es, e bs, ad e bs, and in-
e jec ions). As seen om bo h ables, on a e age, a
ly ic is a ound 300 okens, and he numbe o wo ds
po en ially exp essing eelings in he da ase is high.
Table 4. S a is ics o he leng h in okens o a ly ic
o he English ly ic da ase .
Happy Ang y Sad Relaxed
Mean 375.96 342.63 228.97 230.21
Median 340.0 273.0 206.0 201.0
Maximum 1,432 1,321 1,199 872
Minimum 11 56 12 10
S anda d
De ia ion
198.84 224.76 134.74 135.04
F om Table 5, some ends can be disce ned
a p io i: a) in e jec ions occu significan ly mo e
imes in ly ics e oking ’Ang y’ (45.8%) han in
ly ics o he es o he ca ego ies, b) nouns and
e bs appea significan ly mo e imes in ly ics
e oking ’Ang y’ (30.2% and 31.9%, espec i ely)
and ’Sad’ (32.9% and 29.8%, espec i ely) han in
he es o ly ics.
Table 5. S a is ics o he PoS ags occu ing in he
English ly ic da ase .
PoS ag Happy Ang y Sad Relaxed
adjec i e 5,122
(20.1%)
7,888
(31.0%)
7,568
(29.8%)
4,858
(19.1%)
ad e b 6,470
(23.2%)
8,281
(29.7%)
7,041
(25.2%)
6,131
(22.0%)
in e jec ion 1,231
(11.9%)
4,729
(45.8%)
2,350
(22.8%)
2,007
(19.5%)
noun 14,846
(18.6%)
24,084
(30.2%)
26,287
(32.9%)
14,585
(18.3%)
e b 17,229
(19.3%)
28,484
(31.9%)
26,632
(29.8%)
16,914
(18.9%)
o he s 52,873
(20.0%)
82,461
(31.1%)
77,621
(29.3%)
51,955
(19.6%)
Knowing he dis ibu ion o he PoS ags
h oughou he da ase may allow checking whe he
hei dis ibu ion co esponds o exp essing eel-
ings in poe y [41]. Howe e , i is impo an
o no e ha unde s anding na u al language alone
does no accoun o he emo ional impac o po-
e y. As Johnson-Lai d and Oa ley [42] sug-
ges , p osody—encompassing me e , hy hm, and
hyme—enhances bo h emo ions and hei pe cep-
ion. This highligh s he significance o in eg a -
ing NLP wi h music p ocessing, as musical ea u es
play a c ucial ole in his con ex .
3.2 Ly ics Classifica ion
O e all, o ly ics classifica ion, ou di e en
app oaches we e compa ed using ou aining se :
a Suppo Vec o Machine (SVM) as a baseline, a
shallow neu al ne wo k (Fas Tex ), and wo neu al
ne wo ks, specifically a ou -laye A ificial Neu al
Ne wo k (ANN) and a ans o me -based app oach.
The ollowing sec ions desc ibe each o hese ap-
p oaches. Howe e , he s a ing poin is Sec ion
3.2.1, which ou lines he ea u e ex ac ion p ocess
employed by bo h he SVM and he 4-laye ANN
me hods.
221
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
o each pa i ion o he English ly ic da ase . De-
spi e he minimal obse ed disc epancy in he num-
be o examples in he subse s, his pa i ioning was
conside ed balanced.
3 Me hods
This Sec ion ou lines he de elopmen o a
bimodal deep-lea ning a chi ec u e o classi ying
emo ions in music acks. The p oposed app oach
in eg a es bo h ly ical and audio p ocessing o cap-
u e he emo ional nuances embedded wi hin musi-
cal pieces.
To e alua e classifica ion pe o mance, we em-
ployed mul iple me ics, including Accu acy, P eci-
sion, Recall, Suppo , and he F1 sco e.
3.1 Ly ics P ep ocessing
Se e al ex -cleaning ope a ions we e pe -
o med o each ly ic: he song i le was emo ed
om he ly ics, as well as punc ua ion ma ks, ag-
ging me ada a, and ex a newline con ol cha ac e s.
A e ha , pa -o -speech (PoS) agging was pe -
o med in o de o achie e mo pho-syn ac ic ea-
u es o some o he ly ics classifica ion me hods.
Fo such a p ocess, SpaCy agge , a Py hon NLP
oolki [40], was used.
Table 4 desc ibes some s a is ics ela ed o he
numbe o okens o he ly ics om he aining
se . In addi ion, Table 5 shows he dis ibu ion o
PoS ags occu ing in he ly ics (absolu e equen-
cies and pe cen ages pe PoS ag in pa en heses),
pai ing a en ion o hose PoS ags ha can exp ess
eelings (nouns, adjec i es, e bs, ad e bs, and in-
e jec ions). As seen om bo h ables, on a e age, a
ly ic is a ound 300 okens, and he numbe o wo ds
po en ially exp essing eelings in he da ase is high.
Table 4. S a is ics o he leng h in okens o a ly ic
o he English ly ic da ase .
Happy Ang y Sad Relaxed
Mean 375.96 342.63 228.97 230.21
Median 340.0 273.0 206.0 201.0
Maximum 1,432 1,321 1,199 872
Minimum 11 56 12 10
S anda d
De ia ion
198.84 224.76 134.74 135.04
F om Table 5, some ends can be disce ned
a p io i: a) in e jec ions occu significan ly mo e
imes in ly ics e oking ’Ang y’ (45.8%) han in
ly ics o he es o he ca ego ies, b) nouns and
e bs appea significan ly mo e imes in ly ics
e oking ’Ang y’ (30.2% and 31.9%, espec i ely)
and ’Sad’ (32.9% and 29.8%, espec i ely) han in
he es o ly ics.
Table 5. S a is ics o he PoS ags occu ing in he
English ly ic da ase .
PoS ag Happy Ang y Sad Relaxed
adjec i e 5,122
(20.1%)
7,888
(31.0%)
7,568
(29.8%)
4,858
(19.1%)
ad e b 6,470
(23.2%)
8,281
(29.7%)
7,041
(25.2%)
6,131
(22.0%)
in e jec ion 1,231
(11.9%)
4,729
(45.8%)
2,350
(22.8%)
2,007
(19.5%)
noun 14,846
(18.6%)
24,084
(30.2%)
26,287
(32.9%)
14,585
(18.3%)
e b 17,229
(19.3%)
28,484
(31.9%)
26,632
(29.8%)
16,914
(18.9%)
o he s 52,873
(20.0%)
82,461
(31.1%)
77,621
(29.3%)
51,955
(19.6%)
Knowing he dis ibu ion o he PoS ags
h oughou he da ase may allow checking whe he
hei dis ibu ion co esponds o exp essing eel-
ings in poe y [41]. Howe e , i is impo an
o no e ha unde s anding na u al language alone
does no accoun o he emo ional impac o po-
e y. As Johnson-Lai d and Oa ley [42] sug-
ges , p osody—encompassing me e , hy hm, and
hyme—enhances bo h emo ions and hei pe cep-
ion. This highligh s he significance o in eg a -
ing NLP wi h music p ocessing, as musical ea u es
play a c ucial ole in his con ex .
3.2 Ly ics Classifica ion
O e all, o ly ics classifica ion, ou di e en
app oaches we e compa ed using ou aining se :
a Suppo Vec o Machine (SVM) as a baseline, a
shallow neu al ne wo k (Fas Tex ), and wo neu al
ne wo ks, specifically a ou -laye A ificial Neu al
Ne wo k (ANN) and a ans o me -based app oach.
The ollowing sec ions desc ibe each o hese ap-
p oaches. Howe e , he s a ing poin is Sec ion
3.2.1, which ou lines he ea u e ex ac ion p ocess
employed by bo h he SVM and he 4-laye ANN
me hods.
A BIMODAL DEEP MODEL TO . . .
3.2.1 Fea u e Ex ac ion o SVM and 4-Laye
ANN
The ea u e se ex ac ed om he ly ics was
based on he me hodology p oposed by Giammusso
e al. [23]. We conduc ed a P incipal Componen
Analysis (PCA) on he selec ed ly ics ea u es, and
he esul s demons a ed ha a iance is dis ibu ed
ac oss mul iple componen s a he han being con-
cen a ed in jus a ew. Gi en ha no single p inci-
pal componen domina ed he a iance, we decided
o use all he selec ed ea u es om Giammusso e
al. [23]. The e o e, ea u es included:
– pe cen age o p esen pas ense e bs
ca.lcula ed as he a io o p esen pas ense
e bs o he o al numbe o e bs;
– pe cen age o adjec i es as he a io o adjec i es
o he o al numbe o wo ds;
– pe cen age o punc ua ion, i.e., he a io o punc-
ua ion ma ks o he o al numbe o wo ds;
– pe cen age o echoism defined as he a io o
echoisms, ei he a sequence o wo subsequen
epea ed wo ds o he epe i ion o a owel in
a wo d, e.g., ’yeaaaah’ o he o al numbe o
wo ds;
– pe cen age o duplica ed lines as he a io o du-
plica ed lines o he o al numbe o lines in he
ly ic;
– p esence o he i le, i.e., a Boolean alue indi-
ca ing whe he he ly ic con ains he i le s ing;
– sen imen pola i y quan i ying he deg ee o pos-
i i i y [close o 1], neu ali y [0], o nega i i y
[close o -1] p esence in he ly ics;
– subjec i i y deg ee measu ing he amoun o
pe sonal opinion e sus ac ual in o ma ion.
These ea u es we e combined wi h a wo d em-
bedding ec o gene a ed using SpaCy’s p e- ained
language model, which is based on GloVe [43].
S opwo ds we e emo ed du ing his s ep o en-
su e ha he embeddings ocused on meaning ul
con en . The eason o selec ing hese ea u es
comes om hei abili y o cap u e bo h he linguis-
ic s uc u e and s ylis ic elemen s in he song ly ics.
The ele ance o he selec ed ea u es was e alua ed
and he pe cen age o punc ua ion ma ks was ound
o be less significan , while he o he ea u es we e
conside ed ele an . This in o ma ion is con ained
in Table 6.
Fo pa s-o -speech agging and gene a ing
wo d embedding ec o s, SpaCy pipelining o En-
glish (“en co e web lg” e sion 3.5.0 [44]) was u i-
lized. Sen imen analysis o he ly ics was con-
duc ed using Tex Blob o Py hon ( e sion 0.16.0)
[45], which p o ided bo h sen imen pola i y and
subjec i i y deg ee.
Table 6. Fea u es ex ac ed o SVM and 4-laye
ANN app oaches.
Fea u e Desc ip ion Scope
The % o p esen ense e bs [1, 100]
The % o pas ense e bs [1, 100]
The % o adjec i es [1, 100]
The % o punc ua ion ma ks [1, 100]
The % o echoes [1, 100]
The % o duplica ed lines [1, 100]
Ti le p esence [T ue o False]
Sen imen pola i y [-1.0, 1.0]
Subjec i i y deg ee [0.0, 1.0]
Wo d embedding ec o [1 x 300]
To al numbe o ea u es 310
The final ea u e ec o o each ly ic was o di-
mension 1 x 310, making i sui able o inpu in o
any machine lea ning classifie .
3.2.2 SVM App oach
The Sciki -Lea n [46] implemen a ion o SVM
was used in ou expe imen s. Using 10- old c oss-
alida ion o e he me ge o he aining and he al-
ida ion se s, we conduc ed a g id sea ch o find op-
imal ou comes in e ms o Accu acy o wo hype -
pa ame e s: egula iza ion pa ame e Cand ke nel
unc ion. E en hough g id sea ch has some limi a-
ions, such as ine ficiency in high-dimensional o
la ge sea ch spaces and he inabili y o p io i ize
p omising egions o he sea ch space, o s aigh -
o wa d and smalle p oblems, g id sea ch emains
a solid choice – in con as o al e na i e me hods
like Bayesian op imiza ion, andom sea ch, e c., as
i sys ema ically explo es he en i e sea ch space
by e alua ing all possible combina ions o specified
hype pa ame e s. The bes esul s we e achie ed
o he combina ion o a linea ke nel and C=
222 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
0.01. The SVM eached 57.1% (+/- 2.9%) accu acy
on a e age on he alida ion pa i ions; e y small
s anda d de ia ion alues indica e ha he achie ed
esul s a e s a is ically significan . Finally, he SVM
esul ed in 55.0% accu acy on he es se .
3.2.3 4-Laye s ANN App oach
A model was designed wi h ou dense laye s,
and a d opou laye was applied a e each laye o
a oid o e aining. ReLU ac i a ion unc ion was
used o he subsequen laye s, while a so max was
employed o he final laye . The deep model a chi-
ec u e is shown in Figu e 2.
Figu e 2. 4-laye ANN a chi ec u e.
Simila o he SVM app oach, a g id sea ch was
pe o med o find he op imal combina ion o hy-
pe pa ame e s in e ms o Accu acy. The model
was ained o a fixed numbe o epochs while
moni o ing he alida ion loss. Models wi h highe
d opou a es exhibi ed lowe aining accu acy bu
be e gene aliza ion pe o mance. Inc easing he
numbe o neu ons in he dense laye s showed an
imp o emen in pe o mance. Finally, lowe lea n-
ing a es and la ge ba ch sizes gene ally led o
mo e s able aining and be e gene aliza ion. The
bes esul s we e ob ained o lea ning a e = 0.01,
ba ch size = 64, epochs = 20, dense size = 128, and
d opou = 0.3. I achie ed 54.1% accu acy on he
alida ion se and 53.9% on he es se .
3.2.4 Fas Tex App oach
One o he key challenges in ly ic classifica-
ion is cap u ing he nuanced con ex ual ela ion-
ships be ween wo ds, which o en con ey emo ion,
s yle, and gen e-specific pa e ns. To add ess his,
Fas Tex was used because o i s abili y o e ec-
i ely cap u e subs uc u e a he wo d le el and
con ex ual in o ma ion. Fas Tex le e ages wo d n-
g ams o ep esen ex , allowing he model o cap-
u e local wo d dependencies and pa e ns mo e e -
ec i ely, which a e c ucial in ly ics, whe e emo ion
equen ly depends on he a angemen o jus a ew
wo ds.
This algo i hm ep esen s each wo d in he
ly ics as a uni and gene a es a se o n-g ams om
he sequence o wo ds wi hin a defined con ex win-
dow. These n-g ams allow he model o encode
wo d o de and neighbo hood pa e ns ha enhance
i s classifica ion capabili ies. Fo example, consid-
e ing a ly ic segmen ”Take me down o he Pa -
adise Ci y” om Guns N’ Roses [47] wi h fi e as
he size o he con ex window, he gene a ed wo d
n-g ams include:
– Unig ams: “Take,” “me,” “down,” “ o,” “ he,”
“pa adise,” “ci y”;
– Big ams: “Take me,” “me down,” “down o,”
“ o he,” “ he pa adise,” “pa adise ci y”;
– T ig ams: “Take me down,” “me down o,”
“down o he,” “ o he pa adise,” “ he pa adise
ci y”;
Fas Tex 0.9.2 [48] was used in ou expe i-
men . The ollowing pa ame e s and hype pa am-
e e s o his unc ion we e expe imen ed wi h: n-
g ams leng h (maximum leng h o a cha ac e n-
g am), window size (size o he con ex window o
a gi en n-g am), lea ning a e, numbe o epochs,
loss unc ion (so max - p e e ed o his kind
o classifica ion p oblem; o hie a chical so max).
The pa ame e s and hype pa ame e s we e ini ially
uned based on ou domain knowledge and in u-
i ion. Subsequen ly, he au o une unc ion p o ided
by Fas Tex was employed o efine hese pa ame-
e s u he . Finally, he op imal model was selec ed
by obse ing he classifica ion me ics on he ali-
da ion se . The bes esul s we e ob ained o wo d
n-g ams = 3; size o he con ex window = 5; loss
unc ion = so max;lea ning a e = 0.8; and he
numbe o epochs = 20. The model achie ed 51.9%
accu acy on he alida ion se and 48.2% on he es
se .
3.2.5 T ans o me -Based App oach
Ou ans o me -based app oach is based on he
expe imen desc ibed by Ag awal e al. [24] us-
ing a fine- uned XLNe . Howe e , he implemen-
a ion di e s as he goal o ou s udy - as al eady
men ioned - was o classi y ly ics in o ou classes
o emo ion (happy, ang y, elaxed, and sad) wi h-
ou conside ing he es o he ou pu s achie ed by
223
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
0.01. The SVM eached 57.1% (+/- 2.9%) accu acy
on a e age on he alida ion pa i ions; e y small
s anda d de ia ion alues indica e ha he achie ed
esul s a e s a is ically significan . Finally, he SVM
esul ed in 55.0% accu acy on he es se .
3.2.3 4-Laye s ANN App oach
A model was designed wi h ou dense laye s,
and a d opou laye was applied a e each laye o
a oid o e aining. ReLU ac i a ion unc ion was
used o he subsequen laye s, while a so max was
employed o he final laye . The deep model a chi-
ec u e is shown in Figu e 2.
Figu e 2. 4-laye ANN a chi ec u e.
Simila o he SVM app oach, a g id sea ch was
pe o med o find he op imal combina ion o hy-
pe pa ame e s in e ms o Accu acy. The model
was ained o a fixed numbe o epochs while
moni o ing he alida ion loss. Models wi h highe
d opou a es exhibi ed lowe aining accu acy bu
be e gene aliza ion pe o mance. Inc easing he
numbe o neu ons in he dense laye s showed an
imp o emen in pe o mance. Finally, lowe lea n-
ing a es and la ge ba ch sizes gene ally led o
mo e s able aining and be e gene aliza ion. The
bes esul s we e ob ained o lea ning a e = 0.01,
ba ch size = 64, epochs = 20, dense size = 128, and
d opou = 0.3. I achie ed 54.1% accu acy on he
alida ion se and 53.9% on he es se .
3.2.4 Fas Tex App oach
One o he key challenges in ly ic classifica-
ion is cap u ing he nuanced con ex ual ela ion-
ships be ween wo ds, which o en con ey emo ion,
s yle, and gen e-specific pa e ns. To add ess his,
Fas Tex was used because o i s abili y o e ec-
i ely cap u e subs uc u e a he wo d le el and
con ex ual in o ma ion. Fas Tex le e ages wo d n-
g ams o ep esen ex , allowing he model o cap-
u e local wo d dependencies and pa e ns mo e e -
ec i ely, which a e c ucial in ly ics, whe e emo ion
equen ly depends on he a angemen o jus a ew
wo ds.
This algo i hm ep esen s each wo d in he
ly ics as a uni and gene a es a se o n-g ams om
he sequence o wo ds wi hin a defined con ex win-
dow. These n-g ams allow he model o encode
wo d o de and neighbo hood pa e ns ha enhance
i s classifica ion capabili ies. Fo example, consid-
e ing a ly ic segmen ”Take me down o he Pa -
adise Ci y” om Guns N’ Roses [47] wi h fi e as
he size o he con ex window, he gene a ed wo d
n-g ams include:
– Unig ams: “Take,” “me,” “down,” “ o,” “ he,”
“pa adise,” “ci y”;
– Big ams: “Take me,” “me down,” “down o,”
“ o he,” “ he pa adise,” “pa adise ci y”;
– T ig ams: “Take me down,” “me down o,”
“down o he,” “ o he pa adise,” “ he pa adise
ci y”;
Fas Tex 0.9.2 [48] was used in ou expe i-
men . The ollowing pa ame e s and hype pa am-
e e s o his unc ion we e expe imen ed wi h: n-
g ams leng h (maximum leng h o a cha ac e n-
g am), window size (size o he con ex window o
a gi en n-g am), lea ning a e, numbe o epochs,
loss unc ion (so max - p e e ed o his kind
o classifica ion p oblem; o hie a chical so max).
The pa ame e s and hype pa ame e s we e ini ially
uned based on ou domain knowledge and in u-
i ion. Subsequen ly, he au o une unc ion p o ided
by Fas Tex was employed o efine hese pa ame-
e s u he . Finally, he op imal model was selec ed
by obse ing he classifica ion me ics on he ali-
da ion se . The bes esul s we e ob ained o wo d
n-g ams = 3; size o he con ex window = 5; loss
unc ion = so max;lea ning a e = 0.8; and he
numbe o epochs = 20. The model achie ed 51.9%
accu acy on he alida ion se and 48.2% on he es
se .
3.2.5 T ans o me -Based App oach
Ou ans o me -based app oach is based on he
expe imen desc ibed by Ag awal e al. [24] us-
ing a fine- uned XLNe . Howe e , he implemen-
a ion di e s as he goal o ou s udy - as al eady
men ioned - was o classi y ly ics in o ou classes
o emo ion (happy, ang y, elaxed, and sad) wi h-
ou conside ing he es o he ou pu s achie ed by
A BIMODAL DEEP MODEL TO . . .
Ag awal e al.’s implemen a ion. Hence, we de-
cided o implemen only he ou pu s ela ed o hese
quad an s. This allows he esul s ob ained o be
compa ed wi h o he app oaches dealing wi h he
da ase . In addi ion, as men ioned by Ag awal e al.
[24], he classifica ion in o ou ca ego ies (a single-
ask app oach) pe o ms ma ginally be e , and he
compu a ional cos is much lowe .
The a chi ec u e o he model is shown in Fig-
u e 3. The ans o me -based classifie is ed by
he ly ics, and he ou pu ed hidden s a es should
be passed o he Sequence Summa y block based
on he a e age alues o he hidden s a es. This
ec o passes o he ully connec ed laye , which is
di ec ly connec ed o he ou pu laye . A e ha ,
h ough he so max ac i a ion unc ion, we ob ain
he p obabili y ha a ly ic belongs o he gi en
class. Fo his app oach, he fine- uning o he p e-
ained models was applied.
Figu e 3. T ans o me -based model a chi ec u e.
To apply he fine- uning app oach, he T ans-
o me s - Py hon lib a y om Hugging Face [49]
was used; specifically, XLNe -base-cased [50], he
p e- ained model, was employed. Fo model ain-
ing, ollowing he expe imen au ho s [24], he op-
imize AdamW wi h a lea ning a e o 2e-5 was
employed. C oss-en opy was u ilized o calcula e
he loss. The emaining pa ame e s we e o fine-
uning used acco ding o he XLNe au ho s’ im-
plemen a ion [51]. The models we e fine- uned o
ou epochs, wi h ba ch size 32.
By obse ing lea ning cu es o aining and
alida ion se s, he op imal model was ound wi h
pa ame e s: numbe o embeddings = 256, ba ch
size = 64, lea ning a e = 1e-5, epochs = 4, and
wi hou applying lowe case du ing okeniza ion.
The model achie ed 62.3% accu acy on he alida-
ion se and 58.0% accu acy on he es se .
3.2.6 Bes Model o Ly ics Classifica ion
F om he conduc ed expe imen s, i can be con-
cluded ha he la ge size o he inpu embed-
ding posi i ely impac s classifica ion pe o mance;
none heless, i implies a much longe aining ime
and equi emen s o a ailable ope a ion memo y. I
should be, howe e , no ed ha he size o he ba ch
was selec ed expe imen ally; oo small o oo la ge
wo sened he gene aliza ion abili y o he model.
Table 7 summa izes he esul s achie ed by
each o he esea ched app oaches. Values o he
classifica ion me ics in he able a e he weigh ed
a e age. Compa ing he achie ed esul s, XLNe
cased shows p omising esul s, su passing o he al-
go i hms in accu acy measu e. The ea u e-based
app oach and Fas Tex sco ed simila esul s, bu
SVM p o ed o be he bes classifie o he fi s
h ee ML algo i hms. The highes accu acy was
achie ed by he ans o me -based app oach, and a
he same ime, i had he highes p ecision and e-
call. When he s udied models a e conside ed as a
ecommenda ion sys em, P ecision is a mo e impo -
an me ic han Recall, as bad ecommenda ion has
a di ec impac on lis ene dissa is ac ion.
Table 7. O e all esul s in % on he es se . Bold
alues indica e he bes -pe o ming model.
Classifie
app oach
P ecision Recall F1
sco e
Accu acy
Fea u e-
based SVM
54.8 55.0 54.9 55.0
Fea u e-
based ANN
54.0 53.9 53.9 53.9
Fas Tex -
based
50.3 50.4 50.3 48.2
T ans o me -
based
(XLNe
cased)
58.2 58.0 58.1 58.0
The e o e, he ans o me -based model was
conside ed he bes among he s udied app oaches
in e ms o classifica ion pe o mance.
The de ailed esul s o he classifica ion me -
ics o he mos p omising app oach (XLNe cased)
a e shown in Table 8. The esul s p esen ed we e
ob ained using he en i e es se , including song
ly ics in o he languages and ins umen al pieces
( ea ed as single whi e-space cha ac e s). The
model achie ed a high Recall alue o he An-
g y class and a bi lowe o he happy and e-
laxed classes. In con as , he model pe o med
mos poo ly in ecognizing he ly ics o music
pieces labeled as sad. The de ailed pe o mance
o he T ans o me -based app oach ac oss all emo-
230 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
3.5.2 Conca ena ed App oach
Ano he es ed app oach was combining mod-
els using he conca ena ion me hod. This echnique
me ges di e se ou pu s om wo sepa a e models
in o a single model, which can subsequen ly un
he aining phase, usually a he le el o he final
dense laye s. Howe e , i is impo an o no e ha
he da a dimensions can apidly become qui e la ge,
inc easing he isk o o e fi ing. To o e come his,
a s anda d solu ion is o employ p e- ained mod-
els, emo e he final classifica ion laye s and ac i-
a ions, and hen fine- une bo h pa ial models in-
cluded wi hin he ensemble model [60].
Figu e 11. Conca ena ed model a chi ec u e.
Simila o he p e ious app oach, he PyTo ch
lib a y was used. Fi s o all, a cus om ans o me -
based class needed o be implemen ed. This class
emo ed he las classifica ion laye along wi h he
so max ac i a ion. Following ha , he weigh s
om he p e iously ained ly ics model we e
loaded, along wi h he weigh s om Sa ka e al.’s
a chi ec u e (bo h wi hou he classifica ion laye
and so max unc ion) [22]. Nex , he models we e
ained using he ozen weigh s o he ly ics and
audio models, wi h he addi ion o a ious num-
be s o dense laye s and op ional d opou laye s.
The conduc ed g id sea ch did no significan ly im-
p o e he esul s. Following his, he op imal model
comp ised h ee Dense laye s (512, 256, and 128),
each ollowed by he ReLU ac i a ion me hod. The
model was ained on ba ch size=16, wi h lea ning
a e=1e-6 o 100 epochs. The simplified a chi ec-
u e is shown in Figu e 11.
The aining his o y o he concen a ion en-
semble model is displayed in Figu e 12 (accu acy
cu e) and Figu e 13 (loss cu e). As can be ob-
se ed, he bes model’s accu acy was ob ained be-
ween 80 h and 100 h epoch. Despi e a ious expe -
imen s wi h a highe numbe o epochs, alida ion
accu acy did no inc ease.
Figu e 12. Accu acy aining cu e o he
conca ena ed model a chi ec u e.
Figu e 13. Loss aining cu e o he
conca ena ed model a chi ec u e.
Ul ima ely, he model achie ed 58.9% accu acy
on he alida ion and 58.4% on he es se . The
me ics esul ing om he combined modali ies a e
p esen ed in Table 13. Compa ed o he pe o -
mance measu es calcula ed o he sepa a e audio
and ly ics modules, a significan imp o emen in
he F1 sco e was obse ed o he sad emo ion. Un-
o una ely, his imp o emen was accompanied by
a sligh de e io a ion in he F1 sco e o o he emo-
ions. The model appea s o pe o m ela i ely well
in classi ying elaxed and ang y emo ions. How-
e e , despi e he ema kable imp o emen in ecog-
nizing sad emo ion, i s ill s uggles wi h i s classi-
fica ion. The ela i ely high Recall o he elaxed
emo ion indica es ha he model has a low a e o
inco ec ly classi ying ins ances o he elaxed class
as ano he emo ion, which can also be obse ed in
Figu e 14.
231
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
3.5.2 Conca ena ed App oach
Ano he es ed app oach was combining mod-
els using he conca ena ion me hod. This echnique
me ges di e se ou pu s om wo sepa a e models
in o a single model, which can subsequen ly un
he aining phase, usually a he le el o he final
dense laye s. Howe e , i is impo an o no e ha
he da a dimensions can apidly become qui e la ge,
inc easing he isk o o e fi ing. To o e come his,
a s anda d solu ion is o employ p e- ained mod-
els, emo e he final classifica ion laye s and ac i-
a ions, and hen fine- une bo h pa ial models in-
cluded wi hin he ensemble model [60].
Figu e 11. Conca ena ed model a chi ec u e.
Simila o he p e ious app oach, he PyTo ch
lib a y was used. Fi s o all, a cus om ans o me -
based class needed o be implemen ed. This class
emo ed he las classifica ion laye along wi h he
so max ac i a ion. Following ha , he weigh s
om he p e iously ained ly ics model we e
loaded, along wi h he weigh s om Sa ka e al.’s
a chi ec u e (bo h wi hou he classifica ion laye
and so max unc ion) [22]. Nex , he models we e
ained using he ozen weigh s o he ly ics and
audio models, wi h he addi ion o a ious num-
be s o dense laye s and op ional d opou laye s.
The conduc ed g id sea ch did no significan ly im-
p o e he esul s. Following his, he op imal model
comp ised h ee Dense laye s (512, 256, and 128),
each ollowed by he ReLU ac i a ion me hod. The
model was ained on ba ch size=16, wi h lea ning
a e=1e-6 o 100 epochs. The simplified a chi ec-
u e is shown in Figu e 11.
The aining his o y o he concen a ion en-
semble model is displayed in Figu e 12 (accu acy
cu e) and Figu e 13 (loss cu e). As can be ob-
se ed, he bes model’s accu acy was ob ained be-
ween 80 h and 100 h epoch. Despi e a ious expe -
imen s wi h a highe numbe o epochs, alida ion
accu acy did no inc ease.
Figu e 12. Accu acy aining cu e o he
conca ena ed model a chi ec u e.
Figu e 13. Loss aining cu e o he
conca ena ed model a chi ec u e.
Ul ima ely, he model achie ed 58.9% accu acy
on he alida ion and 58.4% on he es se . The
me ics esul ing om he combined modali ies a e
p esen ed in Table 13. Compa ed o he pe o -
mance measu es calcula ed o he sepa a e audio
and ly ics modules, a significan imp o emen in
he F1 sco e was obse ed o he sad emo ion. Un-
o una ely, his imp o emen was accompanied by
a sligh de e io a ion in he F1 sco e o o he emo-
ions. The model appea s o pe o m ela i ely well
in classi ying elaxed and ang y emo ions. How-
e e , despi e he ema kable imp o emen in ecog-
nizing sad emo ion, i s ill s uggles wi h i s classi-
fica ion. The ela i ely high Recall o he elaxed
emo ion indica es ha he model has a low a e o
inco ec ly classi ying ins ances o he elaxed class
as ano he emo ion, which can also be obse ed in
Figu e 14.
A BIMODAL DEEP MODEL TO . . .
Table 13. Resul s in % on he es se o he
conca ena ion ensemble.
P ecision Recall F1 Sco e Suppo
Happy 61.9 52.0 56.5 75
Ang y 61.1 59.5 60.3 74
Sad 49.3 50.0 50.0 74
Relaxed 61.4 72.0 66.3 75
Accu acy - - 58.4 298
Mac o
a e age
58.4 58.4 58.4 298
Weigh ed
a e age
58.5 58.4 58.4 298
Figu e 14. Con usion ma ix on he es se o he
conca ena ion ensemble.
3.5.3 The compa ison o join classifica ion
This sec ion compa es he wo ensemble ap-
p oaches — Majo i y Vo ing and Conca ena ion —
o he join classifica ion o audio and ly ic modal-
i ies. These me hods aim o combine he s eng hs
o bo h modali ies o enhance o e all pe o mance.
Table 14. Compa ison in % o join classifica ion
on he es se . Bold alues indica e he
bes -pe o ming model.
Ensemble
App oach
P ecision Recall F1 Sco e Accu acy
Majo i y
Vo ing
61.5 60.7 61.1 60.7
Conca e-
na ion
58.5 58.4 58.4 58.4
Table 14 shows a compa ison o bo h me h-
ods. The Majo i y Vo ing ensemble sligh ly ou pe -
o med he Conca ena ion app oach in all me ics.
Despi e ex ensi e fine- uning and g id sea ches
o op imize hype pa ame e s, he Conca ena ion
model achie ed a sligh ly lowe F1 sco e o 58.4%
and an accu acy o 58.4%. Howe e , i is wo h no -
ing ha his app oach yielded a no iceable imp o e-
men in classi ying he “sad” emo ion. A plausible
eason o he o e all lowe esul s in he Conca e-
na ion app oach could be he limi ed da ase size
a ailable o fine- uning he join model. This lim-
i a ion may ha e es ic ed he model’s abili y o
gene alize e ec i ely ac oss all classes.
The findings highligh he impo ance o selec -
ing an app op ia e ensemble app oach o mul i-
modal classifica ion asks. While he Majo i y Vo -
ing ensemble demons a ed o e all be e pe o -
mance, he Conca ena ion app oach showed po en-
ial in specific a eas, such as imp o ing he ecog-
ni ion o unde pe o ming classes.
4 Discussion
Despi e no esul ing in a significan accu acy
imp o emen om 60.7% o he p e ious 56.7%
based solely on ly ics and om 59.06% exclusi ely
based on audio, emo ion ecogni ion now elies on
bo h componen s, making he sys em mo e eli-
able. Howe e , as al eady men ioned, P ecision
plays a mo e c i ical ole in ensu ing use sa is-
ac ion in he con ex o ecommenda ion sys ems.
This is suppo ed by he li e a u e sou ces, high-
ligh ing ha mul imodal app oaches inc ease p eci-
sion, which is c ucial o ecommenda ion sys ems
o a oid use dissa is ac ion om bad ecommenda-
ions [61]. Mo eo e , Bal uˇ
sai is e al. [26] poin ed
ou ha mul imodali y helps o enhance he pe o -
mance and obus ness o machine lea ning models,
as well as he p ecision o ecommenda ions in eal-
li e si ua ions and u he augmen use expe ience.
Hence, by e ie ing p ecision alues om Ta-
bles 8, 10, and 14, i may be seen ha he alues
o his me ic a e as ollows: 56.95% o he ly ics
only while employing XLNe , 54.33% achie ed by
each o he ly ics-based esea ched app oaches, and
60.43% o audio-only. In con as , he bimodal ap-
p oach e u ned a P ecision o 61.5%, so a small
imp o emen was ob ained when using wo modal-
i ies. A compa ison o his me ic can be obse ed
in Figu e 15. Unlike he audio o ly ics modali-
ies wo king independen ly, i also ended o o e a
232 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
mo e balanced p edic ion ac oss di e en emo ions,
educing se e e misclassifica ion, especially in he
case o ang y and sad emo ions.
Figu e 15. The compa ison o P ecision ac oss
modali ies and app oaches.
The expe imen s conduc ed in his s udy ha e
e ealed in e es ing insigh s in o he usion o mod-
els o musical piece classifica ion. Su p isingly,
a majo i y o ing app oach led o a modes im-
p o emen , achie ing 60.7% accu acy on he es
se . Ini ially, i was expec ed ha fine- uning o he
combined models would ou pe o m he simplis ic
o ing me hod. Howe e , he fine- uned app oach
achie ed 58.4% accu acy, pe o ming wo se han
using he audio modali y alone.
Figu e 16 p o ides a compa ison o he F1
sco es achie ed h ough he bes -pe o ming sin-
gle modali y and conca ena ed app oaches, high-
ligh ing he s eng hs and limi a ions o each in
p edic ing di e en emo ions. I is impo an o
highligh ha majo i y o ing showed a highe F1
sco e o he h ee emo ions (happy, ang y, elaxed)
and a no ably lowe F1 sco e o he sad emo ion,
compa ed o employing a conca ena ion ensemble,
whe e mo e balanced esul s we e obse ed. This
dispa i y migh be a ibu ed o inconsis encies in
p edic ing emo ions wi hin indi idual modali ies.
Fo ins ance, a melancholic song wi h elaxed ly ics
o posi i e ly ics accompanied by agg essi e me al
sounds may no necessa ily be assessed as sad. This
sugges s ha while majo i y o ing enhances pe -
o mance o e all, i s e ec i eness diminishes in
cases whe e indi idual modali ies p o ide conflic -
ing signals, as e idenced in he Sad emo ion ca e-
go y.
Figu e 16. The compa ison o F1 sco e ac oss
modali ies and app oaches.
In summa y, he majo i y o ing ensemble
showcased p oficien classifica ion o h ee ou o
ou emo ions (happy, ang y, and elaxed). In con-
as , he conca ena ion ensemble demons a ed en-
hanced eliabili y ac oss all emo ions. Figu e 17
shows a compa ison o he a e age-weigh ed clas-
sifica ion me ics. These findings unde sco e he
complex na u e o mul imodal emo ion classifica-
ion.
Conside ing he objec i e o combining modali-
ies, we es ed he model ained on he English ly ic
da ase on he ull da ase , including p e iously in-
dica ed ou lie s. Howe e , he esul s achie ed in
his s udy a e no en i ely sa is ac o y. The ou -
comes ob ained using ly ic modali y di e om
wha was expec ed. Table 15 summa izes he e-
sul s achie ed by each app oach esea ched based
on ly ic classifica ion. Ou lined a e me hods based
on ex ea u e ex ac ion, embedding, cap u ing
cha ac e -le el ep esen a ion, and applying a en-
ion mechanisms using ans o me a chi ec u e. I
should be no ed ha he p o ided compa ison only
p o ides an o e iew o he expec ed esul s. The
SVM and 4-laye ANN we e ob ained wi h English-
only ly ics, u ilizing 90% o he examples as a ain-
ing se and only 10% as a es se , which may lead
o he model o e -fi ing o he aining da a. A
he same ime, he ans o med-based app oach [24]
was achie ed using MoodyLy ic, which is a p e-
ious e sion o MoodyLy ic4Q, con aining epe-
i ions and conflic labels. This may be one o he
easons ha he au ho s ob ained such good esul s.
233
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
mo e balanced p edic ion ac oss di e en emo ions,
educing se e e misclassifica ion, especially in he
case o ang y and sad emo ions.
Figu e 15. The compa ison o P ecision ac oss
modali ies and app oaches.
The expe imen s conduc ed in his s udy ha e
e ealed in e es ing insigh s in o he usion o mod-
els o musical piece classifica ion. Su p isingly,
a majo i y o ing app oach led o a modes im-
p o emen , achie ing 60.7% accu acy on he es
se . Ini ially, i was expec ed ha fine- uning o he
combined models would ou pe o m he simplis ic
o ing me hod. Howe e , he fine- uned app oach
achie ed 58.4% accu acy, pe o ming wo se han
using he audio modali y alone.
Figu e 16 p o ides a compa ison o he F1
sco es achie ed h ough he bes -pe o ming sin-
gle modali y and conca ena ed app oaches, high-
ligh ing he s eng hs and limi a ions o each in
p edic ing di e en emo ions. I is impo an o
highligh ha majo i y o ing showed a highe F1
sco e o he h ee emo ions (happy, ang y, elaxed)
and a no ably lowe F1 sco e o he sad emo ion,
compa ed o employing a conca ena ion ensemble,
whe e mo e balanced esul s we e obse ed. This
dispa i y migh be a ibu ed o inconsis encies in
p edic ing emo ions wi hin indi idual modali ies.
Fo ins ance, a melancholic song wi h elaxed ly ics
o posi i e ly ics accompanied by agg essi e me al
sounds may no necessa ily be assessed as sad. This
sugges s ha while majo i y o ing enhances pe -
o mance o e all, i s e ec i eness diminishes in
cases whe e indi idual modali ies p o ide conflic -
ing signals, as e idenced in he Sad emo ion ca e-
go y.
Figu e 16. The compa ison o F1 sco e ac oss
modali ies and app oaches.
In summa y, he majo i y o ing ensemble
showcased p oficien classifica ion o h ee ou o
ou emo ions (happy, ang y, and elaxed). In con-
as , he conca ena ion ensemble demons a ed en-
hanced eliabili y ac oss all emo ions. Figu e 17
shows a compa ison o he a e age-weigh ed clas-
sifica ion me ics. These findings unde sco e he
complex na u e o mul imodal emo ion classifica-
ion.
Conside ing he objec i e o combining modali-
ies, we es ed he model ained on he English ly ic
da ase on he ull da ase , including p e iously in-
dica ed ou lie s. Howe e , he esul s achie ed in
his s udy a e no en i ely sa is ac o y. The ou -
comes ob ained using ly ic modali y di e om
wha was expec ed. Table 15 summa izes he e-
sul s achie ed by each app oach esea ched based
on ly ic classifica ion. Ou lined a e me hods based
on ex ea u e ex ac ion, embedding, cap u ing
cha ac e -le el ep esen a ion, and applying a en-
ion mechanisms using ans o me a chi ec u e. I
should be no ed ha he p o ided compa ison only
p o ides an o e iew o he expec ed esul s. The
SVM and 4-laye ANN we e ob ained wi h English-
only ly ics, u ilizing 90% o he examples as a ain-
ing se and only 10% as a es se , which may lead
o he model o e -fi ing o he aining da a. A
he same ime, he ans o med-based app oach [24]
was achie ed using MoodyLy ic, which is a p e-
ious e sion o MoodyLy ic4Q, con aining epe-
i ions and conflic labels. This may be one o he
easons ha he au ho s ob ained such good esul s.
A BIMODAL DEEP MODEL TO . . .
Figu e 17. The compa ison o weigh ed a e age
classifica ion me ics ac oss modali ies and
app oaches.
Due o he in ensi e p ocessing o he ly ic
co pus, he numbe o examples in he aining
se was a he limi ed. The e o e, fine- uning he
ans o me -based model was conside ed he bes
among he s udied app oaches in e ms o classifi-
ca ion pe o mance. Ne e heless, when obse ing
he con usion ma ices, which we e a pa o he as-
sessmen , i can be concluded ha ’happiness’ and
’ange ’ a e he mos manageable se o emo ions o
de ec . A possible eason o his is ha hey a e
wo opposing eelings con aining a high emo ional
cha ge. The e we e likely wo ds o sen ences in he
ex di ec ly indica ing hese emo ions. The classi-
fie s did much wo se in disce ning ‘sadness’ om
ly ics.
Table 15. Compa ison in % o di e en
app oaches - ly ic modali y - achie ed on English
da ase . Bold alues indica e he bes -pe o ming
model.
App oach Accu acy seen
in he li e a u e
Accu acy
achie ed
in he s udy
Fea u e-based
SVM
58.0 [23] 55.0
Fea u e-based 4-
Laye s ANN
58.5 [23] 53.9
Fea u e-based
(GloVe-BiGRU)
50.73 [8] -
Fea u e-based
(GloVe+HAN)
58.8 [8] -
T ans o me -
based (XLNe )
94.78 [24]
( ull da ase )
58.0
Table 16 compa es he esul s o he emo ion
ecogni ion ask accomplished by he au ho s om
he li e a u e e sus ou ou comes using he audio
modali y. Essen ially, deep lea ning models end o
ou pe o m he classical ones. Also, he e a e no-
iceable disc epancies be ween he esul s achie ed
in li e a u e sou ces and he esul s epo ed in his
s udy. Howe e , de eloping such a me hodology,
s a ing om emo ion labeling h ough he choice
o a da ase , a way o pa ame izing ly ics and mu-
sic signals, o he es s age, is a om, i no a all,
ep oducible. Some o he e e enced s udies em-
ployed a di e en app oach o he assessmen s ep,
in some cases using smalle segmen s o musical
pieces (e.g., 5 seconds) o e alua ing esul s no on
a es da ase bu using a alida ion da ase . Mo e-
o e , al hough MoodyLy ic [24],[29] and Moody-
Ly ic4Q [30] we e employed in he li e a u e-based
s udies, hey we e no p ocessed. In con as , we de-
cided o use only MoodyLy ics4Q, which has ewe
weaknesses, i.e., he ambigui y o he labels o he
music samples and ewe epo ed epe i ions, as we
emo ed duplica es a he p ep ocessing s age. I
should, howe e , be no ed ha he model pe o ms
e y well in p edic ing ’happiness’ and ’ elaxed’
classes while pe o ming sligh ly less e ec i ely on
ang y and sad emo ions.
Table 16. Compa ison o di e en app oaches -
audio modali y. Bold alues indica e he
bes -pe o ming model.
App oach Accu acy seen
in he li e a u e
Accu acy
achie ed in
he s udy
SVM 50 [17] 31.38
Ra dess based
a chi ec u e
65.96 [18] 47.99
Incep ionV3 70-90 [19, 20] 52.89
ResNe 77.36 [21] 56.04
VGG16 63.79 [21] 53.69
Sa ka e al.’s
a chi ec u e
68-78 [22] 59.06
Incep ion-
ResNe
84.91-87.24 [21] 56.23
The expe imen s ha we e conduc ed e ealed
ha he wo models (bo h o ly ic and audio) com-
plemen each o he . Losses a e p opaga ed in he
same manne du ing he aining o bo h models.
Howe e , he ly ics model demons a es highe P e-
234 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
cision o he happy emo ion and highe Recall o
’ange .’ On he o he hand, he audio modali y is
be e ega ding Recall o happy and elaxed emo-
ions, and i achie es highe P ecision o ang y
emo ion. In con as , bo h modali ies exhibi low
F1 sco es o he sad emo ion, esul ing in unsa -
is ac o y esul s o his pa icula emo ion. As
seen in Table 15 and Table 16, se e al s a e-o -
he-a pape s we e ci ed along wi h he expe i-
men ou comes (e.g., [8],[62],[63]. When e e ing
o s a e-o - he-a (SOTA) me hods, we ha e com-
pa ed ou esul s wi h hose om p e ious s udies
ha add essed emo ion classifica ion in music us-
ing he same da ase . Howe e , i is impo an o
no e ha hese compa isons se e p ima ily o il-
lus a e he uniqueness o each app oach. Al hough
all s udies began wi h he same ini ial da ase , di -
e ences in da a p ocessing and me hodology mean
ha di ec pe o mance compa isons should be in-
e p e ed wi h cau ion. Py o olakis e al. [62] di-
ided each song in o a 4-line sample. This way,
hey ob ained mo e han 18,000 samples om he
2,000 samples in he aining se . Shaday e al. [63]
s udy e alua ed an algo i hm’s pe o mance on wo
da ase s: he Music Ly ics Kaggle da ase (3,890
en ies, eigh emo ional ca ego ies) and he Moody-
Ly ics da ase (2,000 en ies, ou emo ional ca e-
go ies). Key es ing pa ame e s included embed-
ding weigh s, embedding dimension, lea ning a e,
and epoch. Expe imen al esul s show an accu acy
o 62% on he MoodyLy ics da ase and 42% on he
Music Ly ics Kaggle da ase . Sujeeha e al.’s [8]
app oach used only 680 emo ion-labeled samples
ex ac ed om MoodyLy ics as hey in es iga ed
he impac o a en ion mechanisms on mul i-modal
a chi ec u es o audio mood classifica ion. Ex-
pe imen s compa e single-modal and mul i-modal
models wi h and wi hou a en ion. Th ee a en-
ion mechanisms—hie a chical a en ion ne wo k,
sel -a en ion, and channel a en ion—a e u ilized.
Acous ic ea u es a e ex ac ed om songs, and he
model is ained using BiGRU (Bidi ec ional Ga ed
Recu en Uni ) and CNN, achie ing es ing accu-
acies o 61.01%, 44.15%, and 50.73%.
5 Conclusion
Se e al expe imen s we e conduc ed o e alu-
a e he possibili y o assigning emo ion au oma i-
cally based on ly ics and audio independen ly, as
well as when using hese modali ies in o a bimodal
app oach. The esul s showed p omising ou comes,
wi h ela i ely high accu acy and p ecision a es
ac oss mul iple emo ion ca ego ies, indica ing he
algo i hm’s s abili y and abili y o ecognize and la-
bel emo ions in musical pieces e ec i ely.
The bes algo i hm success ully ex ac ed and
classified emo ional ea u es in musical pieces wi h
60.7% accu acy. Howe e , o some pa ame e con-
figu a ions, he ained model classified all musical
pieces in o one emo ion class. This may be due o
he oo-small size o he ba ch, in which emo ions
om only one ca ego y we e p obably d awn, while
a he same ime, he lea ning a e was oo high,
which pe haps esul ed in adjus ing he model’s
weigh s o he las aining da a ba ch.
One o he key findings o his s udy is he al-
go i hm’s obus ness in dealing wi h a a ie y o
music gen es, s yles, and cul u al con ex s. The di-
e se da ase s used in his s udy encompass a wide
ange o musical pieces om a ious gen es, in-
cluding ock, jazz, elec onic, pop, blues, and coun-
y. Despi e his di e si y, algo i hms consis en ly
demons a ed eliable pe o mance ac oss all gen-
es. This sugges s ha he algo i hm’s e ec i eness
is no limi ed o specific musical s yles and can be
applied o a b oad spec um o music.
The model’s no en i ely sa is ac o y pe o -
mance is due o he complexi y o he p oblem and
he wide a ie y o ex s ( o example, in e ms o
leng h o s uc u e). Howe e , his may indica e ha
u ilizing ans o me models is an e ec i e s a egy
o ly ic classifica ion in he con ex o he emo ion
e oked on he MoodyLy ic4Q da abase.
While he esul s a e p omising, i is impo an
o acknowledge he limi a ions o his s udy. Fi s ly,
he da ase used, al hough di e se, may no cap u e
he ull spec um o emo ions ac oss all cul u es
and music adi ions. Fu u e esea ch could bene-
fi om la ge and mo e cul u ally di e se da ase s
o enhance he algo i hm’s c oss-cul u al applicabil-
i y. The solu ion o his p oblem may be o gene a e
da ase s using he eache -s uden machine lea n-
ing pa adigm au oma ically. In addi ion, he ly ics
could be aken di ec ly om he music, esul ing in
a mo e accu a e eco ding o he wo ds con ained in
he song.
235
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
cision o he happy emo ion and highe Recall o
’ange .’ On he o he hand, he audio modali y is
be e ega ding Recall o happy and elaxed emo-
ions, and i achie es highe P ecision o ang y
emo ion. In con as , bo h modali ies exhibi low
F1 sco es o he sad emo ion, esul ing in unsa -
is ac o y esul s o his pa icula emo ion. As
seen in Table 15 and Table 16, se e al s a e-o -
he-a pape s we e ci ed along wi h he expe i-
men ou comes (e.g., [8],[62],[63]. When e e ing
o s a e-o - he-a (SOTA) me hods, we ha e com-
pa ed ou esul s wi h hose om p e ious s udies
ha add essed emo ion classifica ion in music us-
ing he same da ase . Howe e , i is impo an o
no e ha hese compa isons se e p ima ily o il-
lus a e he uniqueness o each app oach. Al hough
all s udies began wi h he same ini ial da ase , di -
e ences in da a p ocessing and me hodology mean
ha di ec pe o mance compa isons should be in-
e p e ed wi h cau ion. Py o olakis e al. [62] di-
ided each song in o a 4-line sample. This way,
hey ob ained mo e han 18,000 samples om he
2,000 samples in he aining se . Shaday e al. [63]
s udy e alua ed an algo i hm’s pe o mance on wo
da ase s: he Music Ly ics Kaggle da ase (3,890
en ies, eigh emo ional ca ego ies) and he Moody-
Ly ics da ase (2,000 en ies, ou emo ional ca e-
go ies). Key es ing pa ame e s included embed-
ding weigh s, embedding dimension, lea ning a e,
and epoch. Expe imen al esul s show an accu acy
o 62% on he MoodyLy ics da ase and 42% on he
Music Ly ics Kaggle da ase . Sujeeha e al.’s [8]
app oach used only 680 emo ion-labeled samples
ex ac ed om MoodyLy ics as hey in es iga ed
he impac o a en ion mechanisms on mul i-modal
a chi ec u es o audio mood classifica ion. Ex-
pe imen s compa e single-modal and mul i-modal
models wi h and wi hou a en ion. Th ee a en-
ion mechanisms—hie a chical a en ion ne wo k,
sel -a en ion, and channel a en ion—a e u ilized.
Acous ic ea u es a e ex ac ed om songs, and he
model is ained using BiGRU (Bidi ec ional Ga ed
Recu en Uni ) and CNN, achie ing es ing accu-
acies o 61.01%, 44.15%, and 50.73%.
5 Conclusion
Se e al expe imen s we e conduc ed o e alu-
a e he possibili y o assigning emo ion au oma i-
cally based on ly ics and audio independen ly, as
well as when using hese modali ies in o a bimodal
app oach. The esul s showed p omising ou comes,
wi h ela i ely high accu acy and p ecision a es
ac oss mul iple emo ion ca ego ies, indica ing he
algo i hm’s s abili y and abili y o ecognize and la-
bel emo ions in musical pieces e ec i ely.
The bes algo i hm success ully ex ac ed and
classified emo ional ea u es in musical pieces wi h
60.7% accu acy. Howe e , o some pa ame e con-
figu a ions, he ained model classified all musical
pieces in o one emo ion class. This may be due o
he oo-small size o he ba ch, in which emo ions
om only one ca ego y we e p obably d awn, while
a he same ime, he lea ning a e was oo high,
which pe haps esul ed in adjus ing he model’s
weigh s o he las aining da a ba ch.
One o he key findings o his s udy is he al-
go i hm’s obus ness in dealing wi h a a ie y o
music gen es, s yles, and cul u al con ex s. The di-
e se da ase s used in his s udy encompass a wide
ange o musical pieces om a ious gen es, in-
cluding ock, jazz, elec onic, pop, blues, and coun-
y. Despi e his di e si y, algo i hms consis en ly
demons a ed eliable pe o mance ac oss all gen-
es. This sugges s ha he algo i hm’s e ec i eness
is no limi ed o specific musical s yles and can be
applied o a b oad spec um o music.
The model’s no en i ely sa is ac o y pe o -
mance is due o he complexi y o he p oblem and
he wide a ie y o ex s ( o example, in e ms o
leng h o s uc u e). Howe e , his may indica e ha
u ilizing ans o me models is an e ec i e s a egy
o ly ic classifica ion in he con ex o he emo ion
e oked on he MoodyLy ic4Q da abase.
While he esul s a e p omising, i is impo an
o acknowledge he limi a ions o his s udy. Fi s ly,
he da ase used, al hough di e se, may no cap u e
he ull spec um o emo ions ac oss all cul u es
and music adi ions. Fu u e esea ch could bene-
fi om la ge and mo e cul u ally di e se da ase s
o enhance he algo i hm’s c oss-cul u al applicabil-
i y. The solu ion o his p oblem may be o gene a e
da ase s using he eache -s uden machine lea n-
ing pa adigm au oma ically. In addi ion, he ly ics
could be aken di ec ly om he music, esul ing in
a mo e accu a e eco ding o he wo ds con ained in
he song.
A BIMODAL DEEP MODEL TO . . .
Secondly, we employed a disc e e (ha d) ep e-
sen a ion o emo ion when di iding and dis inguish-
ing emo ions. Howe e , emo ions p esen in musi-
cal pieces a e o en no cohe en . A be e app oach
migh in ol e u ilizing he a ousal- alence dimen-
sion o de e mine he song’s ue na u e. In con-
as , spa se dimension is no as easily unde s ood
and deciphe ed. The e o e, an app oach ha in-
ol es mul iple labels (so app oach) could be em-
ployed when a song exp esses mo e han one emo-
ion. Addi ionally, he e alua ion o emo ional la-
bels - bo h insc ibed and pe cei ed eelings - may
be subjec i e o some ex en , as emo ions a e in-
he en ly complex and can a y om pe son o pe -
son. Fu u e wo k could explo e mo e use -based
e alua ions - no only in he con ex o c ea ing a
da abase bu also in e ms o e i ying he esul s
o unde s and how he algo i hm aligns wi h human
pe cep ions o emo ion in music. Mo eo e , since
he LRAP (Label anking a e age p ecision) mea-
su e co esponds o he quali y o iden ifica ion in
he con ex o a ask wi h mul iple classes p esen
in a gi en sample, employing such a measu e may
be ad an ageous when in ol ing mul iple emo ions
assigned, especially when adop ing a so app oach
a he han a ha d one.
Finally, one majo limi a ion o his s udy is
he lack o synch oniza ion be ween audio ag-
men s and ly ics, which can con ey di e en emo-
ions. Fu u e esea ch on musical piece classifica-
ion should inco po a e ull audio acks and au o-
ma ically ex ac synch onized ly ics o mo e ac-
cu a e analysis.
Re e ences
[1] L. Smie anka and T. Maka, “In e p e ing con-
olu ional laye s in DNN model based on
ime– equency ep esen a ion o emo ional
speech,” Jou nal o A ificial In elligence and So
Compu ing Resea ch, ol. 14, no. 1, pp. 5–23, Jan.
2024, doi: 10.2478/jaisc -2024-0001.
[2] S. Sheykhi and, Z. Mousa i, T. Y. Rezaii, and
A. Fa zamnia, “Recognizing Emo ions E oked by
Music Using CNN-LSTM Ne wo ks on EEG Sig-
nals,” IEEE Access, ol. 8, pp. 139332-139345,
2020, doi: 10.1109/ACCESS.2020.3011882.
[3] Y. Takahashi, T. Hochin, and H. Nomiya, “Rela-
ionship be ween Men al S a es wi h S ong Emo-
ion A oused by Music Pieces and Thei Fea u e
Values,” in P oc. 2014 IIAI 3 d In e na ional Con-
e ence on Ad anced Applied In o ma ics, 2014,
pp. 718-725, doi: 10.1109/IIAIAAI.2014.147.
[4] P. A. Wood and S. K. Semwal, “On explo -
ing he connec ion be ween music classifica ion
and e oking emo ion,” in P oc. 2015 In e na-
ional Con e ence on Collabo a ion Technolo-
gies and Sys ems(CTS), 2015, pp. 474-476, doi:
10.1109/CTS.2015.7210471.
[5] M. Agapaki, E. A. Pinke on, and E. Papa zikis,
“Music and neu oscience esea ch o men al
heal h, cogni ion, and de elopmen : Ways o -
wa d,” F on ie s in Psychology, ol. 13, 2022, doi:
h ps://doi.o g/10.3389/ psyg.2022.976883.
[6] Y. Song, S. Dixon, M. Pea ce, and A. Halpe n,
“Pe cei ed and Induced Emo ion Responses o
Popula Music: Ca ego ical and Dimensional
Models,” Music Pe cep ion: An In e disciplina y
Jou nal, ol. 33, pp. 472-492, Ap . 2016, doi:
10.1525/mp.2016.33.4.472.
[7] Y. Yuan, “Emo ion o Music: Ex ac ion and Com-
posing,” Jou nal o Educa ion, Humani ies and So-
cial Sciences, ol. 13, pp. 422-428, May 2023, doi:
10.54097/ehss. 13i.8207.
[8] S. A. Sujeesha, J. B. Mala, and R. Rajee , “Au o-
ma ic music mood classifica ion using mul i-modal
a en ion amewo k,” *Enginee ing Applica ions
o A ificial In elligence*, ol. 128, p. 107355,
2024, doi: 10.1016/j.engappai.2023.107355.
[9] M. Schedl, P. Knees, B. McFee, D. Bogdano , and
M. Kaminskas, “Music ecommende sys ems,” in
Recommende sys ems handbook, Sp inge , 2015,
pp. 453-492.
[10] Mo phCas Technology. A ailable:
h ps://www.mo phcas .com. Accessed: No embe
2024.
[11] S. Zhao, G. Jia, J. Yang, G. Ding, and K. Keu ze ,
“Emo ion Recogni ion F om Mul iple Modali ies:
Fundamen als and me hodologies,” IEEE Signal
P ocessing Magazine, ol. 38, no. 6, pp. 59-73,
No . 2021, doi: 10.1109/msp.2021.3106895.
[12] T. Li, “Music emo ion ecogni ion using deep
con olu ional neu al ne wo ks,” Jou nal o Com-
pu a ional Me hods in Science and Enginee ing,
ol. 24, no. 4-5, pp. 3063-3078, 2024, doi:
10.3233/JCM-247551.
[13] P. L. Lou o, H. Redinho, R. Malhei o, R. P. Pai a,
and R. Panda, “A compa ison s udy o deep lea n-
ing me hodologies o music emo ion ecogni-
ion,” Senso s, ol. 24, no. 7, p. 2201, 2024, doi:
10.3390/s24072201.
236 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
[14] M. Blaszke, G. Ko el, and B. Kos ek, “Ex-
plo ing neu al ne wo ks o musical ins u-
men iden ifica ion in polyphonic audio,”
IEEE In elligen Sys ems, pp. 1-11, 2024,
doi: 10.1109/mis.2024.3392586.
[15] M. Ba a a and P. Coelho, “Music S eaming
Se ices: Unde s anding he d i e s o cus-
ome pu chase and in en ion o ecommend,”
Heliyon, ol. 7, p. e07783, Aug. 2021, doi:
10.1016/j.heliyon.2021.e07783.
[16] J. Webs e , “The p omise o pe sonaliza ion: Ex-
plo ing how music s eaming pla o ms a e shaping
he pe o mance o class iden i ies and dis inc ion,”
New Media & Socie y, p. 146144482110278, Jul.
2021, doi: 10.1177/14614448211027863.
[17] E. Schmid , D. Tu nbull, and Y. Kim, “Fea u e
selec ion o con en -based, ime- a ying musical
emo ion eg ession,” in P oc ACM SIGMM In
Con Mul imedia In o Re ie al, Ma . 2010, pp.
267-274, doi: 10.1145/1743384.1743431.
[18] Y.-H. Yang, Y.-C. Lin, H.-T. Cheng, I.-B. Liao, Y.-
C. Ho, and H. H. Chen, “Towa d Mul imodal Mu-
sic Emo ion Classifica ion,” in Ad ances in Mul i-
media In o ma ion P ocessing - PCM 2008, 2008,
pp. 70-79.
[19] T. Cibo owski, S. Reginis, D. Webe , A. Ku owski,
and B. Kos ek, “Classi ying Emo ions in Film
Music—A Deep Lea ning App oach,” Elec on-
ics, ol. 10, no. 23, p. 2955, No . 2021, doi:
10.3390/elec onics10232955.
[20] X. Han, F. Chen, and J. Ban, “Music Emo ion
Recogni ion Based on a Neu al Ne wo k wi h an
Incep ion-GRU Residual S uc u e,” Elec onics,
ol. 12, no. 4, p. 978, Feb. 2023, doi: 10.3390/elec-
onics12040978.
[21] Y. J. Liao, W. C. Wang, S.-J. Ruan, Y. H. Lee,
and S. C. Chen, “A Music Playback Algo i hm
Based on Residual-Incep ion Blocks o Music
Emo ion Classifica ion and Physiological In o ma-
ion,” Senso s, ol. 22, no. 3, p. 777, Jan. 2022, doi:
10.3390/s22030777.
[22] R. Sa ka , S. Choudhu y, S. Du a, A. Roy,
and S. K. Saha, “Recogni ion o emo ion
in music based on deep con olu ional neu al
ne wo k,” Mul imedia Tools and Applica ions,
ol. 79, pp. 765-783, 2019, [Online]. A ail-
able: h ps://api.seman icschola .o g/Co pusID:
254866914.
[23] S. Giammusso, M. Gue ie o, P. Lisena, E.
Palumbo, and R. T oncy, “P edic ing he emo ion
o playlis s using ack ly ics,” In e na ional Soci-
e y o Music In o ma ion Re ie al ISMIR, La e
B eaking Session, 2017.
[24] Y. Ag awal, R. Shanke , and V. Allu i,
“T ans o me -based app oach owa ds music
emo ion ecogni ion om ly ics,” Ad ances in
In o ma ion Re ie al. ECIR 2021. Lec u e No es
in Compu e Science, ol 12657. Sp inge , 2021,
doi: 10.1007/978-3-030-72240-1 12.
[25] D. Han, Y. Kong, H. Jiayi, and G. Wang, “A
su ey o music emo ion ecogni ion,” F on ie s
o Compu e Science, ol. 16, Dec. 2022, doi:
10.1007/s11704-021-0569-4.
[26] T. Bal uˇ
sai is, C. Ahuja, and L. -P. Mo ency,
”Mul imodal Machine Lea ning: A Su ey
and Taxonomy,” in IEEE T ansac ions on Pa -
e n Analysis and Machine In elligence, ol.
41, no. 2, pp. 423-443, 1 Feb. 2019, doi:
10.1109/TPAMI.2018.2798607.
[27] R. Delbouys, R. Hennequin, F. Piccoli, J.
Royo-Le elie , and M. Moussallam, “Mu-
sic Mood De ec ion Based On Audio And
Ly ics Wi h Deep Neu al Ne ,” ISMIR 2018
h ps://doi.o g/10.48550/a Xi .1809.07276
[28] I. A. P. San ana e al., “Music4all: A new music
da abase and i s applica ions,” in P oc. 2020 In e -
na ional Con e ence on Sys ems, Signals and Im-
age P ocessing (IWSSIP), 2020, pp. 399-404, doi:
10.1109/IWSSIP48289.2020.9145170.
[29] E. C¸ ano and M. Mo isio, “Moodyly ics: A sen i-
men anno a ed ly ics da ase ,” in P oc. 2017 In e -
na ional con e ence on in elligen sys ems, me a-
heu is ics & swa m in elligence, 2017, pp. 118-
124, doi: 10.1145/3059336.3059340.
[30] E. C¸ ano and M. Mo isio, “Music mood da ase c e-
a ion based on las .Fm ags,” in P oc. 2017 In e -
na ional Con e ence on A ificial In elligence and
Applica ions, Vienna, Aus ia, 2017, pp. 15-26,
DOI:10.5121/csi .2017.70603.
[31] R.E. Thaye : The Biopsychology o Mood and
A ousal, Ox o d Uni e si y P ess, 1989.
[32] J. Russell, “A Ci cumplex Model o A ec ,”
Jou nal o Pe sonali y and Social Psychol-
ogy, ol. 39, pp. 1161-1178, Dec. 1980, doi:
10.1037/h0077714.
[33] Social music se ice - Las . m. A ailable:
h ps://www.las . m/. Accessed: No embe 2024.
[34] Genius - Song Ly ics & Knowledge. A ailable:
h ps://genius.com/. Accessed: No embe 2024.
[35] YouTube. A ailable: h ps://www.you ube.com.
Accessed: No embe 2024.
[36] M. Sakowicz and J. Tobolewski, “De elopmen
and s udy o an algo i hm o he au oma ic la-
beling o musical pieces in he con ex o emo ion
237
Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
[14] M. Blaszke, G. Ko el, and B. Kos ek, “Ex-
plo ing neu al ne wo ks o musical ins u-
men iden ifica ion in polyphonic audio,”
IEEE In elligen Sys ems, pp. 1-11, 2024,
doi: 10.1109/mis.2024.3392586.
[15] M. Ba a a and P. Coelho, “Music S eaming
Se ices: Unde s anding he d i e s o cus-
ome pu chase and in en ion o ecommend,”
Heliyon, ol. 7, p. e07783, Aug. 2021, doi:
10.1016/j.heliyon.2021.e07783.
[16] J. Webs e , “The p omise o pe sonaliza ion: Ex-
plo ing how music s eaming pla o ms a e shaping
he pe o mance o class iden i ies and dis inc ion,”
New Media & Socie y, p. 146144482110278, Jul.
2021, doi: 10.1177/14614448211027863.
[17] E. Schmid , D. Tu nbull, and Y. Kim, “Fea u e
selec ion o con en -based, ime- a ying musical
emo ion eg ession,” in P oc ACM SIGMM In
Con Mul imedia In o Re ie al, Ma . 2010, pp.
267-274, doi: 10.1145/1743384.1743431.
[18] Y.-H. Yang, Y.-C. Lin, H.-T. Cheng, I.-B. Liao, Y.-
C. Ho, and H. H. Chen, “Towa d Mul imodal Mu-
sic Emo ion Classifica ion,” in Ad ances in Mul i-
media In o ma ion P ocessing - PCM 2008, 2008,
pp. 70-79.
[19] T. Cibo owski, S. Reginis, D. Webe , A. Ku owski,
and B. Kos ek, “Classi ying Emo ions in Film
Music—A Deep Lea ning App oach,” Elec on-
ics, ol. 10, no. 23, p. 2955, No . 2021, doi:
10.3390/elec onics10232955.
[20] X. Han, F. Chen, and J. Ban, “Music Emo ion
Recogni ion Based on a Neu al Ne wo k wi h an
Incep ion-GRU Residual S uc u e,” Elec onics,
ol. 12, no. 4, p. 978, Feb. 2023, doi: 10.3390/elec-
onics12040978.
[21] Y. J. Liao, W. C. Wang, S.-J. Ruan, Y. H. Lee,
and S. C. Chen, “A Music Playback Algo i hm
Based on Residual-Incep ion Blocks o Music
Emo ion Classifica ion and Physiological In o ma-
ion,” Senso s, ol. 22, no. 3, p. 777, Jan. 2022, doi:
10.3390/s22030777.
[22] R. Sa ka , S. Choudhu y, S. Du a, A. Roy,
and S. K. Saha, “Recogni ion o emo ion
in music based on deep con olu ional neu al
ne wo k,” Mul imedia Tools and Applica ions,
ol. 79, pp. 765-783, 2019, [Online]. A ail-
able: h ps://api.seman icschola .o g/Co pusID:
254866914.
[23] S. Giammusso, M. Gue ie o, P. Lisena, E.
Palumbo, and R. T oncy, “P edic ing he emo ion
o playlis s using ack ly ics,” In e na ional Soci-
e y o Music In o ma ion Re ie al ISMIR, La e
B eaking Session, 2017.
[24] Y. Ag awal, R. Shanke , and V. Allu i,
“T ans o me -based app oach owa ds music
emo ion ecogni ion om ly ics,” Ad ances in
In o ma ion Re ie al. ECIR 2021. Lec u e No es
in Compu e Science, ol 12657. Sp inge , 2021,
doi: 10.1007/978-3-030-72240-1 12.
[25] D. Han, Y. Kong, H. Jiayi, and G. Wang, “A
su ey o music emo ion ecogni ion,” F on ie s
o Compu e Science, ol. 16, Dec. 2022, doi:
10.1007/s11704-021-0569-4.
[26] T. Bal uˇ
sai is, C. Ahuja, and L. -P. Mo ency,
”Mul imodal Machine Lea ning: A Su ey
and Taxonomy,” in IEEE T ansac ions on Pa -
e n Analysis and Machine In elligence, ol.
41, no. 2, pp. 423-443, 1 Feb. 2019, doi:
10.1109/TPAMI.2018.2798607.
[27] R. Delbouys, R. Hennequin, F. Piccoli, J.
Royo-Le elie , and M. Moussallam, “Mu-
sic Mood De ec ion Based On Audio And
Ly ics Wi h Deep Neu al Ne ,” ISMIR 2018
h ps://doi.o g/10.48550/a Xi .1809.07276
[28] I. A. P. San ana e al., “Music4all: A new music
da abase and i s applica ions,” in P oc. 2020 In e -
na ional Con e ence on Sys ems, Signals and Im-
age P ocessing (IWSSIP), 2020, pp. 399-404, doi:
10.1109/IWSSIP48289.2020.9145170.
[29] E. C¸ ano and M. Mo isio, “Moodyly ics: A sen i-
men anno a ed ly ics da ase ,” in P oc. 2017 In e -
na ional con e ence on in elligen sys ems, me a-
heu is ics & swa m in elligence, 2017, pp. 118-
124, doi: 10.1145/3059336.3059340.
[30] E. C¸ ano and M. Mo isio, “Music mood da ase c e-
a ion based on las .Fm ags,” in P oc. 2017 In e -
na ional Con e ence on A ificial In elligence and
Applica ions, Vienna, Aus ia, 2017, pp. 15-26,
DOI:10.5121/csi .2017.70603.
[31] R.E. Thaye : The Biopsychology o Mood and
A ousal, Ox o d Uni e si y P ess, 1989.
[32] J. Russell, “A Ci cumplex Model o A ec ,”
Jou nal o Pe sonali y and Social Psychol-
ogy, ol. 39, pp. 1161-1178, Dec. 1980, doi:
10.1037/h0077714.
[33] Social music se ice - Las . m. A ailable:
h ps://www.las . m/. Accessed: No embe 2024.
[34] Genius - Song Ly ics & Knowledge. A ailable:
h ps://genius.com/. Accessed: No embe 2024.
[35] YouTube. A ailable: h ps://www.you ube.com.
Accessed: No embe 2024.
[36] M. Sakowicz and J. Tobolewski, “De elopmen
and s udy o an algo i hm o he au oma ic la-
beling o musical pieces in he con ex o emo ion
A BIMODAL DEEP MODEL TO . . .
e oked,” M.Sc. hesis, Gdansk Uni e si y o Tech-
nology and Uni e si a Poli `
ecnica de Ca alunya
(co-supe ised by B. Kos ek and J. Tu mo), 2023.
[37] Genius and Spo i y pa ne ing. A ailable:
h ps://genius.com/a/genius-and-spo i y- oge he .
Accessed: No embe 2024.
[38] Pa y lib a y. A ailable:
h ps://pypi.o g/p ojec /pa y/. Accessed: No em-
be 2024.
[39] Mo iepy lib a y. A ailable:
h ps://pypi.o g/p ojec /mo iepy/. Accessed:
No embe 2024.
[40] M. Honnibal and I. Mon ani, “spaCy 2: Na -
u al language unde s anding wi h Bloom
embeddings, con olu ional neu al ne wo ks
and inc emen al pa sing,” 2017. A ailable:
h ps://gi hub.com/explosion/spaCy. Accessed:
No embe 2024.
[41] P. N. Johnson-Lai d and K. Oa ley, “Emo ions,
Simula ion, and Abs ac A ,” A & Pe cep-
ion, ol. 9, no. 3, pp. 260-292, 2021, DOI:
h ps://doi.o g/10.1163/22134913-bja10029.
[42] P. N. Johnson-Lai d and K. Oa ley, “How
poe y e okes emo ions,” Ac a Psycho-
logica, ol. 224, p. 103506, 2022, doi:
h ps://doi.o g/10.1016/j.ac psy.2022.103506.
[43] J. Penning on, R. Soche , and C. Manning, “GloVe:
Global Vec o s o Wo d Rep esen a ion,” in P oc.
2014 Con e ence on Empi ical Me hods in Na u-
al Language P ocessing (EMNLP), Oc . 2014, pp.
1532-1543, doi: 10.3115/ 1/D14-1162.
[44] SpaCy - p e- ained pipeline o English. A ail-
able:
h ps://spacy.io/models/en #en_
co e_web_lg
. Accessed: No embe 2024.
[45] S. Lo ia, “Tex blob Documen a ion,”
Release 0.15, ol. 2, 2018. A ailable:
h ps:// ex blob. ead hedocs.io/en/de /. Accessed:
No embe 2024.
[46] F. Ped egosa e al., “Sciki -lea n: Ma-
chine Lea ning in Py hon,” Jou nal o
Machine Lea ning Resea ch, ol. 12,
no. 85, pp. 2825-2830, 2011. A ailable:
h p://jml .o g/pape s/ 12/ped egosa11a.h ml.
Accessed: No embe 2024.
[47] ”Pa adise Ci y” Guns N’ Roses
h ps://genius.com/Guns-n- oses-pa adise-ci y-
ly ics
[48] Fas Tex - ex classifica ion u o ial. A ail-
able: h ps:// as ex .cc/docs/en/supe ised-
u o ial.h ml. Accessed: No embe 2024.
[49] T. Wol e al., “T ans o me s: S a e-o - he-A Na -
u al Language P ocessing,” Jan. 2020, pp. 38-45,
doi: 10.18653/ 1/2020.emnlp-demos.6.
[50] XLNe (base-sized model). A ailable:
h ps://hugging ace.co/xlne -base-cased. Ac-
cessed: No embe 2024.
[51] Z. Yang, Z. Dai, Y. Yang, J. Ca bonell,
R. R. Salakhu dino , and Q. V. Le, “Xlne :
Gene alized au o eg essi e p e aining o lan-
guage unde s anding,” Ad ances in neu al in-
o ma ion p ocessing sys ems, ol. 32, 2019.
h ps://doi.o g/10.48550/a Xi .1906.08237
[52] C. Szegedy, V. Vanhoucke, S. Io e, J. Shlens, and
Z. Wojna, “Re hinking he Incep ion A chi ec u e
o Compu e Vision,” in P oc. 2016 IEEE Con-
e ence on Compu e Vision and Pa e n Recog-
ni ion (CVPR), Jun. 2016, pp. 2818-2826 doi:
10.1109/CVPR.2016.308.
[53] K. He, X. Zhang, S. Ren, and J. Sun, “Deep Resid-
ual Lea ning o Image Recogni ion,” in P oc. 2016
IEEE Con e ence on Compu e Vision and Pa e n
Recogni ion (CVPR), Las Vegas, NV, USA, 2016,
pp. 770-778, doi: 10.1109/CVPR.2016.90.
[54] K. Simonyan and A. Zisse man, “Ve y deep con-
olu ional ne wo ks o la ge-scale image ecog-
ni ion,” in P oc. 3 d In e na ional Con e ence on
Lea ning Rep esen a ions(ICLR 2015), 2015, pp.
1-14. h ps://doi.o g/10.48550/a Xi .1409.1556
[55] Lib osa lib a y. A ailable: h ps://lib osa.o g/. Ac-
cessed: No embe 2024.
[56] Cholle , F. e al., 2015. Ke as. A ailable:
h ps://gi hub.com/ cholle /ke as. Accessed:
No embe 2024.
[57] Tenso Flow lib a y. A ailable:
h ps://www. enso flow.o g/?hl=pl. Accessed:
No embe 2024.
[58] S. C. Huang, A. Pa eek, S. Seyyedi, I. Bane -
jee, and M. Lung en, “Fusion o medical imaging
and elec onic heal h eco ds using deep lea ning:
a sys ema ic e iew and implemen a ion guide-
lines,” npj Digi al Medicine, ol. 3, 12, 2020.
h ps://doi.o g/10.1038/s41746-020-00341-z
[59] A. Paszke e al., 2019. PyTo ch: An Impe a-
i e S yle, High-Pe o mance Deep Lea ning Li-
b a y. In Ad ances in Neu al In o ma ion P ocess-
ing Sys ems, 32. Cu an Associa es, Inc., pp. 8024-
8035.
[60] Combining wo deep lea ning models. A ailable:
h ps://con ol.com/ echnical-a icles/combining-
wo-deep-lea ning-models/. Accessed: No embe
2024.
238 Jan Tobolewski, Michał Sakowicz, Jo di Tu mo, Bo˙
zena Kos ek
[61] Y. Shi, A. Ka a zoglou, L. Bal unas, M. La son,
A.Hanjalic, and N. Oli e , “TFMAP: Op imizing
MAP o op-n con ex -awa e ecommenda ion,” in
P oc. 35 h In e na ional ACM SIGIR Con e ence
on Resea ch and De elopmen in In o ma ion Re-
ie al, pp. 155-164, Po land O egon USA, Au-
gus 2012, doi: 10.1145/2348283.2348308.
[62] K. Py o olakis, P.K. Tzou eli, and G. S amou,
Mul i-Modal Song Mood De ec ion wi h Deep
Lea ning. Senso s (Basel, Swi ze land), 22, 2022,
doi:10.3390/s22031065
[63] E. N. Shaday, V. J. L. Engel, and H. He yan o,
”Applica ion o he Bidi ec ional Long Sho -
Te m Memo y Me hod wi h Compa ison o
Wo d2Vec, GloVe, and Fas Tex o Emo ion
Classifica ion in Song Ly ics”, P ocedia Com-
pu e Science, ol. 245, pp. 137-146, 2024,
h ps://doi.o g/10.1016/j.p ocs.2024.10.237
Jan Tobolewski comple ed his s ud-
ies a he Facul y o Elec onics, Tel-
ecommunica ions and In o ma ics a
he Gdańsk Uni e si y o Technology
(GUT). He o ganized his s uden ex-
change as pa o he E asmus+ p o-
g amme a UPC Ba celona, which
esul ed in collabo a ion wi h P o
Tu mo du ing his Mas e ’s deg ee.
His mas e ’s hesis explo ed he complex fi eld o music and
emo ions, ocusing on he de elopmen and e alua ion o an
algo i hm o he au oma ic classifi ca ion o ly ics. He is an
Indus ial Ph.D. candida e a he Gdańsk Uni e si y o Tech-
nology, wo king as a esea che a Asseco Solu ions. His sci-
en ifi c d i e is o unco e he complexi y o La ge Language
Models hallucina ions.
h ps://o cid.o g/0009-0005-1934-6217
Michal Sakowicz ea ned his Mas e
o Science in A ifi cial In elligence a
Gdansk Uni e si y o Technology, o-
cusing his s udies on emo ion-d i en
music analysis, a subjec he explo ed
ex ensi ely in his mas e ’s hesis and
also p esen ed a he KES 2023 con-
e ence in A hens. Alongside his aca-
demic pu sui s, he con ibu ed o he
IAESTE o ganiza ion, collabo a ing wi h local companies
o acili a e in e na ional s uden in e nships and wo kshops.
Cu en ly, as a So wa e De elope a Wunde man Thomp-
son Technology, he applies his skills in Ja a, Docke , and
Ko lin o de elop and op imize in e nal sys ems o fi nancial
con ol. Ou side o wo k, Michal is passiona e abou AI capa-
bili ies and music and especially enjoys win e spo s.
h ps://o cid.o g/ 0009-0009-2019-2074
Jo di Tu mo is a p o esso in he
Compu e Science Depa men a
he Uni e si a Poli ècnica de Ca a-
lunya (UPC), Spain. He is a mem-
be o he Cen e o Language and
Speech Technologies and Applica-
ions (TALP) and he Cen e o In-
elligen Da a Science and A ifi cial
In elligence Resea ch (IDEAI). His esea ch ocuses on he
fi eld o Na u al Language P ocessing and especially on he
s udy o machine lea ning me hods o Ad anced and Adap-
i e Tex Mining, including in o ma ion ex ac ion, ques-
ion answe ing, documen clus e ing, o ex classifi ca ion
o s anda d and non-s anda d ex such as speech an-
sc ip s, wee s, o in o mal no es. He has pa icipa ed in 7
Eu opean p ojec s and 11 Spanish p ojec s, being he lo-
cal coo dina o o some o hem, as well as se e al p ojec s
o he ans e o echnology o companies. P o . Tu mo
has published mo e han 90 pape s in jou nals and p o-
ceedings o in e na ional con e ences and has supe ised
se e al mas e ’s and doc o al heses. He has also been a
p og am commi ee membe o a ious in e na ional con e -
ences, wo kshops, and sha ed asks, leading some o hem.
h ps://o cid.o g/0000-0002-7521-1115
Bozena Kos ek is a p o esso in he
Facul y o Elec onics, Telecommuni-
ca ions and In o ma ics a he Gdansk
Uni e si y o Technology (GUT), Po-
land. She is a co esponding membe
o he Polish Academy o Sciences
and a ellow o he Audio Enginee ing
Socie y and he Acous ical Socie y o
Ame ica. He main scien ifi c in e es s
a e acous ics, psychoacous ics, mul imedia, music in o ma-
ion e ie al, cogni i e and beha io al p ocessing, as well as
applica ions o machine lea ning o he men ioned domains.
P o . Kos ek has p esen ed mo e han 600 scien ifi c pape s
o jou nals and a in e na ional con e ences. She has also
published h ee books ela ed o mul imedia applica ions.
She is he ecipien o many p es igious awa ds o esea ch,
including hose o he P ime Minis e o Poland ( wice), he
Minis y o Science, and he Polish Academy o Sciences.
She has supe ised mo e han 300 mas e ’s and eng. wo ks
and 25 doc o al heses. She has also led a numbe o esea ch
p ojec s. She was he edi o -in-chie o he Jou nal o he Au-
dio Enginee ing Socie y and A chi es o Acous ics, as well
as Associa e Edi o o IEEE/ACM TASLP and Gues Edi o
o JASA and JIIS.
h ps://o cid.o g/0000-0001-6288-2908