{'fraction_non_alphanumeric': 0.02565546366355798, 'fraction_numerical': 0.010698574696463136, 'mean_word_length': 4.838504212040271, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Mathematical Model to Estimate and Predict the COVID-19 Infections in Morocco: Optimal Control Strategy

In this paper, we aim to estimate and predict the situation of the new coronavirus pandemic (COVID-19) in countries under quarantine measures. First, we present a new discrete-time mathematical model describing the evolution of the COVID-19 in a population under quarantine. We are motivated by the growing numbers of infections and deaths in countries under quarantine to investigate potential causes. We consider two new classes of people, those who respect the quarantine and stay at home, and those who do not respect the quarantine and leave their homes for one or another reason. Second, we use real published data to estimate the parameters of the model, and then, we estimate these populations in Morocco. We investigate the impact of people who underestimate the quarantine by considering an optimal control strategy to reduce this category and then reducing the number of the population at risk in Morocco. We provide several simulations to support our findings.


Introduction
Coronaviruses (CoV) are a large family of zoonotic viruses, that is, they are transmitted from animals to humans, and that cause symptoms ranging from the common cold to more serious illnesses such as Middle East Respiratory Syndrome (MERS) which is transmitted from dromedary to humans and severe acute respiratory syndrome (SARS) which is transmitted from civet to humans. Several known coronaviruses that have not yet infected humans are circulating in some animals [1].
The new coronavirus SARS-CoV-2 is a new strain of coronaviruses that have not yet been identified in humans, where respiratory symptoms, fever, cough, shortness of breath, and dyspnea, are common signs of the infection with the new coronavirus pandemic, COVID-19. In more severe cases, this disease can cause pneumonia, severe acute respiratory syndrome, kidney failure, and even death [1].
The WHO standard recommendations to the general public for reducing exposure to, and transmission of, a range of diseases are the following and include hand hygiene, respiratory hygiene, and good food safety practices [1]: (i) Wash your hands frequently with a hydroalcoholic solution or with soap and water (ii) Cover your mouth and nose with the crease of your elbow or with a handkerchief if you cough or sneeze; throw the handkerchief immediately after and wash your hands (iii) Avoid close contact with people who have a fever and cough (iv) In case of fever, cough, and difficulty in breathing, consult a doctor without delay and tell him the trips made (v) In markets located in areas where there are currently cases of the new coronavirus, avoid unprotected direct contact with live animals and with surfaces in contact with animals (vi) Consumption of raw or undercooked animal products should be avoided. In accordance with good food safety practice, raw meat, milk, or organ meats should be handled with care to avoid crosscontamination with raw food At the moment, there is no vaccine for the new coronavirus SARS-CoV-2, because in general, when a new disease appears, a vaccine only becomes available after a vaccine development process, which can take several years. Furthermore, there is no specific treatment for the disease resulting from the new coronavirus. However, many symptoms can be treated, and treatment therefore depends on the clinical condition of the patients. In addition, providing supportive care to infected people can be very effective [2].
Countries all over the world are intensifying their efforts to combat the COVID-19, which first appeared in the Chinese city of Wuhan, and that has killed at least 100,000 people. More than 1.5 million cases have been reported worldwide, most of them in the United States, Italy, Spain, and China. A man from Wuhan died in the Philippines on February 2, and Hong Kong reported the first death on February 4. The infection is now more widespread than the 2002-2003 severe acute respiratory syndrome (SARS) epidemic, also of Chinese origin, in terms of people affected and deaths.
Outbreaks of novel virus infections among people are always of public health concern, especially when there is little knowledge about the characteristics of the virus, how it spreads between people, how severe are the resulting infections, and how to treat them.
The mathematical modeling is one of the most solutions that can respond to all these questions. In the absence of vaccines or antivirals for the COVID-19, the effective implementation of nondrug interventions, such as personal protection and social exclusion, will be crucial in controlling the epidemic [3][4][5].
From the point of view of additional resources to fight the epidemic, mathematics and statistical modeling can be useful in creating forecasts for the cases announced. These expectations may include estimates of the burden of illness which can help guide public health officials in preparing for medical care and other resources needed to combat the epidemic. Predictions can also guide the severity and the type of interventions needed to mitigate the epidemic.
In this contribution, we develop a mathematical model that describes the evolution of the COVID-19 in countries under quarantine. Here, we use actual data from March 19 to April 05, 2020, of daily updates laboratory-confirmed cases, recovered, and deaths in Morocco from the Johns Hopkins University Center for Systems Science and Engineering (JHU CCSE) [6], in order to estimate the parameters of the model and then predict the severity of the possible infection in the coming months. Using this method, we can estimate the total population at risk in Morocco and justify the growing number of new confirmed cases despite the nationwide quarantine. Finally, we investigate an optimal control strategy that aims to reduce the population at risk in Morocco, whereas the control strategy we are proposing here adopts nondrug intervention which makes it very optimal and more practical to use in developing countries.
The paper is organized as follows: Section 2 introduces our new model, giving some details about interactions between the different compartments and parameters of the model. In Section 3, we provide the results of the parameters' estimation validating our model and predicting the total population at risk in Morocco. In Section 4, we present the optimal control problem to justify the existence and the characterization of the optimal control. Numerical simulations are carried out in Section 5. In Section 6, we provide a global sensitivity analysis, and Section 7 concludes.

Methods
2.1. Background. In late December 2019, several local health facilities reported groups of patients with pneumonia for unknown reasons linked to the seafood and wholesale wet animal market in Wuhan, Hubei Province, China. On December 31, 2019, the Chinese Center for Disease Control and Prevention (CDC) dispatched a rapid response team to support health authorities in Hubei Province and Wuhan City and conduct an epidemiological investigation to locate the source of pneumonia groups. This led to a description of a new coronavirus found in samples of pneumonia patients at the beginning of the epidemic [7]. Less than a month after identifying patients, on January 1, 2020, the government closed this seafood market [8]. A consortium led by a Chinese scientist and international researchers quickly gathered to intensify national and international efforts and coordination. On January 10, 2020, it released a partial sequence obtained from a patient from Wuhan who presented at least 70% similarity in genetic material to severe acute respiratory syndrome (SARS) [8].
Based on previous experiences with respiratory infections, the Chinese hospitals recognized the utmost importance of infection control preparedness in their healthcare system. Standby level includes alert, dangerous level 1, dangerous level 2, and emergencies; the activation level is determined according to the risk assessment. Infection control measures and administrative support are strengthened with an indication of different levels of preparedness [9]. Through this infrastructure, China has overcome the challenge of influenza A pandemic in 2009 [10,11] and the emergence of bird flu A H7N9 in 2013 [12].
To prepare for this emerging infectious disease, fever screening was done at the airports and at the high-speed train stations, with special emphasis on flights and trains from Wuhan, while passengers with a fever above 38°C are referred to public hospitals for assessment. In addition, several control measures are implemented in the public hospital system [9].
Many countries have taken advantage of the experience of China in fighting this epidemic. This saved them time to try to contain the spread of the COVID-19 infection and learn them that this spare time must be used efficiently and effectively. Morocco is one of these countries, whereas Morocco was proactive in declaring a health emergency on March 20, at 6:00 pm until further notice, in response to the growing threat of a new coronary virus (COVID-19), after the Ministry of Health confirmed case 63 of COVID-19, two patients recovered and two died. The state of emergency means that citizens cannot go out to public places without special permission from the local authorities. The state of emergency allows the government to take tougher measures to respond to the epidemic and to release budgets to improve 2 Journal of Applied Mathematics medical care to impose closures on whole cities. When all international flights to and from Moroccan territory are suspended until further notice, all public gatherings of more than 50 people are prohibited, including economic and political meetings, cultural and religious ceremonies, sporting events, and other gathering places closed. Courses have been canceled in all institutions-from daycare centers to universities, from public to private-until further notice [13,14].

The
Model. Despite all of the efforts made by the authorities, the number of confirmed COVID-19 cases is still rising, which means that something is wrong. One possible reason is the lack of respect for the national quarantine and the underestimation of the contagiousness of the SARS-CoV-2.
In the literature, over the past three months, several works of mathematical modeling have been published taking into account the exposed and asymptomatic classes [15][16][17][18][19]. This motivated us to consider more general classes in order to study the efficiency of the national closure and to evaluate our strategy of control that will be applied to all people regardless if they are exposed or not.
The first class is the aware individuals who know about the virus and the nationwide lockdown, called the partially controlled individuals (P), because this population could not respect the national quarantine for one reason or another and could be considered as law violators.
The second category is people who respect the national quarantine by staying at home from the start of the closure. This population is called a totally controlled population (C). Susceptible, infected, recovered, and dead individuals are the rest of the classes studied here.
Let us define a discrete-time model with the six following main compartments: (i) S: the number of susceptible people to infection or who are not yet infected, and people that did not benefit from the awareness program (ii) P: the number of susceptible people who are partially controlled. People who create arguments to leave their homes during the quarantine and can, therefore, be considered as people not respecting the quarantine (iii) C: the number of susceptible people who are totally controlled. Those who do not leave their home during quarantine and can, therefore, be considered as people respect quarantine (iv) I: the number of infected people who are capable of spreading the epidemic to those in the susceptible and partially controlled categories (v) R: the number of recovered people from the epidemic, but can return to the susceptible class because of the short-term removal of individuals' immunity (vi) D: the death toll from COVID-19 In discrete-time models, we can choose the unit of time we need, a day, a week, or a month, and we collect all the events from time step i to time step i + 1 as events at the same time. In our model, we choose the unit of time as a day, since COVID-19 data is collected daily in almost all countries of the world. All these considerations lead to the following system of difference equations: size of the population at the instant i. Without loss of generality, we neglect the recruitment rate and the natural death rate due to the restricted time window of the study. θ = θ 1 + θ 2 defines the awareness control parameter, where θ 1 is the recruitment rate of susceptibles to the partially controlled class and θ 2 is the recruitment rate of susceptibles to the totally controlled class. a is the inhibition effect due to resource limitation to awareness controls, β is the infection transmission rate, with " c " modeling the reduced chances of a partially controlled individual to be infected where 0 ≤ c ≤ 1, T is the treatment rate, α is the infection death rate, γ is the recovery rate, and ρ is the losing removal individuals' immunity rate. We note that the population size N i is not constant in time i, in fact Hence, the population decreases until the end of the epidemic. A summary of the description and values of the parameters is given in Table 1. To the authors' knowledge, the model we propose in this paper is the first discrete-time mathematical model which considers people who respect and people who do not respect the state of health emergency as new compartments.

Estimation of the Parameters
Johns Hopkins University Center for Systems Science and Engineering (JHU CCSE) provides available data for academic research purposes from multiple sources [6]. Data information includes cumulative confirmed cases, the cumulative number of cases recovered, and the cumulative number 3 Journal of Applied Mathematics of deaths. To get an insight into the evolution of the COVID-19 in Morocco, we have acquired updated data on the cumulative number of laboratory-confirmed cases for COVID-19 from the CSSE data of [6] to estimate the parameters of the model (1), (2), (3), (4), (5) and (6). For more details about the available data, see [6].
The following process has been followed for parameters estimation: using MATLAB, the system of difference equations is solved numerically, with initial chosen values for parameters and state variables from Table 1. Model outcomes are compared with the field data, and the Levenberg-Marquardt optimization algorithm determines a new set of parameters' values with the model outcomes in a better fit to the field data [21,22]. After new parameters' values are determined by this optimizer, the system of difference equations is solved numerically using these new parameters' value, and the model outcomes are compared again with the field data. This iteration process between parameter updating and numerical solutions of the system of difference equations continue till convergence criteria for the parameters are met. In this process of estimating, parameters about one thousand values are chosen using a random process for each of the parameters to be estimated.
From Figure 1, we can see that the models (1), (2), (3), (4), (5) and (6) correctly correspond to the actual data especially the infections curve, where we can see the increase of active cases in Morocco, despite the nationwide quarantine. We can also see that the number of individuals who have recovered and died continues to rise slightly compared to the number of infections that amounted to about 1,000 on April 05. Based on the estimated parameters, we simulate the models (1), (2), (3), (4), (5) and (6) from March 19 to May 07 to predict the course of the events and to see if the status of the COVID-19 infections in Morocco will reach the peak or not. It can be seen from Figure 2 that by May 07, the number of active cases in Morocco will exceed 3000 individuals, more than 600 recovered individuals, and about 800 deaths. This simulation shows the efficiency of the strategy of control used by the Moroccan authorities, by slowing the spread of the epidemic compared to other affected countries such as Italy, Spain, and the United States that are in the top of the list of affected countries. To justify the increase of the number of infections in Morocco despite the use of the national quarantine, we estimate the number of people who do not respect and those respecting the quarantine in Figure 3, where we can see that the number of totally controlled individuals starts increasing slowly from the beginning of the closure on March 20 to reach about 30 million at the beginning of May. But the number of partially controlled individuals rises continuously to reach about 15 million individuals before starting decreasing towards 5 million by the first week of May. That means that the population at risk in Morocco in the first month of the national closure is more than ten million. This result explains the growing number of infections and deaths in the country despite the nationwide quarantine.
We determine numerically the residuals of the parameters' estimation, and then, we examine the accuracy of the normality of the estimation of the parameters. In order to carry out this examination, we generate the residuals of the three functions of infected, removed, and dead populations, depicted in Figure 4, where it can be seen that there are small residuals compared to the values of each population. While  to the actual data. The purpose of this section is to predict what will happen in the coming months and to verify the validity of the proposed model by matching the outputs of the model with the actual data, in order to estimate the high-risk population in Morocco during the period used to estimate the parameters, which will be used to evaluate the control strategy that we will propose later.

An Optimal Control Approach
In this part of the paper, we propose an optimal strategy of control that helps the authorities in developing countries to bring the situation under control with minimal costs. Authorities provide all necessary assistance to residents to stay at home during the quarantine period, by spending financial values on poor families and by dispensing certain useless occupations during this period. Consequently, people who break quarantine can be considered as violating the laws, as they will take the maximum penalties, which reach the prison.
To test this strategy of control and simulate its effect in Morocco, we introduce in the model a control variable that represents the previous severe reactions of the authorities against people who do not respect the national quarantine, denoted by u i . Thus, the controlled model is given by    Journal of Applied Mathematics with initial conditions S 0 ≥ 0, P 0 ≥ 0, C 0 ≥ 0, I 0 ≥ 0, R 0 ≥ 0 , and D 0 ≥ 0. Motivated by the desire to reduce the number of infected and the partially controlled people as much as possible while minimizing the cost of applying the control u, our objective is to seek an optimal control u * such that: where J is the function defined by: and where the control space U is defined by the set: K 1 , K 2 , and K 3 represent constant severity weights associated with functions I, P, and u, respectively.

Numerical Simulation and Discussion
Here, we present numerical simulations associated with the abovementioned optimal control problem. We write a code in MATLAB™ and simulated our results using data from Table 1. The optimality systems are solved based on an iterative discrete scheme that converges following an appropriate test similar to the one related to the Forward-Backward Sweep Method (FBSM). The state system with an initial guess 7 Journal of Applied Mathematics is solved forward in time, and then, the adjoint system is solved backward in time because of the transversality conditions. Afterwards, we update the optimal control values using the values of state and co-state variables obtained at the previous steps. Finally, we execute the previous steps until a tolerance criterion is reached.
Our model correctly corresponds to the actual Moroccan data (see Figure 1) and predicts that the number of COVID-19 cases will continue to increase if the Moroccan authorities do not take other measures, see Figure 2.
While in Figure 6, we can see that the number of infections reaches the peak by about 130 infected individuals on March 26 and then starts to decrease. The number of deaths does not exceed 60 individuals (see the subfigure (b)) by the first week of May. By following this strategy of control, the number of partially controlled individuals does not exceed 4 million individuals to start decreasing after about 5 days from the beginning of the closure on March 20. This number is almost null by the first week of April (see the subfigure (a)), compared to the case when the control u i takes a fixed value from the beginning of the quarantine, whereas the number of people under partial control reaches about 15 million and maintains values of not less than 5 million until the end of the simulation by May 07.  It can be seen also from this subfigure that by using the control strategy we are proposing here, the number of totally controlled individuals rises towards 34 million by the end of March, which means that the population at risk is reduced as much as possible before the month of April.
While it can be seen, from the subfigure (c) of Figure 6, that the u i control function takes a constant value of about 0.28 until the last week of April to continue with null values. It can also be observed that optimal control is required approximately three weeks after the disappearance of the partially controlled population, to ensure a continuous decline of active cases.
The lack of effective treatment and vaccines against COVID-19 and the limited medical resources are all factors that make it more difficult to control the transmission of this pandemic. Therefore, there is a need to consider other means of intervention such as nonmedical interventions, especially in developing countries. Travel restrictions have been implemented in all regions of Morocco, effectively reducing the movement of millions; quarantine and state health emergencies force people to stay indoors during the COVID-19 epidemic to reduce possible contact, which already contributes to the prevention and control of the disease in the country, compared to other affected countries. With all these efforts and control strategies, the new cases of infection still registered in Morocco, which gives us the opportunity to contribute to the containment of this dangerous pandemic by proposing the optimal strategy of control which appears, from numerical simulation, to be more efficient by bringing forward the peak and reducing the size of the infection peak in the country.
Although this is the first work using a mathematical model to estimate the population that respects or does not respect the national closure, several limits must be observed. Since we can estimate the population at high risk in countries subject to emergency and quarantine situations in general, and in Morocco in particular, there are potential limitations regarding the long-term risk of COVID-19. As the risk of developing COVID-19 mainly depends on age, gender, and other diseases (obesity, diabetes, heart disease, lung disease, and kidney disease) [28], therefore, other results may be when assessing the development of COVID-19 in these individuals or when considering other models that include these factors. However, we assessed the prevalence of COVID-19 in this country independently of these factors because among the objectives of this contribution is the estimation of a population at high risk regardless of their state of health. In addition, data collection errors reduce the performance of the model or the possibility of overestimating future expectations. Another limitation is that the authorities often change their control strategy by adding additional controls such as the mask requirement, more movement restrictions, and massive tests-all of which can lead to large errors in predictions of the model. However, our optimal control strategy is even more effective even if there are different initial values for the population. Where it is possible through numerical simulation that the control strategy, we propose can effectively reduce the number of infections and deaths.

Global Sensitivity Analysis
In order to search for the parameters that are key factors to the spread of COVID-19, we perform in this section a global sensitivity analysis. We assess the impact of variations in the model's parameters on the outputs Jðu * Þ using the Partial Rank Correlation Coefficient (PRCC) [29]. These coefficients are similar to the common Pearson Correlation Coefficient, but also deal with nonlinearities, as long as the output is monotonic in the parameters.
The Latin Hypercube Sampling (LHS) was simulated with 400 trials, and parameters from model (1) were considered following normal distributions, with baseline values given by Table 1. Ranges were chosen corresponding to 15% of maximum variation from their baselines. The normal distributions are within these ranges. We considered a significance level of 0.01, meaning that PRCCs with p values greater than 0.01 are not significant. PRCC results and p values considering the cost J ðu * Þ as output are shown in Table 2.
We found that the infection rate β and the reduced chances of a partially controlled individual to be infected c are positively correlated with J ðu * Þ, while the recruitment rate of susceptibles to the totally controlled class parameter θ 1 negatively correlated to J ðu * Þ.

Conclusion
In this paper, a new mathematical model describing the evolution of the COVID-19 in countries subject to the state of a health emergency is considered. Based on the classical compartmental models, two new compartments are added to the classical SIRS model, representing the people who have benefited from the awareness programs and they could not respect the national quarantine for their personal reasons, we called them the partially controlled people. The second are people who know about the pandemic and respect the lockdown by staying at home, which we called the totally controlled people. The impact of these populations on the severity of the COVID-19 infection is investigated. Using real COVID-19 propagation data in Morocco collected and published by the Johns Hopkins University, we estimated the parameters of the model, and then, we estimated the totally and partially controlled populations. We found that the number of totally controlled and partially controlled people rose slowly from the beginning of the national lockdown. We found that the population at risk in Morocco is more than 10 million individuals in the first month of the closure, and then the need for an efficient control strategy to save more lives. A new strategy of optimal control is investigated, which aimed to reduce the number of partially controlled individuals and then reaching the peak of the infection at a very small number. Numerical simulations are provided throughout the paper to illustrate the efficiency of our study and the strategy of control we propose.

Proofs of Theorems
Proof of Theorem 3. Since the parameters of the system are bounded and there are a finite number of time steps, that is S, P, C, I, R, and D are uniformly bounded for all u in the control set U, thus J ðuÞ is also bounded for all u∈U, which implies that inf u∈U J ðuÞ is finite, and there exists a sequence u n ∈U such that and corresponding sequences of states, S n , P n , C n , I n , R n , and D n . Since there is a finite number of uniformly bounded sequences, there exists u * ∈U and S * , P * , C * , I * , R * , and D * such that, on a sequence, u n ⟶ u * , I n ⟶ I * , S n ⟶ S * , R n ⟶ R * , F n ⟶ F * :

Data Availability
The data of [6] is used to support this study.

Conflicts of Interest
The authors declare that they have no conflicts of interest.