An adaptive meta-heuristic for music plagiarism detection based on text similarity and clustering

Plagiarism is a controversial and debated topic in different fields, especially in the Music one, where the commercial market generates a huge amount of money. The lack of objective metrics to decide whether a song is a plagiarism, makes music plagiarism detection a very complex task: often decisions have to be based on subjective argumentations. Automated music analysis methods that identify music similarities can be of help. In this work, we first propose two novel such methods: a text similarity-based method and a clustering-based method. Then, we show how to combine them to get an improved (hybrid) method. The result is a novel adaptive meta-heuristic for music plagiarism detection. To assess the effectiveness of the proposed methods, considered both singularly and in the combined meta-heuristic, we performed tests on a large dataset of ascertained plagiarism and non-plagiarism cases. Results show that the meta-heuristic outperforms existing methods. Finally, we deployed the meta-heuristic into a tool, accessible as a Web application, and assessed the effectiveness, usefulness, and overall user acceptance of the tool by means of a study involving 20 people, divided into two groups, one of which with access to the tool. The study consisted in having people decide which pair of songs, in a predefined set of pairs, should be considered plagiarisms and which not. The study shows that the group supported by our tool successfully identified all plagiarism cases, performing all tasks with no errors. The whole sample agreed about the usefulness of an automatic tool that provides a measure of similarity between two songs.


Introduction
Music plagiarism, that is the act of copying, without permission, existing music covered by a copyright, is a controversial and debated topic. In some cases, the high amount of money at stake makes the issue quite important. Recently, famous singers were sued for alleged plagiarism (e.g. Ed Sheeran, 1 Justin Bieber 2 ). Easy-to-use and effective automatic mechanisms for plagiarism detection could be helpful.
Legislations are unclear regarding the rules, or general criteria, that can be applied in order to detect a plagiarism. We focus on the similarity of the melodies. Even though laws do not state that the melody is the main deciding element, it is certainly one of the most crucial aspects. Moreover, we focus our attention on pop music. Thus we consider the problem of identifying similarities between melodies of pop music. In a pop song the melody is the crucial element. Our contributions Our goal is that of building an automated system able to take as input two melodies, as MusicXML files, and provide an indication of their similarity (a percentage). The tool can be of help in the detection of plagiarisms cases. For this reason it can be seen as a plagiarism detection system. We propose a meta-heuristic which is the combination of two novel plagiarism detection methods. The first of such two methods is a text similarity-based method; the second one is a clusteringbased method. These methods can be used singularly for detecting a music plagiarism. However, their combination into a meta-heuristic outperforms each one.
A distinctive characteristic that makes the proposed meta-heuristic different from other methods proposed in literature is its adaptive nature, i.e., it changes its behavior based on the knowledge-base on which it was built. Indeed, the detection mechanism is not based on pre-defined rules built by observing specific plagiarism examples, but rather on rules extracted directly from the knowledge-base. The knowledge-base, therefore, can be viewed as the set of examples from which the system learns how to discover music plagiarisms. This allows to overcome the limitations of existing methods, which have a poor generalization capability. To reach this result, both the text similarity-based and the clustering-based methods are built according to a reward mechanism that depends on the knowledge-base.
Other contributions are the textual representation for melodies used by the text similarity-based method and the vectorial representation used by the cluster similaritybased method, for representing melodies. Both the representations are novel.
To assess the effectiveness of the proposed methods, we have carried out experiments on a testing set containing famous plagiarism cases. Results show that the adaptive meta-heuristic outperforms existing methods.
Finally, we deployed the meta-heuristic into a tool, made available as a Web application accessible as an online service. The tool allows to compare two songs using the proposed meta-heuristic and provides visual feedback to the user. Intended users of the tool are judges of court trials involving music plagiarism, music producers, music composers, or anyone interested in comparing the similarities of two songs. We have also conducted a preliminary study to evaluate its effectiveness, usefulness, and overall acceptance. We have involved 20 people, partitioned into two equally-sized groups. We asked both groups to listen to 6 pairs of songs and provide feedback about the existence of potential plagiarisms. We gave access to the online service to only one of the groups, and thus only people in this group have used the tool to get support for the judgment. Limitations As already said, our approach takes into consideration only the melody. Considering only the melody is certainly a limitation. There are other criteria that can be considered. For example, one can carry out an accurate analysis of scores and recordings, that, beside the melody, can involve harmonic and rhythmic considerations, comparative listening, and other aspects, such as a similar (or same) title, similar lyrics, the likeliness of the defendant's knowledge about the plaintiff's song, and also factors depending on the psychological perception of melodic similarity. 3 Also the genre of the music can play a role in identifying the important aspects that need to be considered.
Some studies (Yuan et al. 2020;Flexer and Lallai 2019;Flexer and Grill 2016;Flexer 2014) show that aspects different from the melody can play a crucial role in assessing the case, although they are difficult to be described with quantitative metrics of similarity. These studies provide a deep analysis of the intrinsic difficulties that arise in the determination of the similarity between a pair of songs. These difficulties are tied to the subjective aspects of the problem. In particular, it is demonstrated that judgments of different listeners often disagree and even the same person can change his own judgments when repeating trials involving the same examples. The tool that we propose clearly is not able to overcome these intrinsic difficulties. Nevertheless, it can be of help in making the decision.
As discussed in Wolf and Müllensiefen (2011), music copyright laws vary, to some extent, from country to country. In the USA, the Copyright Law for Musical Works is found in Title 17 of the United States Code and is administered by the US Copyright Office. In the UK the relevant law is the Copyright, Designs and Patents Act 1988. In Italy, copyright is largely regulated by the Law of 22 April 1941, n. 633. There have been also attempts to harmonize copyright laws: the directive 2001/29/EC on the harmonization of certain aspects of copyright and related rights in the information society which was implemented by Legislative Decree of April 9, 2003, n. 68. To the best of our knowledge, none of the law jurisdictions provide explicit "rules" to recognize music plagiarism cases. Actually, legislations have only general laws for copyright infringement, that are applied to the specific case being judged.
In several court cases the similarity of the melody is the fundamental aspect. As a concrete example, we bring the controversy that involved Michael Jackson and the Italian singer Albano Carrisi. In 1991, Jackson released the song Will You Be There, which has a melody almost equal to that of the 1987 song I Cigni di Balaka by Albano. In a first verdict, Jackson was sentenced to pay 4 million dollars. But at the end of a long and fluctuating trial held in Italy, in which Michael Jackson himself participated, it was established that both songs resumed a third song, namely Bless you, recorded by the Ink Spots in 1939, which in turn was based on a very old and traditional melody. In this case the melody was crucial, as stated in the verdict ("Corte d' Appello", Milan, Nov 24, 1999 4 ).
In other law jurisdictions, there are numerous well-known cases of plagiarism in which the most relevant deciding element is the melody. We cite the case of Chuck Berry who sued the Beach Boys for the song Surfin whose melody is exactly the same as the one of Sweet Little Sixteen. As a result, the credits for writing the song were changed from Brian Wilson (Beach Boys) to Chuck Berry.
The rest of the paper is organized as follows: in Sect. 2 we briefly cite existing literature, and we highlight the key differences with our work. Then we present our music plagiarism detection method: in Sect. 3 we provide details about the approach based on text-similarity techniques, while in Sect. 4 we provide details about the approach based on clustering. Section 5 shows how the text similarity-based and the clustering-based plagiarism detection methods have been combined to obtain the proposed adaptive meta-heuristic. Section 6 describes a web application offering the proposed system as on online service. The section describes also a study that evaluates the effectiveness, usefulness, and the overall user acceptance of the tool. Finally, in Sect. 7 we conclude with some final remarks and future directions.

Related work
Several interesting attempts to classify existing algorithms that measure melodic similarity have been proposed (Müllensiefen et al. 2004;Müllensiefen and Pendzich 2009;Wolf and Müllensiefen 2011). Based on these studies, in this section, first, we identify some crucial classification criteria useful for the definition of a comprehensive classification scheme, and then, we discuss algorithms proposed in literature, by highlighting for each of them, the position within the defined scheme, and the main differences with the approach described in this work. Classification scheme. With the aim of describing the main features of the proposed approach, we have identified the following three classification criteria: 1. "how melody is represented?" 2. "how melodic similarity is perceived?" 3. "is the similarity dependent on the context in which it is measured?" The first criterion ("how melody is represented?") focuses on the melody representation. As discussed in Müllensiefen et al. (2004), an algorithmic based similarity measure uses an abstract representation of a melody sounding in time and pitch space. According to this definition, a melody can be handled as a time series (t n , p n ), where t n and p n are the rhythm and pitch, respectively, at time n. Starting from this abstract representation, an algorithm for measuring melodic similarity can "view" a melody as a: (i) string, (ii) numeric feature-based entity (usually representable in space), and (iii) musical feature-based entity. In the first case (melody as string), we say that the algorithm uses a symbolic representation; this class coincides with the symbolic representations proposed in Müllensiefen et al. (2004). In the second case (melody as numeric entity), we say that the algorithm uses a numeric representation; this class includes the vector measures proposed in Müllensiefen et al. (2004), but also geometric measures (Ó'Maidin 1998), and applications of the Earth Mover's Distance (Typke et al. 2007). In the third case (melody as musical entity), we say that the algorithm uses a musical representation; this class includes the musical measure proposed in Müllensiefen et al. (2004).
The second criterion ("how melodic similarity is perceived?") focuses on the perception of the melodic similarity. As discussed in Wolf and Müllensiefen (2011), algorithms can be classified in two general classes: feature-based (Tversky 1977), i.e., based on the perception of features that two objects share and the salience of these features, or spatial (Shepard 1957), i.e., for which the comparison of two objects is based on points in space and on distance metrics. Accordingly, we classify a measure as feature-based, in the first case, and as spatial, in the second one.
The third criterion ("is the similarity dependent on the context in which it is measured?") focuses on the nature (adaptive or static) of the melodic similarity. If the perceived similarity changes based on the specific context in which the melodies are used (e.g., learned examples), then the measure has an adaptive nature, otherwise it has a static nature. Accordingly, an algorithm can be classified as either adaptive or static.
Using the above described criteria, in the following, we provide classification details of known algorithms. As we will see, an algorithm can also belong to more than one class. Algorithms for measuring melodic similarity. Several algorithms for measuring the similarity between monophonic melodies, have been proposed in literature. As discussed in Müllensiefen and Pendzich (2009), they range from relatively simple and widely-used string matching-based techniques, to algorithms which make use of statistical information about the prevalence of musical structures in large music collections, up to geometric measures, and so on.
The most basic example of string matching-based technique is the well-known edit distance, defined over two strings of symbols from the same alphabet as the minimum number of operations, i.e., insertions, deletions, and substitutions, needed to transform one of the strings into the other one. Several attempts of applying it and its "weighted" version (in which the weights are the duration of the notes) to melodies represented as strings, can be found in literature (e.g., Mongeaul and Sankoff 1990;Crawford et al. 1998).
Another family of algorithms widely used in modern text retrieval is that based on the notion of n-gram. 5 Several applications of such algorithms to music have been proposed (e.g., Downie 1999;Uitdenbogerd 2002). The performance of some ngram algorithms, such as Ukkonen and Sum Common, have been also compared with other similarities measures in Müllensiefen and Pendzich (2009); Ukkonen reflects the notion of "difference" between two strings by summing the differences of the frequencies of all the n-grams not occurring in both strings, while Sum Common reflects the notion of similarity, by summing frequencies of n-grams occurring in both strings. Algorithms based on the edit distance and on n-grams, can be classified as symbolic, spatial, and static.
Based on the idea of similarity as a function of the complexity required to transform the representation of one into the representation of the other (Hahn et al. 2003), a music application of the Earth Mover's Distance has been proposed in Typke et al. (2007). Using a mapping of (usually) onset time and pitch onto a subset of a twodimensional space, where the note's duration is represented by the weight of each point, the similarity of two melodies is measured as the work required to convert one melody into the other one, given by the effort needed to change the location and weight of the point set representing the first melody. This algorithm can be classified as numeric, spatial, and static. Tversky (1977) proposed a different concept of similarity, based on a theory that takes into account the perception of features that two objects share and the salience of these features. According to this theory, the human perception is mainly influenced by well-defined features and also the salience of these features, where the salience is also the result of habituation, knowledge, and interest in a specific domain. Based on this idea of similarity, an interesting weighting scheme developed from a large corpus of pop melodies has been proposed in Müllensiefen and Pendzich (2009). The assumption is that two melodies sharing more frequent features are less similar than two melodies sharing rather infrequent features. Several variations of the Tversky algorithm have been proposed in Müllensiefen and Pendzich (2009). An interesting application of this approach can be found in Cason and Müllensiefen (2012), in which the authors observed that involving a corpus of music in the similarity comparison makes the similarity value depend not only on the two melodies being compared, but also on the corpus from which the perceptual weights are derived; and this represents a desirable feature for a similarity comparison approach, since it models an average and idealized listeners' stylistic knowledge and expectation. The basic Tversky algorithm can be classified as symbolic, feature-based, and static, while its weighting variants are symbolic, feature-based, and adaptive.
Several works in literature have exploited the algorithms described so far, to propose more elaborate techniques for measuring melodic similarity.
As an example, in Robine et al. (2007) the authors observed that most of the existing systems for the comparison of symbolic music are based on string matching algorithms and represent music as sequences of notes. However, the direct adaptation to the musical context often does not lead to an accurate detection algorithm, since very different sequences can represent very similar musical pieces. To face this problem, they pro-posed a system which mainly considers melody but takes also into account music theory elements. Such a system can be classified as spatial, and static, according to the second and third criteria described above, respectively. However, concerning the first criterion, the integration of musical elements in the string representation can be considered both symbolic and musical.
A different idea (than those described up to now) of melodic similarity, can be found in the family of measures named geometric in Müllensiefen and Pendzich (2009), that can be classified as numeric. As an example, in Ó' Maidin (1998), the authors proposed a geometric measure of the difference between two melodies. The melodies are modelled as monotonic pitch-duration rectilinear functions of time, and the difference between the two melodies is given by the minimum area between the two polygonal chains, allowing vertical translations. This is a typical example of numeric algorithm. Furthermore, it is also spatial and static.
Other approaches exploit visualization techniques (e.g., De Prisco et al. 2016, 2017aPark et al. 2019). Several representations of the melodic relations among songs have been used and studies investigating the intuitiveness and accuracy of the proposed representations, highlighted important aspects: (i) the performance is closely related to the ability of a melodic representation to grasp the most useful aspects for discovering melodic relations, (ii) the combination of different approaches or representations often provides unexpected and interesting results [as observed also in De Prisco et al. (2017c) and in Robine et al. (2007)], and (iii) as observed in Cason and Müllensiefen (2012), the definition of an adaptive approach, in which the similarity depends not only on the melodies being compared but also on information about the corpus in which the melodies are defined, could be decisive for a similarity comparison approach. The proposed approach The main characteristic of the proposed approach, is that it tries to merge the advantages offered by several of the classes of algorithms described above. Specifically, the idea is to use a very simple representation, "close" to the original musical one but at the same time we want to exploit in a more efficient way the existing clustering algorithms by using a "vectorial" transformation of the proposed textual representation, in order to obtain a greater generalization capability. To the best of our knowledge, our meta-heuristic is one of the first attempts at defining an adaptive method based on different types of representations. Such a meta-heuristic is spatial and adaptive according to the second and third criteria, respectively, and both symbolic and numeric according to the first criterion. We remark that, the specific textual representation, and other technical details that the reader can find in the following sections, are also novel.
We recall, as discussed in Sect. 1, that we focus only on the melody, without considering other musical aspects such as harmony, sound properties of specific performances (timbre, time, dynamics), and auditory perception of similarity. Table 1 summarizes the comparison between our work and the previous ones. Specifically, we report details about the classification criteria described above, and named in the table as: (i) representation-"how melody is represented?" (symbolic, numeric, musical), (i) perception-"how melodic similarity is perceived?" (spatial, feature-based), (iii) nature-"is the similarity dependent on the context in which it is measured?" (adaptive, static). When necessary, for each work we also highlighted the specific basic approach to which we are interested. For example, in Müllensiefen and Pendzich (2009), several algorithms have been compared. However in this specific case, we are interested in the Ukkonen and Sum Common algorithms (highlighted with ) used in the experiments.

The text similarity-based method
In this section, we present our first music plagiarism detection method, the one based on text-similarity techniques. Figure 1 shows an overall view.

Knowledge-base construction
The knowledge-base can be thought of as the set of examples from which to learn the detection rules for discovering music plagiarisms. The examples can be positive, i.e., plagiarism cases, and negative, i.e., non-plagiarism cases. The choice of this set is crucial. Unfortunately, there is no publicly available digitized dataset of plagiarism cases, in which the music sheets have a uniform format that is easy to use. For our experiments, we have used, as a starting point, a database made publicly available by the George Washington University Law School & Columbia Law School 6 ; the database contains 296 plagiarism disputes brought to the United States federal court since 1840s.
Since among these 296 cases, there are very few cases whose verdict is based "exclusively" on the melody (recall that, as explained in the Introduction, we consider only the melody), we have selected only the cases whose verdict considered the melody as one of the decisive elements, completely excluding cases where only other aspects like lyrics, sound, and accompaniment, were decisive. The filtered set so obtained consisted of 164 cases.
We have split such 164 cases in positive and negative examples. Specifically, in this subset of positive examples we have included: (i) effective plagiarism cases, i.e., cases concluded with a plagiarism sentence, and (ii) alleged plagiarism cases, i.e., cases concluded with an agreement between the parties. Conversely, in the set of negative examples, we have included all other cases.
Since the starting database did not contain, for every song, all the needed information, we have carried out exhaustive searches on the web to recover music sheets and, when possible, documents related to the judicial sentences. In some cases we have transcribed the melody. In total, we have collected music sheets of songs involved in 52 positive examples and in 112 negative examples. We have digitalized the music representation, using the musicxml 7 format. As we will see in Sect. 3.3, several experiments have been performed to study how the selection of positive and negative examples (and their size) to be included in the knowledge-base, can affect the tuning of the proposed method.

MasS: Music as String
The music sheet of each melody contained in the knowledge-base has been converted into a text string through a textual representation technique. We have experimented with several representations. We started with simple ones that considered only the notes (e.g. p-C5-B4-D5-C5-B4-Bb4-G#4-A4-A4-A4...) or only the intervals between notes (e.g. -1+3-2-1-1-2+1+0+0-1+2-1-1-1...). Simple representations, however, suffer of several drawbacks. For example in the notes-only representation a melody transposed into a different key will be considered completely different from the original one; the intervals representation ignores completely the note lengths and notes lengths are an important part of the melody. Thus we tried several other representations, some of them that used symbols equivalent to the ones used in the actual music score (e.g., a note-length alphabet D = { w, h, q, e, s} containing a symbol for each possible note length: w = whole (4/4), h = half, 2/4, q = quarter, 1/4, e = eight, 1/8, and s = sixteenth, 1/16), and finally used the following pinl representation.
pinl(pitch-interval with normalized length). The melody is represented as a text string that uses the following symbols. A " p" (pause) for the rests, an integer that represents the interval, measured in semitones, with respect to the previous note (the first note is ignored). The integer is negative for jumps downwards and positive for jumps upwards; there is no need for a sign for an interval of 0 (repeated notes). After the integer, there is a string of one or several "b". The "b" encodes a base note length and is repeated as many times as needed. For example, if the symbol "b" represents a quaver note length, the length of a dotted quarter note is represented as "bbb". The base note length value represented by the "b" is computed in a dynamic manner. Given a melody m = {n 1 , . . . , n k }, we first compute the minimum note length d min in m. Then, we compute the frequency f min of the notes with length d min in m. If f min < δ, where δ is a fixed minimum frequency, then the notes with length d min are simply ignored, and we repeat the same argument on the remaining notes. The parameter δ can be fine-tuned, testing the results with experiments; we have used f min = 0.03.
As an example, consider the melody in Fig. 2. For this melody the base note length, represented by b, is the quarter note and the string representation of the melody is: We remark that the pinl representation is the result of a study that involved several other representations and the specific choices made for this representation are attempts to have a better behavior with respect to specific aspects. For example the dynamic normalized note length representation helps in identifying similarity of scores written with different time signatures.

Experiments
We have considered the following well-known text-similarity metrics (see Gomaa et al. (2013) for a survey on text-similarities metrics): Cosine similarity (cs), Jaro similarity (jrs), Dice's coefficient (dc), Overlap coefficient (oc), and the Jaccard similarity (js). We recall that for each of the considered text-similarity metrics we can obtain a value in the range [0, 1], where 0 means "different melodies" while 1 means "same melody".
Since the metric will be used to provide a binary answer, we need to decide a threshold t, that will determine the answer: if Metric(m 1 , m 2 ) > t then melodies m 1 and m 2 are similar, while if Metric(m 1 , m 2 ) ≤ t, they are classified as different. Our goal is to select the best choice of the pair (Metric,t).
To this end, for each Metric ∈ {cs,jrs,dc,oc,js} we proceeded as follows: 1. Compute the similarity value for each pair of melodies in the knowledge base, using Metric. Let t 1 , t 2 , t 3 , . . . be all such values. 2. Consider each t i as a possible threshold for the plagiarism detection with Metric. 3. Evaluate the "behavior" of the pair (Metric,t i ) with respect to the knowledge base: That is, take all the plagiarism cases (m 1 , m 2 ) and check whether Metric(m 1 , m 2 ) > t i ; these are the true positives. Take all non plagiarisms cases (m 1 , m 2 ) and check whether Metric(m 1 , m 2 ) > t i ; these are the false positives. 4. Consider the best threshold T hr, that is the value t i that maximizes the true positives and minimize the false positives. Since this is a multi-objective optimization problem, consider the Pareto front 8 ; 5. Among all the solutions in the Pareto front, select the one that minimizes the number of false positives; if such a solution is not unique, select one that reaches the highest number of true positives. Table 2 shows the results obtained. Specifically, the first part of the table reports the similarity threshold (T hr), and the results obtained in terms of true positives (tp), false positives (fp), true negatives (tn), and false negatives (fn), while the second part reports the accuracy (acc), recall (rec), and precision (pre), for each text-similarity metric considered.
Using these values, we can decide the best metric, as the one that maximizes the true positives and minimizes the false positive. As can be seen from the table, the Pareto front contains cs and jrs. To choose a single metric, we look for the one with the best false positive rate, which is cs. Improvement We considered the following question: instead of defining a method based on the application of a single text-similarity metric, is it possible to automatically create an ensemble of metrics that allows to optimize performance, based on the examples contained in the knowledge-base? To tackle such a problem, we first define the notion of best ensemble of a knowledge-base: and K n is the set of non-plagiarism cases. Let M be a set of text-similarity metrics. The overall method Given the best ensemble, we establish whether a pair of melodies (m 1 , m 2 ) are a plagiarism case, as follows: let e = (s 1 , . . . , s k ) be the best metric ensemble, let t e be the threshold for e. Compute the value for each metric s i ∈ e on (m 1 , m 2 ). Let t i be the threshold of then m 1 and m 2 are a case of plagiarism. The choice of K p and K n Observe that the performance of the proposed approach depends on the tuning of the parameters and the thresholds, which, in turn, depends on K. In order to understand how these tuned values depend on K, starting from the knowledge-base described in Sect. 3.1, consisting of 52 plagiarism cases and 112 non-plagiarism cases, we have built several K p (as subsets of the 52 plagiarism cases) and K n (as subsets of the 112 non-plagiarism cases) of different size. Specifically, we have considered |K p | = 10, 20, 30, 40, 52, and |K n | = 10, 20,30,40,52,60,70,80,90,100,112. Notice that we considered the case |K n | = 52 instead of the more natural choice of 50, because this is the largest size for K p . Moreover we verified that the case with cardinality |K p | = 50 returned substantially the same results as the case with cardinality |K p | = 52. The same choice has been made for the largest size of |K n | = 112. For each combination of K p and K n , with each set consisting of randomly chosen elements, we have a configuration that we indicate with |K p |, |K n | . For each configuration, we have applied 10 times the overall method described above, using M = {cs, jrs, dc, oc, js}.

Fig. 3
Results of experiments performed to study how the performance of the proposed approach and the tuning of parameters and thresholds are affected from K. Each point corresponds to (and is labeled with) a " K p ,K n " configuration, and the x-coordinate (resp. y-coordinate) is the percentage of true positives (resp. false positive) detected by the overall method. Balanced configuration (|K p | = |K n |) are highlighted with red points (Color figure online) Figure 3 reports the average results obtained. Each point represents one specific configuration |K p |, |K n | and is labeled with the text " |K p |, |K n |". For example, the point labeled with 10, 40 corresponds to the configuration using |K p | = 10 and |K n | = 40. For each point The x-coordinate (resp. y-coordinate) is equal to the percentage of true positives (resp. false positive) detected by the overall method, when the |K p |, |K n | configuration corresponding to such a point is used. The percentage of true positives detected is computed with respect to |K p |, as t p |K p | × 100, where t p is the total number of true positives detected. The percentage of true negatives is computed similarly, but considering |K n |. For example, for the point corresponding to (and labeled with) 10, 40 , the x-coordinate is 57.4 and the y-coordinate is 52.6. This means that, by using the 10, 40 configuration, the overall method is able to detect 57.4% of true positives, obtaining a 52.6% of false positives.
As described above, the goal of the overall method is to maximize the number of true positives and, at the same time, minimize the number of false positives. From a graphical point of view, in Fig. 3, the quality of a point increases as its position drifts down and to the right. For example, the point labeled with 30, 70 corresponds to a better configuration than the point labeled with 10, 40 . Furthermore, balanced configurations, that is configurations with sets of the same size, are indicated with larger red points and boldface labels. As we can see, in general, as the value of |K p | increases, the ability to detect more true positives tends to increase. Indeed, it is possible to see how the x-coordinates of the points tend to go to the right as we go from |K p | = 10 to |K p | = 20, and so on up to |K p | = 52. This behavior means that an increase in examples of plagiarism cases in the knowledge-base actually corresponds to an increase in the ability to detect cases of plagiarism. However, it is not possible to always observe the same behavior for K n . As we can see, for the configurations |K p |, |K n | with |K p | = 10, 20, the results appear unstable, i.e., increasing the |K n | value does not always correspond to a better ability to avoid false positives (i.e. decrease the percent-age of false positives). This instability tends to lessen for |K p | > 30. In particular, for |K p | > 30, we can see how balanced configurations |K p |, |K n | are always better than all configurations |K p |, z , for each z = |K p |. For example, the configuration 52, 52 is always better than 52, z , with z = 10, 20,30,40,52,60,70,80,90,100,112. For such a configuration, we always obtained e = (cs, dc, oc) as the best performing ensemble, with t p = 51 and f p = 2.
In conclusion, from this experimental data, we conclude that it is always preferable to work with balanced configurations. Since the largest balanced configuration we can build is 52, 52 , in the following experiments we have used the knowledge-base described in Sect. 3.1, K = K p ∪ K n , with |K p | = |K n | = 52 (with the elements of K n randomly chosen among the 112 available).
Finally, we remark that the method described is general, and thus it is possible to consider other sets for K and M.

The clustering-based method
In this section, we present our second music plagiarism detection method, the one based on the clustering technique. It consists of the following three phases, illustrated in Fig

Knowledge-base construction
The knowledge-base used for the construction of the clustering-based method is the same as the one proposed in Sect. 3.1, and it has the same function: allow the system to learn from the examples.

MasV: Music as Vector
In this phase, each melody in the knowledge-base described in Sect. 3.1 has been first converted into text by using the pinl representation described in Sect. 3.2. Then, the textual representation of each melody has been converted into a vector of real numbers. Several works have been proposed in literature to transform a string into a vector. Some simple models represent words with random vectors or with integer numbers. The drawback of such models is that they do not represent any semantic connections between words. Other techniques, such as word2vec 9 or Glove, 10 called semantic models, are trained on a large corpus of existing texts, and as a result, the words in similar contexts are represented by proximal vectors.
However, semantic models contain some information about the meaning of words extracted while training on large texts corpora, but they operate with a fixed vocabulary. This is a significant drawback since, if a text contains a significant number of words that do not belong to the vocabulary of a semantic language model, then the model is non-efficient. To solve the problem, it would be appropriate to create embeddings based only on words spelling and relate similar vectors to similarly spelled words. One of the most interesting techniques is char2vec, a recent word embedding technique, particularly suitable to learn words not belonging to any dictionary. For example, char2vec proved to be efficient in learning some patterns hidden within HTTP packets (Wang et al. 2018), or to understand the use of words, abbreviations, codes not present in the dictionary and strings used in biology (Hussain et al. 2018). By empirical observations during our experiments, we have noticed that such a technique is particularly suitable for embedding music representations such as those described in Sect. 3.2. Thus, we have decided to use such a technique for embedding the strings obtained using the pinl representation.
Specifically, given a string, char2vec produces a vector of a fixed embedding size. The char2vec library allows to use custom sizes. For our experiments we used the following ones: 50, 100, 150, 200, and 300. Recall that we use pinl(m) to represent the melody m as a string; we denote cv l (pinl(m)), or just cv l for brevity, the vector of size l produced by applying char2vec to the string pinl(m).

Experiments
In this section, we describe the experiments carried out define the details of the proposed method. As for the text similarity-based method described in Sect. 3, also in this 9 https://www.tensorflow.org/tutorials/text/word2vec. 10 https://nlp.stanford.edu/projects/glove/. k-means 0.73 31 9 algorithm = "elkan" spectral 0.80 50 9 eigen_solver = "arpack", affinity = "rbf" sc silhouette coefficient, tp average number of true positives, #cluster number of clusters used, setting variant of the model (in terms of set parameters), which showed the best silhouette coefficient case, the adaptive aspect consists in the fact that the proposed method will be defined on a knowledge-base. Preliminary analysis We have used the following well-known clustering models: gaussianmixturemodel, k-means, birch (Zhang et al. 1996), agglomera tive, minibatch (Sculley 2010), and spectral. K = K p ∪ K n is the same as before. The interested reader should refer to Xu and Wunsch (2005) for more information about clustering algorithms.
1. For each combination "MasV representation/clustering model", and for a number of clusters in 1, . . . , |K p | = 52, we have trained 20 times the clustering model on K p . 2. We selected the best combination "MasV representation/clustering model", i.e, the one which best learned the plagiarism examples in K p ; specifically, we built the pareto front by using two optimization criteria: maximize the average number of true positives and maximize the average silhouette coefficient. In this case, a true positive is a case in K p , whose pair of melodies are correctly inserted in the same cluster.
All the clustering models have been implemented using Scikit-learn, 11 the Python library used for machine learning-based applications. Regardless of the clustering model used, the best results have always been obtained by using the representation cv 50 . In Table 3 we provide the results. For each model, we report the setting, i.e., is the variant of the model in terms of set parameters which showed the best silhouette coefficient (see Python Scikit-learn library documentation for further details). As we can see, the best result for each clustering model has been obtained by setting the value for the number of cluster parameter in the range [8,11]. In particular, the best clustering model turned out to be spectral with #cluster = 9. Such a model, indeed, is able to successfully detect 97% of the plagiarism cases in K p (t p = 50).
In Fig. 5, we also show an overview of the application of the clustering models trained using the vectors obtained by using the cv 50 representation. Each bar graph is Fig. 5 Overview of the application of the clustering models trained using the vectors obtained by using the cv 50 representation. Each bar graph is structured as follows: on the X axis there are all the plagiarism cases in K p , while on the Y axis the number of times the model was able to insert a plagiarism case in K p in the same cluster structured as follows: on the X axis there are all the plagiarism cases in K p , while on the Y axis the number of times the model was able to insert a plagiarism case in K p in the same cluster. To get a "visual intuition" of the performance for each model, just look at the frequency of high values (long bars) along the entire X axis. As we can see, the spectral model has the higher frequency of high values along the entire X axis.
In conclusion, the clustering-based method for music plagiarism detection that we use is the one obtained by training a spectral model on the cv 50 representations of the melodies involved in the plagiarism cases contained in K. Finally, to test whether a pair of melodies (m 1 , m 2 ) is a plagiarism case, we just need to check whether m 1 and m 2 belong to the same cluster. We remark that this does not mean that clustering is reduced to a similarity function between two melodies, but, instead that we use clustering to check if the two melodies are in the same cluster (where it is possible also to find other melodies).
Sect. 3, and of the clustering-based method described in Sect. 4. By combining the two methods we are able to improve the performance in discovering music plagiarisms.
There are several choices to be made to construct such a combination. First of all the order in which the two methods are applied; then, for the text similarity, we have to choose all the thresholds for each of the similarity techniques used. We have conducted experiments, making various choices. Then, by empirical observation, judging each combination on its behavior on a set of known cases, we ended up using the following criterion: given a pair of melodies, (i) we first use the text similarity-based method to have an "high level" plagiarism/non-plagiarism classification, and then, if necessary, (ii) we use the clustering-based method to refine the previous classification.
Formally, the adaptive meta-heuristic works as follows: 1. Let K = K p ∪ K n be the knowledge-base, where K p is the set of plagiarism cases, and K n is the set of non-plagiarism cases. 2. Let e = (s 1 , . . . , s k ), be the best ensemble on K and representation pinl, and let t e be the threshold for e, as defined in Sect. 3. 3. Let C be the set of clustering models, and let c ∈ C be the best clustering model trained on K p using cv 50 on the pinl representations of the melodies. To summarize, the proposed meta-heuristic is built upon the knowledge-base K = K p ∪ K n defined in Sect. 3.1 (K p consists of 52 plagiarism cases, while K n consists of 52 non-plagiarism cases). Uses the text-based representation pinl, optimized over the set of metrics M = {cs, jrs, dc, oc, js}, with e =(cs, dc, oc) being the best ensemble, and t e = [0.70, .0.70, 0.90]. Uses the vector representation cv 50 , with the spectral clustering model, which gave the best results for 9 clusters. With such a setting, we obtained full accuracy on the test set, that is t p = 52 (100%) and tn = 52 (100%), which is an improvement with respect to the result obtained by applying only the text similarity-based technique (t p = 51 and tn = 50). This also proves the positive impact of the clustering-based method to refine the previous classification.

Experiments with famous cases
We tested the proposed meta-heuristic on 25 plagiarism cases and 25 non-plagiarism cases and compared the results with those of existing methods.
We have considered the set of 105 cases in the list of plagiarism disputes provided by Wikipedia, 12 and by carrying out, on each of these cases, a thorough search of the verdicts. In order to assess the generalization capability of the proposed approach. Among such 105 cases, we have selected 25 positive cases (plagiarism cases) and 25 negative cases (not-plagiarism cases), satisfying the following two conditions: (i) they were not included in the knowledge-base K used for training the meta-heuristic (see Sect. 3.1) and (ii) the melody was one of the elements considered for the decisions. The choice about the number (25) was driven by the availability of the material (e.g., music sheets, audio recordings). Comparison We selected the following methods: the adaptive meta-heuristic (AM) proposed in Sect. 5, the text similarity-based method (TM) proposed in Sect. 3, the clustering-based method (CM) proposed in Sect. 4, the Fuzzy vectorial (fuzzy) proposed in De Prisco et al. (2017c), and the Tversky's feature-based (tversky), Ukkonen (ukk), and Edit distance (edit) as described in Müllensiefen et al. (2004) and Müllensiefen and Pendzich (2009). We remark that tversky is the basic version of the Tversky's feature-based method; we have not considered its weighted version described in Müllensiefen and Pendzich (2009).
Since fuzzy, tversky, ukk and edit produce a similarity score between 0 and 1, we need also to establish a cutoff threshold, for each of them, that will be used to produce a final binary value (plagiarism or non-plagiarism). To establish such a threshold we adopted the approach proposed in Müllensiefen and Pendzich (2009), which in turn is similar to those employed to compare binary classifiers (Hand et al. 1997): for each one of the 50 cases, given the two involved melodies m 1 and m 2 , for each method M ∈ {fuzzy, tversky, ukk, edit} we obtain a real value M(m 1 , m 2 ) ∈ [0, 1], which must be compared against the known binary court verdict (the target of the case, i.e., 1 = plagiarism or 0 = not-plagiarism); to evaluate the relationship between the "continuous classifier" M and the known binary target of the case, we computed the optimal cutoff value of M, named coff M , in the knowledge-base K used for training the proposed adaptive meta-heuristic; for each method M, we computed coff M by following the same approach described in Sect We remark that for AM, TM and CM, we have already fixed the best cutoff thresholds. Table 4 shows the similarity threshold (T hr), and the results obtained in terms of true positives (tp), false positives (fp), true negatives (tn), and false negatives (fn). Results of the comparison. Once established the thresholds, we proceeded with the comparison. Tables 5 and 6 show the results regarding the 25 plagiarism cases and 25 non-plagiarism cases.
With regard to the 25 plagiarism cases, the adaptive meta-heuristic (AM) showed the best classification capability, i.e., correctly classifying 22 cases of plagiarism (accuracy of 88%). The Tversky's feature-based method also performed well, correctly classify- We have also highlighted the best ensemble (for AM and TM), and best clustering models (for AM and CM) ing 17 cases of plagiarism (accuracy 68%). The poorest classification is obtained with the edit distance-based method, demonstrating that pure text-based techniques are not always suitable for detecting music plagiarisms. With regard to the 25 non-plagiarism cases, the adaptive meta-heuristic (AM) showed the best result with 2 false positives (accuracy 92%), while 5 false positives were obtained using the Tversky's feature-based method (accuracy 84%). The poorest classification, once again, has been obtained with the edit distance-based method, further demonstrating that pure text-based techniques are not always suitable for facing music plagiarism detection problems.
In conclusion, the results show that the meta-heuristic presented in this paper is a promising approach.

The overfitting issue
An adaptive method, such that the one proposed in this work, might suffer of overfitting. Ours is not an exception. Overfitting is a critical issue faced in Data Science, that can cause an algorithm to perform poorly when used with unseen data because it was trained too much. To mitigate this problem, and improve the generalization capabilities of the method, we exploited the k-fold cross-validation technique for model tuning (i.e., finding the optimal ensemble and clustering technique that yield a satisfying generalization performance).
Specifically, given the knowledge-base K, we carried out the following steps: 1. We randomly split K into k folds without replacement, where k − 1 folds are used for the training, and one fold is used for performance evaluation (test fold); this procedure was repeated k times so that each of the k subsets was used as test fold exactly once. 2. At each step, first, we applied the AM adaptive meta-heuristic, using the k − 1 folds chosen as training set, and then, we calculated the performance, in terms of number of true positives and number of false positives, on the current independent test fold. 3. After using all the k folds as test fold, we chose the best adaptive configuration (the adaptive meta-heuristic that showed the best performance, in terms of maximization Table 5 Comparison of the classification of 25 plagiarism cases The first song always represents the Complaining song, while the second always represents the Defending one. indicates plagiarism, × indicates no plagiarism Table 6 Comparison of the classification on 25 non-plagiarism cases The first song always represents the Complaining song while the second always represents the Defending one. indicates plagiarism, × indicates no plagiarism of true positives and minimization of false positives), and validated its performance on the entire set K.
We remark that we tested the k-fold cross validation approach for several values of k, and the best results were observed with k = 10. Furthermore, we have implemented an automatic routine in the tool described in Sect. 6, which periodically, given the actual knowledge-base (including new cases added by the administrators during the usage of the tool, if any), applies such a technique to update the meta-heuristic.

The web application tool
We have implemented the proposed meta-heuristic into a tool accessible as a Web application. 13 This online service provides visual aids in the form of music scores, probability percentages, and other visually conveyed information, helping the user in identifying a plagiarism case.
The tool allows the management of a database of cases, with detailed information for each case. All information is exposed through the use of suitable and intuitive icons. The overall objective is to offer an ease-to-use interface, guaranteeing a friendly user experience. The web application is graphically illustrated in Fig. 6.
In this section, we first describe the architecture with the functionalities provided by its components and then present an evaluation study about the usability of the tool, in terms of overall user satisfaction.
The tool has been developed exploiting Flask, a Python web framework built with a small core and easy-to-extend philosophy. 14 It detects plagiarism through the metaheuristic described in Sect. 5, implemented by using the python Scikit-learn library. 15 The tool allows to upload a pair of music scores in musicxml format (see Fig. 7), through an easy-to-use user interface implemented by using technologies such as JavaScript and Bootstrap. The scores are received and elaborated by using the JavaScript AlphaTab library, 16 that dynamically builds the corresponding music sheets, which are then visualized in a new web page, and can be played back for listening; this enables users to see and hear the music. Then, the user can perform the plagiarism check: the tool sends the uploaded scores to the server-side, which, in turn, uses the proposed meta-heuristic to detect if a plagiarism occurs; the result is finally returned to the client-side and shown to the user (see Fig. 8). Additionally, registered users can add cases to the database (Fig. 9), attaching scores and verdicts (Fig. 10).

Evaluation study
In this section we describe a preliminary evaluation study, involving 20 people, performed to assess the effectiveness of the tool, in terms of plagiarism detection Fig. 6 Plagiarism Detection overall architecture and its components: the client-side component accepts users requests in the form of musicxml scores, visualizes the corresponding music sheets, and enables the user to start the plagiarism detection utility; the server-side component handles applies the AM metaheuristic. Additionally, registered users can add the analyzed case to the database managed by the platform Fig. 7 When uploading the songs, the system provides a graphical representation of the scores with playback capabilities  The activities required included comparative listening and the study of scores. We are not assuming that sound and notation are equivalent and, therefore, we ask the participants to use both sound material and notations to complete their tasks.
We first describe the employed methodology and then the results obtained. We followed the standard HCI methodology (Lazar et al. 2017), commonly applied in different contexts (Leon et al. 2012;Al-Musawi et al. 2016;De Prisco et al. 2021), as well as for the music plagiarism problem (De Prisco et al. 2016, 2017b. The objective of this study was to explore the efficacy of our tool in supporting users when they have to express opinions about alleged plagiarism between given songs. According to the Between-group Design (Lazar et al. 2017), we divided the sample into two groups: 10 participants (standard group) performed the submitted tasks without any support, while the other 10 (enhanced group) could complete the requested task with the support of the tool. It is worth noting that participants of the second group were not forced to accept the decision suggested by the tool, since the tool is intended only to provide an aid for the decision. Additionally, to ensure equal allocation of subgroups of participants to each experimental condition, we stratified the sample both on gender and music skills. We compared these two groups, trying to understand differences between them in terms of efficacy in discovering plagiarism cases.
We also studied the users' intentions to use the provided tool with selected constructs from the Technology Acceptance Model (Davis 1989), TAM for short. In particular the model considers users' attitudes, perceived usefulness, perceived ease of use, and finally, perceived playfulness. TAM is a widely used theoretical model to explain and/or predict potential users' behavioral intentions to accept a new technology/system. In TAM, perceived usefulness refers to "the degree to which a person believes that using a particular system would enhance his or her job performance", while perceived ease of use refers to "the degree to which a person believes that using a particular system would be free of effort". According to what was discussed by Davis (1989), a system that is perceived to be easy to use, is also likely to be widely accepted. Procedure The study was conducted in the Musimathics research laboratory at the University of Salerno. The personal computer used was equipped with an Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, and 32.00 GB of main memory. Six pairs of songs to listen to were randomly chosen from the knowledge base. All participants in the study listened to the same songs, available online. 17 The study has been structured in three different phases in which we carried out: (i) a Preliminary Survey (ii) a Testing Phase and (iii) a Summary Survey, as defined and implemented also in other contexts (e.g., Erra et al. 2018).
In the first phase, we asked participants to fill in a preliminary survey questionnaire in order to collect: (a) demographic information (i.e., gender, age, education level), (b) information about ICT expertise, (c) general attitudes toward music and the problem under investigation. The questions included in this questionnaire were open-ended questions, questions with a "yes" or "no" dichotomous format, questions asking to give a preference up to 8 possible choices, and finally, questions with a rating on a 5-point Likert scale with strongly agree/strongly disagree as verbal anchors.
In the Testing Phase, we asked participants to perform 6 tasks; for each task the participant was required to listen to a pair of songs and to express his/her personal opinion about the existence of a plagiarism case. Participants of the enhanced group had the possibility to use our tool in aiding them in their decision. We provided all participants with both audio files (to listen to) and the music scores in PDF format file (for further analysis, if needed). The participants of the enhanced group were also provided with the XML representations of songs (XML-based files) to allow them to use the online service. Therefore, they were free to explore the tool and exploit its functionalities in order to get support for a thoughtful decision.
For both groups, we collected the following information: (a) how many times the songs were listened to; (b) whether participants looked at the music scores; (c) the final user's decision; (d) the tool's decision (for the enhanced group); (e) the time used to complete the task. Participants of the enhanced group were also asked to spend few additional minutes in order to answer the TAM questionnaire.
Final perceptions were collected through a summary survey questionnaire. This questionnaire was composed of questions with preferences among at most 5 choices and questions with a rating on a 5-point Likert scale, with strongly agree/strongly disagree as verbal anchors. We also repeated two questions posed in the preliminary survey with the goal of analyzing potential differences at the end of the experiment. Audio files, music scores, surveys and the standard TAM questionnaire are available online. 17 Users were monitored during the experimentation, and they also could call for assistance if they had doubt about the instructions. The testing was performed in an isolated environment within our research lab in order to avoid distractions. Users were also encouraged to provide informal feedback (such as general comments, suggestions, and so on). Recruitment Subjects were secondary school students, students of the Music Conservatory of Salerno, students of the University of Salerno, and professionals from various fields (Engineering, Law, Medicine, Education, Music). They were recruited through word-of-mouth advertising. Furthermore, to avoid a biased sample, when recruiting participants, we did not specify the topic of the study, and we only said that we were looking for people, with a music background even if at various levels, interested in participating in an evaluation study. We were able to recruit: 16 musicians, ranging from students to experts, having, therefore, different skills, 2 producers coming from the music industry, and 2 laws professionals, with a music background. Their participation was voluntary and anonymous, and participants were not compensated for taking part in the interviews. Finally, we obtained the ethical approval to conduct this study, and we asked participants to sign an informed consent in which we explained that data were anonymous and that they would remain confidential. We never shared the acquired data with third parties, but used them only for research purposes. Data analysis Non-parametric tests were applied to study differences between the groups. The Shapiro-Wilk goodness-of-fit test was used to assess the normality of data (Shapiro and Wilk 1965).
The internal consistency reliability among multi-item scales was examined with the Cronbach alpha (Cronbach 1951). Finally, questionnaire responses were analyzed using SPSS version 20. 18

Results
In this section, we report the results of each of the three different phases of the evaluation study. Preliminary Survey Results Results of the Preliminary Survey allowed us to outline the profile of our participants. As shown in Table 7, more than half of the participants were university (bachelor/master) students (65%), the majority were male (i.e., 70%) and the average age was 33. With regard to music skills, half of the respondents spends almost 3 hours per day listening to music, 65% considers themselves "Competent/Expert" in the music field, and additionally, a 35% plays a musical instrument. Moreover, only 10% of participants rated as easy the task of discovering similarities between two songs, and 45% rated themselves as competent in respect to this task (50% beginner, only 5% experts). With regard to ICT skill, 65% of participants rated themselves as competent/advanced, and agreed about the usefulness of having a software tool that automatically discover similarities between songs. Six out of nine participants who answered positively to the question: "Have you ever heard of famous cases of musical plagiarism?", have indicated the Albano Carrisi-Michael Jackson case, as their known case; this case was not included in the Testing Phase. Finally, none of the participants were hearing impaired. Testing Phase Results We recall that in this phase we asked participants to perform 6 tasks. In each task the participant had to listen to a pairs of songs and state whether or not the pair was a plagiarism case. Only participants in the enhanced group were given access to our tool.
As we can see in Table 8, the enhanced group successfully identified all plagiarism cases, performing all tasks with no errors and no hesitations. The standard group exhibited uncertainty for some pairs of songs; specifically, 10% was not sure with regard to Task 1, 20% for Task 4, and finally, 20% for Task 5. The majority of mistakes were made when performing Task 2 and Task 5. We also analyzed whether differences existed between the two groups and whether these were statistically significant. With regard to this first metric, we found out a statistically significant difference in performing Tasks 2 and 4 ( p < .05), and the reasons, as explained before, were due to both uncertainty and mistakes. When we asked, as informal feedback, observations to participants, they give two important feedbacks: one of the two songs in Task 1 had a long introduction, while high timbre similarities (mainly with regard to the Electric piano), were present between the songs in Task 4. These situations may have brought participants to have doubts and to make mistakes during the plagiarism identification process. When analyzing the second metric (whose question was: "How many times did you listened to the songs?"), we found a statistical difference only for the Tasks 1, 2, and 3 (p < .05, for all of them). Here we can observe that participants in the enhanced group listened to the songs more times (see Songs plays columns), with respect to the other group. When we gathered informal feedback, we discovered that for the songs in these tasks, they changed mind about their final decision, but only after using the tool. In summary, the support of the tool involved a new listening of the songs, helping participants to provide correct decisions. For Tasks 4, 5, and 6 we did not find statistical differences and a possible explanation for which the participants in the standard group increased the number of times they played the songs can be found in the uncertainty clearly showed in these tasks (see Table 8).
When analyzing the third metric (whose question was: "How many times did you accessed the music scores?", with results shown in Score accesses column), we found out a difference between the two groups only with regard to Task 2 ( p < .01) and Task 5 (p < .05). Here, as before, the enhanced group made additional accesses after using the tool and achieved 100% of correct answers. Table 8 Comparison of the tested groups in terms of: (a) errors made (Errors), (b) indecision deriving by I do not know responses (Indecision), (c) number of times a song has been played (Songs plays), (d) a number of time a music score has been accessed (Scores accesses), (e) the required time to complete the task (Time) Tasks 2, 3, and 6 were plagiarism cases 1 Values (in percentages) are reported using the following format: Songs plays are triples only once/2-3 times/more than 3 Scores accesses are triples never/only once/more than one Time are quadruples less of 5 mins/between 5 and 10 mins/between 10 and 15 mins/more than of 15 mins Finally, with regard to the last metric (i.e., Time to complete the task, column Time in Table 8), we found out a statistical difference only for the Tasks 1, 2, and 3 ( p values < .05 for all tasks). We recall that for these tasks, the participants of the enhanced group listened to the songs more times, and therefore, more time was needed to complete the tasks.
At the end of the testing phase, we asked participants to respond to the TAM questionnaire. Reliability values (Cronbach's alpha) for all subscales are above 0.80, thus above the recommended threshold value of 0.70 (Jum and Nunnally 1994). As shown in Fig. 11, results were highly positive for all subscales, with the highest value obtained with the behavioral intention to use subscale (B I ). Specifically, for questions B I 1 ("I will use the system on a regular basis in the future") and B I 2 ("I will strongly recommend others to use the system"), we have M = 6.9, S D = 0.3. Relatively to the lowest average value of 5.7, exhibited by the E OU subscale, this is due (as also witnessed by informal feedback) to the low friendliness and flexibility of the tested online service. Specifically the involved questions were E OU3 ("My interaction with the system would be clear and understandable"), for which M = 5.5, S D = 0.7, and E OU4 ("I would find the system to be flexible to interact with"), for which M = 5.3, S D = 0.5. We recall that our tool is in a prototype form yet, and we are currently working in developing it as a scalable, reliable, and user-friendly framework to assist any type of user (by allowing, for example, to upload for the analysis, more common formats for audio files, in addition to the current XML file format, and removing all jargon that is understandable only by technicians and domain experts). Summary Survey Phase Results In this section, we report the results of the questions posed in the questionnaire submitted in the third phase. First, for the question "Which category of users do you think the proposed system could be useful for?", 65 % of BI the participants stated that the proposed tool could be useful to musicians, music producers, judges, and lawyers, while the remaining stated that it could be useful for all people.
Then, we asked only participants of the enhanced group to rate the overall usefulness and easiness of the tool (rating on a 5-point Likert scale). Generally, all participants rated positive the usefulness of the tool (M = 5, S D = 0) and interesting the idea behind it (M = 4.7, S D = 0.5). Confirming results of the TAM (EOU subscale), the lowest value was about the easiness of the tool (M = 3.9, S D = 0.7).
Finally, in this phase, we also asked participants to express their opinion about how easy it was the task of discovering similarities between two songs and how much they believe a software tool that automatically identifies plagiarism cases can be useful. These same questions were previously asked in the preliminary survey phase. The comparison of the answers, allowed to check whether perceptions and opinions changed after the evaluation process.
With regard to the first question, interestingly, we found out that, in the first place, participants rated difficult the task (M = 2.8, SD = 0.7) but even more after approaching it during the evaluation study (M = 2.3, SD = 0.8). The difference was also statistically significant ( p < .05). The result is even more interesting if we consider that participants of the enhanced group changed their opinion by lowering their judgement (M = 2.6 before the study, M = 1.8 at the end of the study).
With regard to the second question, we found out that participants, after the evaluation study, agreed more about the usefulness of an automatic tool supporting users in taking decision about the controversial and debated topic of music plagiarism (M = 3.9, SD = 0.8, before and M = 4.6, SD = 0.5 after). We also found out this difference statistically significant ( p < .005).

Conclusion
In this work, we addressed the controversial and debated topic of music plagiarism, characterized, from one side, by a huge amount of money generated in the music industry and, on the other side, by the fact that the actual courts' decisions are primarily based on subjective argumentations about musical material. In this situation, automated music analysis methods that identify music similarities can be of help.
With this aim, we presented an adaptive meta-heuristic for detecting similarities of two melodies. The meta-heuristic combines two different methods; the first one is based on a textual representation of the melodies while the second one uses a vectorial representation of the melodies. We recall that the similarity between melodies is assumed to be a very important factor in a court's decision about whether a new song is an illegitimate version of a pre-existing melody or not.
Beside designing the meta-heuristic, we also deployed it into a Web application, making available the plagiarism detection tool through an online service. We carried out a small-scale evaluation study to evaluate the effectiveness, usefulness, and the overall user acceptance of the tool. The study consisted in having two groups of people, with only one of the group supported by our tool, decide which pair of songs, in a predefined set of pairs, should be considered plagiarism cases and which not. The study showed that the group supported by our tool, conversely to the group with no access to the online service, successfully identified all plagiarism cases, performing all tasks with neither errors nor indecision. Generally, participants rated positively/very positively all questions about the TAM subscales regarding the overall acceptance of the tool. We also found out a high willingness to use the tool in the future; furthermore, the whole sample agreed about the usefulness of a tool that automatically identifies the existence of plagiarism between two pieces of music songs.
As future work it would be interesting to proceed along two different directions. Given the results obtained in the evaluation study with regard to both the idea and to the prototype proposed in this paper, it would be useful to develop a more robust, more scalable and easy to use framework able to encompasses all steps of the whole process, starting from the codification of the music scores, helping with the analysis of the music, and arriving to the final decision about plagiarism. A particular attention could be devoted to provide a friendly-user interface with no jargon terms, in order to allow a wide usage by all interested people and not only by domain experts.
The other direction for future work regards the evaluation study. It would be interesting to carry out a more extensive and representative study with a larger and diversified sample in order to obtain a statistically more significant analysis of the differences between the groups; additionally, a further analysis (i.e., regression analysis) could be performed to identify which variables, among the ones studied with the standard TAM questionnaire, influence the adoption of our tool.
Funding Open access funding provided by Università degli Studi di Salerno within the CRUI-CARE Agreement.
Availability of data and materials The web platform with examples to test is online at: http://193.205.161. 3:5000; all questionnaires used in the preliminary evaluation study are available online here: https://bit.ly/ 3lsZJqJ.