Voiceprint recognition method and device based on deep residual network and attention mechanism
By introducing MobileNet design and channel domain attention mechanism into the deep residual network, the problem of poor recognition results of traditional voiceprint recognition models in noisy environments is solved, and more efficient voiceprint recognition accuracy and robustness are achieved.
Patent Information
- Application Number
- CN202210304443.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-17
AI Technical Summary
Traditional speaker recognition algorithms have difficulty learning signal structured information and high-level information in complex scenarios, and deep neural networks take a long time to train and are prone to overfitting due to problems such as gradient disappearance and gradient explosion, resulting in poor recognition results in noisy environments. good.
Introducing the design idea of lightweight network MobileNet, combining depth separable convolution and channel domain attention mechanism, constructing a voiceprint recognition method based on deep residual network, filtering important frames through frame-level attention module and using noise training to enhance Model anti-interference ability.
It significantly improves the robustness and accuracy of the voiceprint recognition model, overcomes the problems of large parameters and low efficiency of traditional neural networks, and shortens the network inference delay.
Smart Images

Figure CN114678030B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of speech recognition, and relates to a voiceprint recognition method and device based on a deep residual network and an attention mechanism. Background Art
[0002] With the development of artificial intelligence technology, great progress has been made in the field of voiceprint recognition. Voiceprint recognition, also known as speaker recognition, is a biometric recognition technology that identifies "who is speaking" through voice. It is based on the speaker's personality information in the voice signal to identify the speaker's identity. This technology is widely used in the service industry. There are a large number of scenarios where staff interact with customers during the service process. In order to standardize the staff's speech to improve customer favorability, there is an urgent need for a method that can accurately identify the staff's identity in the case of excessive environmental noise and frequent interactions between staff and customers.
[0003] The model used in traditional speaker recognition algorithms is generally a shallow structure, which only performs a few levels of linear or nonlinear processing on the original input signal to achieve the purpose of feature extraction. The advantage of this structure is that it is easy to learn and has a relatively complete mathematical algorithm to prove and deduce. However, for speech signals in complex scenes, its model has limited expression ability and cannot fully learn the structured information and high-level information in the signal. Models with deep structures, such as deep neural networks (DNNs), have stronger expression and modeling capabilities due to the complexity of their multi-layer nonlinear transformations, and are more suitable for processing such speech signals. The more layers of the neural network, the deeper the level of abstraction of the input features, and the higher the accuracy of its understanding. However, the simple stacking of layers of deep neural networks will cause problems such as gradient vanishing, gradient explosion and network degradation. Therefore, the deep neural network commonly used in the field of speaker recognition is the ResNet network, which can avoid such problems. However, although the ability of the overly deep ResNet network to extract features is enhanced, the training time is also longer, and when the extracted features are too deep, overfitting is prone to occur, that is, the recognition effect is good in the validation set, but it performs poorly in actual applications. Summary of the invention
[0004] In view of this, the purpose of the present invention is to address the problem that the training time is too long and it is easy to overfit when the number of ResNet layers is too deep, introduce the design concept of lightweight network MobileNet, use deep separable convolution to build a network based on the ResNet50 model, and introduce an attention mechanism to screen important frames and use noise training to enhance the model's anti-interference ability in order to address the problem of excessive environmental noise. Provide a voiceprint recognition method and device based on a deep residual network and an attention mechanism.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A voiceprint recognition method based on a deep residual network and an attention mechanism comprises the following steps:
[0007] S1: Preprocess the collected audio data to obtain the Mel Frequency Cepstral Coefficents (MFCC) feature X that can simulate certain characteristics of the human ear (such as being more sensitive to low frequencies);
[0008] S2: Construct a frame-level attention module (FAM) to perform a weighted operation on the importance of each frame through the MFCC feature X obtained in S1 to obtain the weighted MFCC feature
[0009] S3: Build a voiceprint recognition network and perform voiceprint recognition; introduce the design concept of MobileNet, replace ordinary convolution with depthwise separable convolution to reduce the number of network parameters; add a channel domain attention module SE Block after each layer of ResNet50 to model the importance of each feature channel, enhance or suppress different channels for different speakers, and finally input the features into the classifier in the network for classification to achieve voiceprint recognition.
[0010] Further, the step S1 comprises the following steps:
[0011] S11: Divide the original audio data into frames according to a preset fixed length;
[0012] S12: Perform fast Fourier transform on the framed data to convert the waveform features of each frame into a frequency spectrum;
[0013] S13: Convert the spectrum data into MFCC features, that is, obtain a D-dimensional feature vector for each frame of speech. The original speech data is divided into N frames, and an N*D two-dimensional matrix X is obtained.
[0014] Further, the step S2 comprises the following steps:
[0015] The frame-level attention module FAM consists of an average pooling layer and a bottleneck layer; the average pooling layer is used to obtain the global information embedding of each frame of MFCC features, that is, to find the F n , the average value of the feature vector of n∈{1,N} is used to obtain the N-dimensional vector A, and the formula is as follows:
[0016]
[0017] The bottleneck layer is used to generate weights for different frames, and the formula is as follows:
[0018] Y = Softmax(W2δ(W1A))
[0019] This process is implemented by two fully connected layers. The first fully connected layer W1 compresses the vector A into an N / r-dimensional vector to reduce the number of parameters, and then uses the Relu activation function δ to increase the nonlinear expression ability of the network. The second fully connected layer W2 restores the vector A to N dimensions, and then passes the Softmax activation function to obtain the N-dimensional weight vector Y. Each element of the weight vector Y is multiplied by each row of the original matrix X to obtain a new weighted feature map. The formula is as follows:
[0020]
[0021] Where X n is the nth row vector of the original matrix X, Y n is the nth element of the weight vector Y.
[0022] Further, the step S3 comprises the following steps:
[0023] S31: Use BlockA to replace the residual block of ResNet50;
[0024] S32: embed the SE Block with the channel domain attention mechanism into the tail of each BlockA to form the basic component module BlockB of the voiceprint recognition network;
[0025] S33: Add a layer of Relu activation function and a layer of fully connected layer after the original fully connected layer of ResNet50 to form a new classifier to complete the construction of the voiceprint recognition network.
[0026] Furthermore, the BlockA in step S31 adopts a residual connection structure, wherein the residual branch uses a 3*3 depthwise convolution to extract features, and the 3*3 convolution kernel is followed by a 1*1 pointwise convolution for controlling the dimension of the output feature map to form a depth-separable convolution module that can reduce the number of network parameters. Each convolution kernel is followed by a standard normalization operation and a Relu activation function to increase the nonlinear expression capability of the network, and finally the feature map obtained by the residual branch is residually connected to the feature map of the current layer.
[0027] Furthermore, the SE Block with the channel-domain attention mechanism in step S32 improves the accuracy by modeling the importance between feature channels and strengthening important features, that is, automatically acquiring the importance of each feature channel through learning, and then enhancing useful features according to this result and suppressing features that are not very useful for the current task.
[0028] Furthermore, the classifier in step S33 is composed of a bottleneck layer and an activation function Softmax, wherein the structure of the bottleneck layer is the same as that of the bottleneck layer in FAM, and is composed of two fully connected layers and a Relu activation layer, which is used for dimensionality reduction and parameter reduction of the fully connected layer. Finally, the Softmax layer outputs a C-dimensional vector representing the probabilities corresponding to C speakers respectively, and the maximum probability value is selected for threshold judgment. If it is greater than the threshold, the speaker ID corresponding to the maximum probability value is used as the final recognition result, and if it is less than the threshold, it is considered to be the customer's voice.
[0029] Furthermore, the voiceprint recognition network structure in step S33 is as follows: 3×3Conv(Layer0)->3×BlockB(Layer1)->4×BlockB(Layer2)->6×BlockB(Layer3)->3×BlockB(Layer4)->Classifier; wherein the number of channels of Layer0 is 16, the number of channels of each subsequent Layer is twice the number of channels of the previous Layer, and the stride of the 3×3 convolution kernel of the first BlockA of each Layer from Layer1 to Layer4 is set to 2 to reduce the size of the feature map, and the strides of the remaining convolution kernels are all 1, and the padding of all 3*3 convolution kernels is set to 1.
[0030] The present invention also provides a voiceprint recognition device based on a deep residual network and an attention mechanism, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to implement any of the voiceprint recognition methods based on a deep residual network and an attention mechanism as described above when executing the computer program.
[0031] The beneficial effects of the present invention are as follows: the frame-level attention module provided by the present invention is applicable to most voiceprint recognition methods. By weighted operations on MFCC features, the voice frames that are greatly affected by noise are weakened, which can effectively improve the accuracy of the voiceprint recognition method. The voiceprint recognition network provided by the present invention is applicable to most voiceprint recognition methods based on deep neural networks. By introducing deep separable convolution and channel domain attention mechanisms, it effectively overcomes the shortcomings of traditional neural networks such as large number of parameters and low efficiency, and can further shorten the network inference delay while effectively improving the algorithm accuracy index.
[0032] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0034] Figure 1 This is a flow chart of a voiceprint recognition method based on a deep residual network and an attention mechanism according to the present invention;
[0035] Figure 2 Detailed structural diagram of the frame-level attention module proposed in the present invention;
[0036] Figure 3 This is a structural diagram of the improved BlockA in the present invention;
[0037] Figure 4 This is a structural diagram of the SE Block described in the present invention. DETAILED DESCRIPTION
[0038] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0039] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0040] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0041] The present invention provides a voiceprint recognition method based on a deep residual network and an attention mechanism, which can significantly improve the robustness of the recognition model and improve the recognition accuracy of the speaker recognition. Figure 1 As shown, the method comprises the following steps:
[0042] S1: Preprocess the collected audio data to obtain MFCC feature X;
[0043] S11: In one embodiment, every 100 seconds of audio is taken for recognition, and the original audio data is divided into frames according to a preset fixed length of 35 milliseconds, with the frames overlapping by 10 milliseconds;
[0044] S12: Perform fast Fourier transform on the framed data to convert the waveform features of each frame into a frequency spectrum;
[0045] S13: Convert the spectrum into Mel Frequency Cepstral Coefficient (MFCC) features to obtain a 160-dimensional feature vector for each frame of speech. From S11, it can be seen that the original speech data is divided into 4000 frames, so that a 160*4000 two-dimensional matrix X is obtained;
[0046] S2: Construct a frame-level attention module to filter important frames. Considering that some speech frames will be affected by noise when collecting speech signals, and a certain degree of noise will make the frame speech signal ineffective for the recognition task, the frame-level attention module proposed in the present invention is introduced to weaken the weight of speech frames that are too affected by noise to reduce their impact on the recognition task. The recognition model first uses the frame-level attention module FAM to perform a weighted operation on the importance of each frame on the features obtained in step S1 to obtain the weighted MFCC features.
[0047] like Figure 2 As shown in the figure, the frame-level attention module FAM consists of an average pooling layer and a bottleneck layer. The average pooling layer is used to obtain the global information embedding of each frame of MFCC features, that is, to find the F n, the average value of the feature vector of n∈{1,N} is used to obtain the N-dimensional vector A, and the formula is as follows:
[0048]
[0049] The bottleneck layer is used to generate weights for different frames, and the formula is as follows:
[0050] Y = Softmax(W2δ(W1A))
[0051] This process is implemented by two fully connected layers, where the first fully connected layer W1 compresses vector A into an N / r-dimensional vector to reduce the number of parameters, and then uses the Relu activation function δ to increase the nonlinear expression ability of the network; the second fully connected layer W2 restores vector A to N dimensions, and then passes through the Softmax activation function to obtain an N-dimensional weight vector Y. Each element of the weight vector Y is multiplied by each row of the original matrix X to obtain a new weighted feature map The formula is as follows:
[0052]
[0053] Where X n is the nth row vector of the original matrix X, Y n is the nth element of the weight vector Y.
[0054] S3: Build a voiceprint recognition network and perform voiceprint recognition. Considering that in ordinary convolution, each convolution kernel has the same number of channels as the feature map. As the number of network layers increases, the number of channels in the feature map will continue to double, so the number of parameters of the convolution kernel will increase exponentially. Therefore, the design idea of MobileNet is introduced here to replace ordinary convolution with depthwise separable convolution to reduce the number of network parameters. In addition, a channel domain attention module SE Block is added after each layer of ResNet50 to model the importance of each feature channel, enhance or suppress different channels for different speakers, and finally input the features into the classifier in the network for classification to achieve voiceprint recognition. The following steps are included:
[0055] S31: Use the improved BlockA of the present invention to replace the residual block of ResNet50; Figure 3As shown, the BlockA adopts a residual connection structure, in which the residual branch uses a 3*3 depthwise convolution to extract features, and the 3*3 convolution kernel is followed by a 1*1 pointwise convolution for controlling the dimension of the output feature map to form a deep separable convolution module that can reduce the number of network parameters. Each convolution kernel is followed by a standard normalization operation and a Relu activation function to increase the nonlinear expression ability of the network. Finally, the feature map obtained by the residual branch is residually connected with the feature map of the current layer.
[0056] S32: embed the SE Block with channel domain attention mechanism into the tail of each BlockA to form the basic component module BlockB of the voiceprint recognition network; Figure 4 As shown in the figure, the SE Block with channel-domain attention mechanism can improve the accuracy by modeling the importance between feature channels and strengthening important features. That is, the importance of each feature channel is automatically obtained through learning, and then the useful features are enhanced according to this result and the features that are not very useful for the current task are suppressed.
[0057] S33: Add a layer of Relu activation function and a layer of fully connected layer to the back of the original fully connected layer of ResNet50 to form a new classifier (Classifier) to complete the construction of the voiceprint recognition network. The classifier consists of a bottleneck layer and an activation function Softmax, where the structure of the bottleneck layer is the same as that of the bottleneck layer in FAM, consisting of two fully connected layers and a Relu activation layer, which is used to reduce the dimension and reduce the number of parameters of the fully connected layer. Finally, the Softmax layer outputs a 300-dimensional vector representing the probabilities corresponding to the 300 speakers. The maximum probability value is selected for threshold judgment. If it is greater than the threshold, the speaker ID corresponding to the maximum probability value is used as the final recognition result. If it is less than the threshold, it is considered to be the customer's voice.
[0058] The voiceprint recognition network is structured as follows: 3×3Conv(Layer0)->3×BlockB(Layer1)->4×BlockB(Layer2)->6×BlockB(Layer3)->3×BlockB(Layer4)->Classifier. The number of channels in Layer0 is 16, and the number of channels in each subsequent Layer is twice the number of channels in the previous Layer. The stride of the 3×3 convolution kernel of the first BlockA in each Layer from Layer1 to Layer4 is set to 2 to reduce the size of the feature map, and the stride of the remaining convolution kernels is 1. In addition, the padding of all 3*3 convolution kernels is set to 1. As shown in Table 1, this is the detailed information of the voiceprint recognition network structure used in this embodiment.
[0059] Table 1
[0060]
[0061]
[0062] The present invention can also provide a voiceprint recognition model training method, including: preparing at least 200 pieces of pure voice data for each speaker, each piece of voice data is a wav file, and the length is between 2 and 8 seconds. The obtained data set is divided into a test set and a training set in a ratio of 2:8, wherein the training set is stored in a train folder, and the test set is stored in a test folder. In order to simulate the data distribution in a real scene, the training set is subjected to noise processing to obtain the corresponding noisy speech. Kaldi's data enhancement method is used to add background music, background speaker voice, and environmental noise to the pure speech respectively, and the obtained background music voice data is stored in the music folder, the background speaker voice data is stored in the babble folder, the environmental noise voice is stored in the noise folder, and the initial pure voice is stored in the voice folder. Label each voice data. Here we take the data labeling in the voice folder as an example. Each row in the label file voice_label.csv corresponds to the label of a voice data. The first column represents the category, and the second column represents the relative path of the corresponding voice data. The label file is stored in the voice folder. The data in the music, babble, and noise folders are labeled in the same way.
[0063] Training the voiceprint recognition network: Using the Pytorch framework, load the files in the train folder and the test folder into the DataLoader. The initial parameter values are initialized using Xavier based on variance scaling. The batch size is set to 256, the initial learning rate is set to 0.001, and the learning rate is reduced to 90% of the previous one every 10 rounds starting from the 100th round. The Adam optimizer is used to update the weight value of the voiceprint recognition network using the gradient descent method. The number of training iterations is 200. The round with the lowest Loss value after the 150th round is selected as the final model to obtain the trained voiceprint recognition network.
[0064] The present invention may also provide a computer device, comprising: at least one processor, a memory, at least one network interface and a user interface. The various components in the device are coupled together through a bus system. It is understood that the bus system is used to achieve connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.
[0065] The user interface may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0066] It is understood that the memory in the embodiments disclosed in the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM). The volatile memory may be a random access memory (RAM), which is used as an external cache.
[0067] In some embodiments, the memory stores the following elements, executable modules or data structures, or their subsets, or their extensions: operating system and application programs. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present disclosure may be included in the application program.
[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A voiceprint recognition method based on deep residual network and attention mechanism, characterized by: The following steps are involved: S1: Preprocess the collected audio data to obtain the Mel frequency cepstral coefficient MFCC feature X that can simulate the characteristics of the human ear; S2: Construct a frame-level attention module FAM, and perform a weighted operation on the importance of each frame through the MFCC feature X obtained in step S1 to obtain the weighted MFCC feature The step S2 comprises the following steps: The frame-level attention module FAM consists of an average pooling layer and a bottleneck layer; the average pooling layer is used to obtain the global information embedding of each frame of MFCC features, that is, to find the F n , the average value of the eigenvectors of n∈{1,N} is used to obtain the N-dimensional vector A, and the formula is as follows: D represents the D-dimensional feature vector; The bottleneck layer is used to generate weights for different frames, and the formula is as follows: Y = Softmax(W2δ(W1A)) This process is implemented by two fully connected layers, in which the first fully connected layer W1 compresses the vector A into an N / r-dimensional vector to reduce the number of parameters, and then uses the Relu activation function δ to increase the nonlinear expression ability of the network; the second fully connected layer W2 restores the vector A to N dimensions, and then passes the Softmax activation function to obtain the N-dimensional weight vector Y; each element of the weight vector Y is multiplied by each row of the original matrix X to obtain a new weighted feature map X, the formula is as follows: Where X n is the nth row vector of the original matrix X, Y n is the nth element of the weight vector Y; S3: Construct a voiceprint recognition network and perform voiceprint recognition; introduce the design concept of MobileNet, replace ordinary convolution with depthwise separable convolution to reduce the number of network parameters; add a channel domain attention module SE Block after each layer of ResNet50 to model the importance of each feature channel, enhance or suppress different channels for different speakers, and finally input the features into the classifier in the network for classification to achieve voiceprint recognition; the step S3 includes the following steps: S31: Use BlockA to replace the residual block of ResNet50; BlockA adopts a residual connection structure, wherein the residual branch uses a 3*3 deep convolution to extract features, and the 3*3 convolution kernel is followed by a 1*1 point-wise convolution for controlling the dimension of the output feature map to form a deep separable convolution module that can reduce the number of network parameters. Each convolution kernel is followed by a standard normalization operation and a Relu activation function to increase the nonlinear expression ability of the network, and finally the feature map obtained by the residual branch is residually connected with the feature map of the current layer; S32: embedding the SE Block with the channel domain attention mechanism into the tail of each BlockA to form the basic component module BlockB of the voiceprint recognition network; the SE Block with the channel domain attention mechanism improves the accuracy by modeling the importance between feature channels and strengthening the important features, that is, automatically obtaining the importance of each feature channel through learning, and then improving the useful features and suppressing the features that are not very useful for the current task according to this result; S33: Add a layer of Relu activation function and a layer of fully connected layer after the original fully connected layer of ResNet50 to form a new classifier, completing the construction of the voiceprint recognition network; The classifier is composed of a bottleneck layer and an activation function Softmax, wherein the structure of the bottleneck layer is the same as that of the bottleneck layer in FAM, and is composed of two fully connected layers and a Relu activation layer, which is used to reduce the dimension and reduce the number of parameters of the fully connected layer. Finally, the Softmax layer outputs a C-dimensional vector representing the probabilities corresponding to C speakers, and the maximum probability value is selected for threshold determination. If it is greater than the threshold, the speaker ID corresponding to the maximum probability value is used as the final recognition result, and if it is less than the threshold, it is considered to be the customer's voice; The voiceprint recognition network is composed as follows: 3×3Conv(Layer0)->3×BlockB(Layer1)-> 4×BlockB(Layer2)->6×BlockB(Layer3)->3×BlockB(Layer4)->Classifier; the number of channels of Layer0 is 16, and the number of channels of each subsequent layer is twice the number of channels of the previous layer. In addition, the stride of the 3×3 convolution kernel of the first BlockA of each layer from Layer1 to Layer4 is set to 2 to reduce the size of the feature map, and the strides of the remaining convolution kernels are all 1. In addition, the padding of all 3*3 convolution kernels is set to 1.
2. The voiceprint recognition method based on deep residual network and attention mechanism according to claim 1 is characterized in that: The step S1 comprises the following steps: S11: Divide the original audio data into frames according to a preset fixed length; S12: Perform fast Fourier transform on the framed data to convert the waveform features of each frame into a frequency spectrum; S13: Convert the spectrum data into MFCC features, that is, obtain a D-dimensional feature vector for each frame of speech. The original speech data is divided into N frames, and an N*D two-dimensional matrix X is obtained.
3. A voiceprint recognition device based on a deep residual network and an attention mechanism, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the voiceprint recognition method based on deep residual network and attention mechanism as described in claim 1 or 2 when executing the computer program.
