Background

Meeting sustainable future food demands will require both increasing food production and reducing food loss and waste [1,2,3,4,5]. Therefore, the global sustainable development goals (SDGs) prioritize global food security, with the aim of halving global food losses along supply chains and reducing food waste at the retail and consumer levels by 2030. Addressing leakages in food systems, including postharvest losses, is recognized as one of the pathways to achieving food security [2,3,4, 6,7,8,9]. Food losses occur at different stages of the food supply chain, ranging from harvesting, through primary processing, storage, and marketing, to final delivery to consumers [3, 9, 10]. Reducing food losses translates to an increase in the quantity of available food, thereby reducing food insecurity [3, 11]. This, in turn, reduces the need to supplement food access through policies that focus on transfer programs at the household level or commercial imports and food aid at the national level [12].

To achieve food security through policy efforts, it is crucial to have a comprehensive understanding of food issues across three dimensions: first, it is essential to identify the amount of food that is lost and wasted, as well as the reasons and locations for such loss and waste. Second, it is imperative to clarify the underlying objectives for reducing food loss and waste, which may be related to food security or environmental concerns; and third, it is crucial to understand how food loss and waste, as well as the measures to reduce them, impact the objectives being pursued [13, 14]. This study focuses the first dimension by investigating farmer-level losses in pulse production, particularly dry beans, which are essential to the food security of millions of households in developing countries.

Smallholder production and food losses in Africa

Agricultural production in developing countries is characterised by low productivity due to several factors such as low investments and adoption of improved technologies, and emerging challenges like climate change. These factors undermine total production and the ability of Africa to secure the food needs of its population [15]. For instance, bean yield in Uganda has been consistently low, ranging from 800 to 1200 kg per hectare, far below the potential farmer yield of 2000 kg per hectare. The low production is worsened by poor harvest and postharvest practices that further depresses total production [16]. Inappropriate practices such as poor storage contribute to postharvest food losses. The persistent food handling losses partly explains the food scarcity induced food insecurity that is common in developing countries [17]. Consequently, despite over 60% of the population being involved in agricultural production for livelihood, millions of food-insecure households around the world are in such developing countries [18]. Resolving food insecurity requires a more in-depth understanding of the nuances in food loss and the food system.

The annual cost of food loss and waste is significant, estimated at United States Dollars (USD) 680 billion in industrialised countries and USD 310 billion in developing countries [14]. In sub Saharan Africa (SSA), the World Bank [15] estimates that postharvest handling alone accounts for about USD 4 billion worth of food losses. This is approximately one-third of total food losses in the region [19]. Interventions in postharvest handling can reduce postharvest losses, enhance food and nutrition security, and improve food safety [20]. For instance, reducing postharvest handling losses (PHL) in the form of food quality can improve food utilization among consumers [12].

Delayed adoption of postharvest handling technologies serves to perpetuate significant grain losses and compromises efforts on food security in Africa. The African Union (AU) has been part of the global food policy agenda, and in response to the Global Agenda 2030 and the AU Agenda 2063, the African Union strategies [21] for food security through the reduction of PHL were put in place, with initiatives being undertaken by various countries with support from several donors. As the Malabo commitment nears its end in 2025, information on commodity specific PHL reduction is essential for policy and investment efforts going forward. During the Nairobi AU coreference [22], a call was made to support AU member states in putting in place systems and processes to achieve the postharvest loss reduction target set in the Malabo Declaration. AU offered support to initiatives on PHL reduction in some countries and Uganda has benefited through the National Agricultural Research Organization (NARO) under the legumes programme.

Postharvest handling of dry bean in Uganda

Uganda is a major producer of dry beans in Africa, with over 70% of households involved in its production. While the government and development partners have invested in breeding and seed distribution to improve productivity, there has been less emphasis on developing postharvest technologies suited for bean handling. As a result, few farmers have access to proper storage facilities and information on appropriate postharvest handling practices and technologies, leading to perpetually low production partly attributed to persistent postharvest losses. Development agents can make use of various postharvest handling technologies, including cultural, mechanical, and chemical methods, that can be adapted to local and gender-specific contexts. By intervening with various techniques, postharvest losses can be effectively reduced.

Farmers often mishandle dry beans from harvest to storage, using inappropriate methods such as storing on the earth surface, in gunny bags placed on the floor, or in containers that do not control for weather fluctuations. This practice leads to losses due to poor quality grain that may be rejected in formal markets, including lucrative export markets. The problem extends to research gaps on the extent of bean losses due to poor quality grain. Literature on the extent of postharvest losses in dry bean grain handling is limited compared to maize, despite beans being a vital food crop in East Africa, that contributes significantly to household food security and Uganda's export earnings. A literature search yields a plethora of postharvest information on maize and a dearth of postharvest information on beans.

Postharvest literature extensively covers cereals (especially maize), high value crops (such as snap beans) and roots and tubers (such as cassava and sweet potato), but is relatively scarce on dry bean. Affognon et al. [23] revealed that out of 213 published articles, only 12 focused on dry bean, with five in Kenya, five in Tanzania, and two in Malawi. Compared to cereal grain, which has up to 15–50% postharvest loss [6, 24], losses in dry bean are not clear. Storage loss alone is estimated to be 8% in Kenya [25], and about 18% in Tanzania [26]. This information gap is significant for Uganda's policy discussions, since beans are a vital crop for feeding households, school children, refugees, and vulnerable populations.

Theoretical framework

This study employs a systems approach to analyse a specific phenomenon in a large system and its properties emerging from interactions of its elements [27]. To understand a phenomenon systematically, researchers must establish its relationships while considering boundary conditions and context [28]. Using systems practice, researchers can synthesize how others perceive the relationships and elements that make a difference in their context, while recognizing that the researcher's perspective also has an influence [4, 29]. In investigating PHL, the value chain can be seen as a human activity system where the activities cannot be separated from their specific situations, and their analysis can identify relevant boundary conditions that reveal actors’ room for manoeuvre [29].

Conceptual assessment of postharvest losses

In general, food availability is hindered by losses that occur throughout the entire food production and consumption processes [3]. The study of postharvest losses involves analysing the losses that occur at every stage of production, which ultimately lead to a reduction in overall value and availability of food. Although there are various types of food losses and waste that occur after harvest, it can be challenging to determine what should be included in the PHL assessment [9, 29]. With a focus on staple commodities and storage losses, the term postharvest loss emerged to refer to “a measurable quantitative and qualitative loss in a given product… [and] restriction in the use of the product… [whereby] the sum of losses in quantity and quality of the products inevitably means losses of food and money” [30, 31]. Often, PHL and food losses are referenced to the early stages of the food chain, while food waste is referenced to later stages of the food chain [32]. However, the lack of consistent use of these terms in practice can make it difficult to assess postharvest losses [33, 34]. In this case, the losses in the food system are assessed based on space of a set of activities namely: production which occurs on the farm; value addition and marketing which are off farm; and finally, consumption points which occur at the households. The specific elements/activities within each sub-system contribute to variations in the losses in terms of available food, income and nutrition (Fig. 1). Therefore, we focus on postharvest losses within the farmer’s space, which is a significant part of the overall food production continuum.

Fig. 1
figure 1

Source: authors’ conceptualization

Food system points and elements of food loss.

Our key proposition was that postharvest losses of dry bean among farmers in Uganda existed and were partly aggravated by local farmer practices during storage. These practices affect the Moisture Content (MC) of dry beans during harvest, handling, and storage, leading to quality deterioration and economic losses. Postharvest loss (PHL) was defined as a proportion of total harvest lost due to spillage and physical damage. Grain quality is defined based on the MC parameter of bean samples, captured using digital moisture meters. We focused on three common storage methods used by many farmers, which include storage in a bag placed above ground, storage in a bag placed on the ground, and storage in containers. A good practice would be to keep dry beans at ≤ 13.0% MC by controlling fluctuations in atmospheric relative humidity or dampness during storage. We used a generalized linear model to quantify the effects of smallholder storage practices on grain MC, after controlling for farmer and grain characteristics. This study contributes to more information on the extent of PHL and the degree to which smallholder farmer practices contribute to harvest and postharvest losses in pulse grains, and the implications for household food security.

Materials and methods

Materials

Study area, sampling, and sample size

The study was carried out across five districts situated in four regions of Uganda namely Nakaseke in Central region, Sironko in eastern region, Arua and Oyam in the Northern region, and Hoima in the Western region. These are the bean producing districts that were targeted by the NARO legumes program. One district was selected from each region, but in the Northern region, two districts were randomly sampled due to the considerable dispersion of farmers. Based on guidance from the district agricultural offices (DAOs), two major sub-counties known for producing common beans were sampled in each district.

Following a survey design, a cross-sectional data collection approach was used to obtain information from randomly selected farmers in the study areas. To achieve this, a multi-stage sampling process was implemented in line with local government structures in Uganda. In stage one, one district was purposively selected from each region, while stage two, sub counties were purposively chosen with the guidance of DAOs recommendation on areas with higher concentration of bean producing farmers. At stage three, two parishes were randomly sampled from each sub county, and two villages were randomly selected per parish. Finally, systematic random sampling approach was applied to choose ten farmers from each village based on the probability selection procedure, \({N}_{village}/n\) where \({N}_{village}\) denotes the population of a selected village and where \(n=10\) to derive the \({n}^{th}\) interval selection from a village sampling list.

Data collection

Structured interviews were conducted with 445 farmers, and survey data was collected using computer assisted personal interviews (CAPI) and survey CTO application to obtain information on the preharvest, harvest, and postharvest practices implemented by a bean farmer. The distribution of the sample across the study sites is provided in Appendix Table 13. Bean samples were picked from the farmers who had dry bean grain in store at the time of the survey (June to August 2019). Out of the 445 farmers sampled; 324 farmers had bean grain in storage. Each collected sample was labelled and tagged with the farmer's unique identification number, and its MC was immediately measured using digital moisture meters. In cases where a farmer had more than one lot of dry beans in storage, up to three samples were taken. Overall, the analysis was based on 371 samples of dry beans.

Methods

Variable description and measurement

Preharvest, harvest and postharvest practices

This study examined the various practices that occur before, during, and after crop harvest. Preharvest practices include activities such as seed bed preparation, variety selection, planting, thinning, weeding, fertilizer application, and spraying. Harvest practices, on the other hand, pertain to the timing of the harvest, the methods used, and the handling of the crop after it has been harvested. Postharvest practices refer to a range of activities that occur in the food supply chain after harvest and before delivery to the market. For the purposes of this study, we focus on the activities and practices of producers/farmers from harvest to delivery to the market. Postharvest activities encompass transporting the harvest, drying, threshing, winnowing, sorting, storage, redrying after storage, and transporting the grain to the market. The timing and methods of each postharvest handling activity impacts the quality of the grain and lead to quantitative losses.

Storage practices

Grain storage involves various methods, treatments, and durations that vary among farmers. This study thus, examined five storage methods commonly used in the study area: gunny bags, containers, pics bags, pouring on the floor, and granaries. Farmers either raised the grain off the floor or placed it in direct contact with the floor. The analysis primarily focused on three traditional practices, which were adopted by more than 85% of farmers: storage in gunny bags placed on the ground surface, storage in bags placed above ground, and storage in containers. The storage practices in pics bags (\(n=8\)) and silos (\(n=3\)) were not given extensive consideration beyond descriptive analysis due to their small sample size.

Postharvest losses

Postharvest loss within food systems refers to the loss of food in terms of quantity and/or quality along the entire food supply chain, from harvest to the point of consumption [35]. Quantitative losses occur when the actual amount of food, often measured in either kilograms or calories, reduces over time and space [12]. On the other hand, qualitative losses may result from contamination of food or via nutrient loss. Qualitative losses are more difficult to detect compared to quantitative losses, but potentially more important due to micronutrient loss and food safety concerns leading to a high prevalence of micronutrient deficiencies and food-borne health hazards around the world than undernourishment due to insufficient dietary energy intake [12, 36]. Measurement of quantitative losses remains a challenge, particularly among smallholder farmers and informal value chain actors who often do not care much about quality and record keeping. There are various approaches available for measuring quantitative food losses, leading to varying estimates for the same commodity in context. Some studies have used the self-reporting approach for the smallholder subsistence farmers. For instance, Chegere [6], Shee et al. [37] and Debebe [8] used the self-reporting approach which relies on farmer experience and judgment to estimate PHL in grains. Indeed, acknowledging the constraints of self-reporting approach and the reliance on farmer experience in bean production, we utilized this method to gather information on the physical/mass losses of bean grains, measured in kilograms, at every stage of handling. To enhance the dependability of our findings, we restricted our inquiry to the most recent farmer harvest, which took place two to four months before the survey. The quantities lost were then computed at each stage as a proportion of the harvest (Eq. 1):

$${{L}_{ps}}=\frac{1}{N}\underset{i=1}{\overset{N}{\mathop \sum }}\,{}^{{{Q}_{i}}}/{}_{{{Y}_{i}}}$$
(1)

In this case, \({L}_{ps}\) denotes proportion of beans lost derived from quantity \(Q\) of beans lost at a particular handling stage (\(s\)) divided by quantity harvested \(Y\) computed at the mean for \(N\) sample of farmers, \(i\in \left\{\mathrm{1,2},\dots N\right\}\). All weight measurements were captured in kilograms.

The value of grain loss was computed as a product of quantity of produce lost and price (Eq. 2) taken at the mean. The price considered is the price that a farmer \(i\) reported for the quantity sold:

$${L}_{vs}=\frac{1}{N}\sum_{i=1}^{N}{Q}_{i}*{p}_{i}$$
(2)

where \({L}_{vs}\) denotes value of quantity of beans lost at each handling stage (\(s\)) expressed as a product of quantity \(Q\) lost and price \(p\) offered for beans that were sold.

Moisture content

Moisture content is the amount of water in grain usually expressed as a percentage of the grain weight and it was captured on a wet basis approach using digital moisture-meters that had been validated at the research station prior to conducting the exercise. The MC readings were captured in the field and appropriately labelled with household identifiers.

Empirical approach

Selection and measurement bias

Due to the use of cross-sectional data collected from farmers, it was the authors considered opinion that the assignment of practices to respondents was random given a farmer’s voluntary choice to adopt a practice within the resource constraints and information barriers that also randomly vary. In this case, selection bias is thought to be negligible because there was no strategic external farmer selection into technology users’ category which often arises when a project targets a section of farmers in an intervention area. In addition, bean samples that were used for measurement of MC were random elements from a subset of farmers who affirmed that they had some beans in storage and even then, some farmers had more than one batch of dry beans in storage, and samples from all varieties were collected. Furthermore, we avoided bias in bean sample selection by using all the collected samples that were picked from the surveyed farmers. This also helped to avoid a drop in the study sample size, and allowing for better estimates. For regression estimates, the response variable was MC, and we addressed bias due to omitted variables, model specification, and measurement errors through a two-step regression and maximum likelihood estimation. In the first step regression, the aim was to partial out the error term, and in the second step, the error term was introduced as one of the predictors of variation in MC of farmer bean grains. This approach enabled us to account for specification bias due to unobserved factors and control for endogeneity in the final specification of the model.

Modelling the effect of storage practices on moisture content of stored dry bean

The objective was to assess how different storage practices impacted the MC of dry beans stored under farmer conditions. Since MC was measured as a proportion, it represents a bounded continuous response variable, which requires an estimation approach that accounts for the closed interval. While some studies have used fractional response models or the ordinary least squares (OLS) estimation approach on bounded data, these approaches pose a risk of producing biased estimates due to violations of the underlying model assumptions and possible predictions outside the boundary limits. [38, 39]. Most linear estimation tests are based on the t test which relies on the assumption that there is normality in the conditional distribution of the outcome variable \(y\), \(f\left(y|x\right)\) is \(N(\mathcal{K}\left(x\right), {\sigma }^{2})\). This is not applicable for a variable that has a closed interval, such as MC that is the subject of investigation in this study. According to Kieschnick & McCullough [40] and Gray & Alava [38], linear estimation on a bounded dependent variable can violate two conditions: the conditional expectation function (\(E\left(y|x\right)=\mathcal{K}\left(x\right)={x}^{^{\prime}}\beta\)) which in our case was nonlinear, since it maps onto a bounded interval; and the variance of \(y\) (MC) must be heteroskedastic since the variance approaches zero as the mean gets to the boundary point. The problem could be lessened with larger sample sizes where asymptomatic arguments can be rationalized. However, our data sample size (n = 371) could not warrant the invocation of asymptomatic arguments to rationalize the less stringent characterisation of the regression model.

Econometric model

In this case, MC, measured as a proportion, and had values ranging from 0 (as minimum) to 1 (as maximum bound). Therefore, the observed distribution of MC, \(y\), is within a closed interval, meaning that its conditional expectation was nonlinear, and its conditional variance was a function of the mean. To account for these characteristics, a generalized linear model (GLM) using the beta distribution was preferred for regression analysis. The beta regression assumes a distribution for the response variable, \(y\), based on selected covariates, and its parameters are estimated using maximum likelihood principle. Unlike the fractional response model, the beta regression model is a member of the exponential class of distributions, and so, maximum likelihood estimators have established statistical properties in this class of distributions [41]. Equation 3 expresses the mean and variance of the conditional distribution of y, which is modelled using the beta distribution. One limitation of this model is that if the distributional assumptions are mis-specified, it can result in inconsistent estimates of the model parameters [40].

To obtain a regression structure for the mean of the response along with a precision parameter, the mean is expressed as \(\mu =p/(p+q)\) and the precision parameter \(\phi =p+q\) and by substitutive algebra, \(p=\mu \phi\) and \(q=(1-\mu )\phi\):

$$E\left( y \right) = \mu_{i} \quad {\text{for}}\,p < \mu < q$$
$$var\left( y \right) = \frac{V\left( \mu \right)}{{1 + \phi }}\quad {\text{for}}\,V\left( \mu \right) = \mu \left( {1 - \mu } \right)\,\,{\text{and}}\,\phi > 0$$
(3)

where \(V\left(\mu \right)=\mu (1-\mu )\), so that the mean \(\mu\) of the response variable \(y\) (MC) and \(\phi\) is interpreted as a precision parameter in the sense that, for fixed \(\mu\), the larger the value of \(\phi\), the smaller the variance of \(y\). The density of \(y\) is represented by a new parameterization expressed in the following equation:

$$f\left( {y; \mu ,\phi } \right) = \frac{1}{{B\left( {p,q} \right)}}y^{p - 1} \left( {1 - y} \right)^{q - 1} ,\,\quad 0 \le y \le 1$$
(4)

where \(0\le \mu \le 1\), \(y\in \{p,q\}\), and \(B(p,q)\) is a beta function. This distribution is the most fitted to proportional data, has most empirical support, and is in the class of exponential distributions, which are the basis for the generalized linear model paradigm [40, 42]. As revealed by Cox [43], a Logit link specification is used such that conditional expectation is expressed, as shown in the following equation:

$$E\left({y}_{i}|{x}_{i}\right)={\mu }_{i}=h\left({\eta }_{i}\right)=\frac{1}{1+\mathrm{exp}(-{\eta }_{i})}=\frac{1}{1+\mathrm{exp}(-{x}_{i}^{^{\prime}}\beta )}$$
(5)

The variance of \(y\) is a function of the mean \(\mu\) and decreases as the precision parameter \(\phi\) increases. It should be noted that the beta densities can display different shapes based on values of the two parameters: mean (\(\mu\)) of \(y\) and the precision parameter (\(\phi\)) [38, 39]. Furthermore, it is worth emphasizing that when the mean (μ) is held constant, the dispersion of the beta distribution decreases as the precision parameter (ϕ) increases. To accommodate our distributional model, Eq. (5) was reformulated, as shown in Eq. (6). This equation demonstrates that the conditional mean of a beta-distributed regress and is limited to the interval (0, 1), which is suitable for our model, since the response is constrained to the standard unit interval (0, 1). The model can also be applicable in scenarios where the response is restricted within a known scaler interval \((a, b)\), where \(a\) and \(b\) are known values and \(a<b\). In that case, \(y\) is indirectly modelled as a transformed variable \({y}^{T}=\) \((y-a)/(b-a)\) with \(0<{y}^{T}<1\) with a standard beta distribution having a mean\((\mu -a)/(b-a)\). The \({y}_{1},\dots , {y}_{n}\) would represent independent random variables, where each \({y}_{\mathcal{t}}\), \(\mathcal{t}=1,\dots , n,\) follows the density in Eq. (1) with mean \({\mu }_{i}\) and unknown precision\(\phi\). The model is derived by assuming that the mean of \({y}_{i}\) can be defined by the expression in Eq. (6). This means that if the response variable (\(y\)), such as MC, is not specified within the interval \((0, 1)\) but rather within a different range \((a, b)\), as may happen if MC is expressed in percentages instead of proportions, the model would not require adjustments for misspecification.

$$g\left({\mu }_{\mathcal{t}}\right)=\mathrm{ln}\left(\frac{{\mu }_{i}}{1-{\mu }_{i}}\right)=\sum_{i=1}^{k}{x}_{\mathcal{t}i}^{^{\prime}}{\beta }_{i}={\eta }_{\mathcal{t}}$$
(6)

where \(\beta =({\beta }_{1},.., {\beta }_{k}{)}^{T}\) is a vector of unknown regression parameters \((\beta \epsilon {\mathbb{R}}k)\) and \({x}_{1},\dots , {x}_{\mathcal{t}k}\) are observations on \(k\) covariates (\(k<n\)), assumed to be fixed and known. Finally, \(g\left(.\right)\) is a strictly monotonic and twice differentiable link function that maps \((0, 1)\) into \({\mathbb{R}}\). Note that the variance of \({y}_{\mathcal{t}}\) is a function of \({\mu }_{\mathcal{t}}\) and, consequently, of the covariate values. Hence, non-constant response variances are naturally accommodated into the model. The relationship in Eq. (6) relates to the parameters of the beta distribution. Through Eq. (1), we have \(E\left({y}_{i}\right)=\frac{p}{p+q},\) and then, \({x}_{i}^{^{\prime}}\beta\) is mapped into \(q\) because \(q\) is the shape parameter for the beta distribution. \(q\) is then expressed as shown in Eq. (7) that is consistent with expectation \(E\left({y}_{i}\right)={\mu }_{i}:\)

$$q\left({x}_{i}\right)=p \mathrm{exp}(-{x}_{i}^{^{\prime}}\beta )$$
(7)

Through substitution of expression for \(q\) into Eq. 4, a conditional distribution of the beta distributed random variate is derived. For brevity, the derivation is not presented. To estimate the effect of the various conditioning variables \(({x}_{1},{x}_{2}, \dots , {x}_{r})\), a maximum likelihood estimation principle is applied to arrive at the estimates of the vector \(\beta\) by maximizing the implied log-likelihood function with respect to the parameters \(\beta\) and \(p\). To select a model within the family of GLM regression, we rely on Akaike Information Criteria (AIC) while goodness-of-fit is assessed based on the Pseudo \({R}^{2}\), and Wald chi test.

Model specification

To assess marginal effects of storage practices on grain MC, the outcome variable \(y\) is denoted by \({mc}_{i}\) which means MC of a bean sample \(i\) observed and captured in the field. Estimation is operationalized through a beta fit regression without bothering about a mixed distribution, since our response variable is not defined at 0 but in the interval \([\tau , 1]\) which means that the beta distribution is only defined in the interval \([\tau , 1]\) and can be captured in a single beta distribution. The model was operationalized through the empirical expression, as shown in the following equation:

$${\mathrm{E}(\mathrm{mc}}_{\mathrm{i}};\mathrm{y}|\mathrm{x})=\,{\mathrm{h}(\upbeta }_{0}+{\upbeta }_{1}\mathrm{exp}+{\upbeta }_{2}\mathrm{sex}+{\upbeta }_{3}\mathrm{accInfo}+{\upbeta }_{4}\mathrm{gsize}+{\upbeta }_{5}\mathrm{dharv}+{\upbeta }_{6}\mathrm{sp}1+{\upbeta }_{7}\mathrm{sp}2+{\upbeta }_{8}\mathrm{sp}3+{\upbeta }_{9}\partial )$$
(8)

where \({mc}_{i}\) is moisture content (\(y\)) of a random bean sample that was picked from a farmer and measured as a proportion to fall within the interval (0,1). The \({mc}_{i}\) is conditioned to vary considering heterogeneity in farmer experience (\(exp\)), sex (\(sex\)), farmer access to information on bean production (\(accInfo\)), grain size which varies by bean variety (\(gsize\)), practice of delayed harvest (\(dharv\)) and the adopted storage practice (\(sp1, sp2,\mathrm{ and }\, sp3\)). \({\upbeta }_{0}\) denotes a constant term associated with \(y\) intercept of the model estimation.

The model incorporates farming experience and information access, assuming that they have a positive association with MC. Existing literature suggests that farming experience frequently leads to favourable production outcomes for farmers [44]. Furthermore, the gender of the farmer is incorporated into the analysis, since previous research has demonstrated that gender significantly impacts the acceptance and adoption of agricultural technologies in Uganda [45, 46]. To account for unobserved variables and endogeneity biases, we incorporated ∂ in the analysis.

Data and variable characteristics.

Data description

Primary cross-sectional data were collected from 445 farmers and descriptive analysis was conducted on production practices using this sample size. All analyses related to MC were performed on 371 bean samples that were obtained from some but the same group of farmers. This approach helped us prevent any selection bias in the choice of bean samples for analysis and ensured that we did not diminish the sample size. To accomplish this, we transformed the data and utilized a long-format for analysis instead of a wide-format.

Variable characteristics

Farmer sex, household headship, and gender of the household head were represented using dummy variables. On the other hand, we captured farmer marital status, education level, farmer occupation, and household type as multiple categorical variables. Table 1 and Appendix Table 14 presents summary statistics of the sample socio-economic characteristics. The results reveal that men were the primary household heads, and 72% of the household heads were married. In addition, around 59% of the household heads had only attained primary level formal education, and 64% engaged in agriculture as their primary occupation. These statistics are consistent with national averages, which suggest that most households in Uganda rely on agriculture as their primary livelihood strategy [47]. This can be attributed to the limited livelihood opportunities outside the rural farm economy, which is partly a result of the low education levels. Furthermore, this could also be a factor that influences farmers' access to post-harvest technologies (refer to Appendix Table 14).

Table 1 Descriptive statistics of selected variables

Farmer age, farming experience, and years of schooling were represented as discrete continuous variables measured in complete years. Land size was measured in hectares. As presented in Table 1, the average age of household heads was 44, with about seven years of schooling. The households, on average, comprised of seven family members. Most of the farmers had over 17 years of experience in bean production, and the average land allocated for bean production was approximately a quarter of a hectare, which is approximately 0.5 acres. This constituted 40% of the arable land accessible to the household, regardless of the mode of access.

Results

Preharvest practices employed by farmers in common bean production

We found that most farmers (81%) cultivated dry beans during the second cropping season, which spans from August to December, while roughly 23% grew dry bean during the first cropping season (Table 2 and Fig. 2). A small proportion of farmers (23%) had planted improved seeds. Most farmers planted beans in rows, and only about 11% had planted at least two different bean varieties. Bush beans were found to be the predominant type of bean grown in the surveyed areas.

Table 2 Descriptive statistics of preharvest bean practices employed by the interviewed farmers
Fig. 2
figure 2

Source: Field study, 2019

Percent of farmers that planted/harvested common bean in the month of the year.

Fertilizer and pesticide application in bean production were low and about 65% of the farmers practiced intercropping with dry bean as the dominant crop in the plot. Many farmers recycled the seed for an average of about 10 years. In addition, majority of the farmers planted beans during the second cropping season, spanning from August to December, with planting peak in October (Fig. 2). It is worth noting that a significant number of farmers planted their crops within the same time frame, which could affect their access to labour for planting, harvesting, and postharvest handling. In addition, the planting of several crops simultaneously can constrain timely harvesting and proper postharvest handling practices.

Harvest and postharvest practices

Harvesting practices

Smallholder farmers in the studied locations harvested dry bean by uprooting the entire plant when considered mature enough. Typically, farmers harvest the crop when the plant was completely dry. However, about 41% of farmers reported delaying harvest, and 34% of them delayed harvest by more than two weeks (Table 3). Following harvest, approximately 80% of the farmers transported the beans to their homesteads and heaped them in preparation for threshing.

Table 3 Proportion of farmers who employed the various harvest and post-harvest practices

Postharvest practices

Farmers engage in several postharvest activities for dry beans, but many of these activities are labour-intensive, leading some farmers to partially complete or skip some tasks altogether (Appendix Table 15). Some of the most common postharvest activities include drying, threshing, and winnowing (Table 4). However, a significant percentage of farmers did not sort or treat their dry beans, possibly due to labour constraints.

Table 4 Farmer postharvest practices

Crop output, postharvest handling expenditure, and losses

Harvested quantity and disposition of output

Results in Table 5 show that approximately 76% of the harvested produce was disposed by selling in the market, whereas 13% was consumed at household. The average estimated value of harvest per hectare was US$ 607, calculated based on an average unit price of approximately US$ 0.56 (≈UGX 2000) per kilogram.

Table 5 Share of harvest, quantity of beans harvested and used for different purposes

Expenditure on harvesting and postharvest handling activities

Table 6 shows that farmers were involved in various production activities, starting from harvesting to consumption of their products. Based on an average yield of 1080 kg per hectare of dry beans, the cost of postharvest processes was found to be US$ 57, which represented approximately 13.5% of the total value of the produce. Among the various production activities, the highest expenditure was incurred on harvesting, accounting for 59% of the total cost, followed by threshing, which accounted for 12% of the total cost (Table 6).

Table 6 Share and cost of harvesting and postharvest handling practices

Postharvest grain losses

Farmers experienced losses of up to 22% of the harvested bean grains quantity due to various handling issues that occur throughout the entire process, from harvesting to marketing. Appendix Table 16 presents the details of grain losses incurred by farmers in four stages, namely harvesting, primary processing, storing, and marketing. Figure 3 illustrates that the highest percentage of grain loss occurred during primary processing (~ 12%), followed by harvesting (4.1%), threshing (3.7%), and sorting (3.6%) stages.

Fig. 3
figure 3

Source: Field study, 2019

Grain losses of common bean at various nodes of postharvest handling.

Value of postharvest grain loss

According to the results, threshing (3.7%), sorting (3.6%), and storage (3.4%) were the stages with highest monetary losses, while dressing had the least loss (0.3%). This indicates that inappropriate postharvest handling can result in the loss of valuable quantities and grain quality, which can lead to lower price offers, rejection of grain, and higher economic losses. Poor quality beans delivered to some buyers resulted in farmers facing a price penalty. Based on the findings, it was determined that the farmers lost up to US$ 0.14 (≈UGX 500) per Kg due to lower price offers associated with grain quality, translating into a 26% price penalty loss on every kilogram (Table 7). The loss of produce quality is often associated with physical damage on grain, foreign material and mixing of varieties.

Table 7 Market price and lost premium in price offer

Table 8 reveals that farmers experienced an economic loss of US$ 103 per hectare, which accounts for roughly 17% of the crop’s total value, due to grain losses during various postharvest operations. The harvesting stage had the highest loss in value terms, amounting to US$ 22 per hectare, followed by threshing, sorting, and storage.

Table 8 Value of grain lost during harvesting and postharvest handling

Storage practices and moisture content

Farmer test for moisture content

Smallholder farmers typically rely on subjective methods to determine the dryness of their grain, using personal judgment based on organoleptic tests that involve primarily seeing, feeling, and hearing. As shown in Table 9, most farmers (51%) used the method of biting the grain to assess whether it was dry enough for storage. During the biting process, farmers took note of the hardness of the grain and the sound it made. Some farmers also used a combination of visual inspection, shaking a sample of the grain, or pressing it with a finger or nail to test its hardness, in conjunction with feeling or hearing the sound made when cracking or rattling.

Table 9 Farmer methods of testing grain for dryness

Interestingly, the study found that only a small fraction of farmers (about 2%) used non-subjective methods to test the dryness of their grain, such as moisture meters or the bottle approach. Under the bottle approach, farmers place the grain in a bottle and leave it in the sun. If moisture is noticed on the inner surface of the bottle, then the grain is considered not fully dry. Some farmers add salt to the bottle and use the amount of moisture noticed on the bottle to determine whether the beans are well-dried. Notably, only farmers who tested beans using the non-subjective method had a MC of less than or equal to 13.0%.

Storage practice

Roughly 12% of the farmer bean samples came from bags that were stored above the ground, while 46% reported storing their bean grain in bags placed on a cemented floor (Table 10). In addition, the results indicate that the MC of bean grains stored in bags placed on cement and earth floors (\(\sim\) 15%) was higher than that of bean grain stored on a raised platform (\(\sim\) 14%).

Table 10 Moisture content of bean grain stored by farmers under different storage practices

Storage duration and moisture content

Table 11 displays results on the storage duration and average MC of collected bean samples. The dry bean samples from farmers were divided into two groups based on their MC levels: > 13.0% and ≤ 13.0%. The results showed that 51% of the bean samples were stored for 1–30 days and had an average MC of 15.0%. However, after 31–60 days of storage, the bean samples had a MC of 14.6% and samples stored for over 60 days had an even higher MC (15.2%) than those stored for ≤ 60 days. The study also revealed that the mean MC of samples from farmers who met the standard of ≤ 13% MC was significantly lower than that of farmers who did not meet the standard MC level, at various storage durations (Table 11).

Table 11 Moisture content of bean grain stored by farmers under different for durations

Figure 4 shows that the required MC was only met by approximately 26% of the bean grains from 371 samples. The data also indicates that 31% of the grain owned by women met the standard MC, which is significantly higher than the 23% of the grain that was owned by men.

Fig. 4
figure 4

Source: Field study, 2019

Proportion of farmers meeting the moisture content standard.

Storage practice, storage duration, and predicted moisture content

Overall relationship between predicted MC and storage duration

Upon predicting the MC of the bean grains and plotting its fitted values against the storage duration under farmer conditions, it becomes apparent that the MC of grain in storage registers a gradual drop to a point and starts to exceed the recommended level of ≤ 13% after about 60 days. In Fig. 5, the MC drops gradually up to approximately 14.2% at 60 days of storage, but then begins to increase beyond this point considering the local farmer practices and conditions of exposure grain is subjected to. Given the grain standards stipulate a maximum MC of 13% for export-grade dry beans, the findings suggest that farmers could store their dry beans for not more than 60 days and then sell them, particularly if they intend to target formal markets.

Fig. 5
figure 5

Source: Field study, 2019

Relationship between moisture content and storage duration for each farmer storage practice.

Comparative relationships on storage duration and storage practices

Table 10 provides further insight into the relationship between storage duration and storage practice, which is also graphically illustrated in Fig. 5, where the predicted MC is plotted against the storage duration. For the bean samples collected, the trend shows that the MC dropped as the storage duration increased up to a certain point, after which it begun to rise again (Plot line 0). For the bean grain that was placed on either a cemented floor or an earth floor (represented by plot line 1 and 3), the MC level gradually decreased with increasing storage duration, but only to a level not below the required MC of 13%, and then it started to increase again. On the other hand, when the grain was stored in bags placed above ground (storage practice 2), the MC dropped to levels close to 13% as the storage duration increased, but then it started to rise again after 60 days. It is worth noting that the likelihood of the MC dropping to 13% increases as the storage duration extends to several days, but not exceeding 60 days. Furthermore, the MC dropped more quickly when the grain was stored in bags raised above ground, as compared to other storage practices. In light of these findings, it is conceivable that farmers should store their grain for less than 60 days, as the MC of the stored grain under farmer conditions is likely to increase after this period, leading to deterioration and economic losses resulting from poor quality.

Effect of storage practices on moisture content and storage duration

Goodness-of-fit

To begin, a linear regression (OLS) was conducted. However, based on the results of the Shapiro–Wilk and the Breusch-Pagan het-test, it was discovered that the error terms of \(y (mc)\) were not normally distributed and were non-homoscedastic, indicating that nonlinear estimation techniques would be better suited for the analysis than the linear related estimations such as the least squares, censored normal, and the additive logistic regression models. The heteroskedasticity of the bounded error distributions was observed because their conditional variance must approach zero as their conditional mean approaches either of their boundary points. Therefore, the functional form of the dependent variable could not be supported by linear estimation. In addition to the linear regression, \(glm\), \(betareg\), \(betafit\), and \(betamix\) regressions were also conducted, and based on the AIC factor, the betamix regression was deemed to be the most appropriate (Appendix Table 17). To verify the absence of multicollinearity, the variance inflation factor (\(VIF\)) was calculated and found to be less than the threshold value of 5. The results in Table 12 shows the partial derivatives of the conditional expectation of the nonlinear regression model, with respect to the GLM regression based on a beta distribution, with coefficients evaluated at the means, for ease of interpretation.

Table 12 Multivariate GLM regression results of factors influencing bean grain moisture content

Empirical results

The regression output revealed that both farmer traits and farmer practices significantly affected the MC of bean grain (Table 12). Certain farmer factors were found to have a negative correlation with grain MC, such as experience in bean handling (using the farmer's experience in bean production as a proxy), ownership of grain by women, and delayed harvest. On the other hand, some farmer storage practices were found to have a negative correlation with MC, including storage in bags above ground, on cemented floors, and on smeared earthen floors. In contrast, access to general production information and grain size exhibited a positive correlation with MC. These findings suggest that the general extension messages may lack adequate postharvest handling information. The findings indicate that female ownership of bean grains may result in a 1% decrease in MC compared to male farmers. Storage practices such as placing bags above ground and on cemented floors have a significant effect in reducing MC of bean grains (p < 0.05). Specifically, storing beans in bags placed above ground can contribute to a reduction in MC of up to 1.5%, while storing beans in bags on dry cemented floor can reduce MC by approximately 1.0%. The influence of farmer factors and grain size is negligible in this context.

Figure 6 illustrates that if more farmers were to adopt the traditional practice of storing beans in bags raised above the floor surface, the percentage of farmers who are likely to meet the recommended MC of ≤ 13.0 would increase from 26 to 47%. Moreover, the average MC for farmers using this practice would be 12.5% at an average storage duration of 91 days. This improvement in storage practice could contribute to enhancing food safety by ensuring that beans available to consumers meet the recommended MC levels.

Fig. 6
figure 6

Source: Field study, 2019

Percent of farmers who could meet MC requirement if they grain would be place above surface.

Discussions

Farmer adoption of harvest and postharvest practices

The results show that many farmers still use traditional harvest and postharvest practices, with a significant number of farmers delaying harvest and threshing. Only a small percentage (< 10%) of farmers had a proper storage facility, with most opting to store their beans in bags on the floor or on a raised platform. These practices are typical of smallholder production systems in developing countries, where resource-constrained farmers find it difficult to adopt better harvest and postharvest handling practices, leading to poor postharvest outcomes, including high MC and food losses [17, 35, 48,49,50,51]. Addressing the limitations such as resource constraints that impede technology adoption among smallholder producers is crucial in encouraging them to adopt better practices.

Mass and value losses

The study findings revealed that inappropriate harvest and postharvest handling practices primarily at the farmer level, led to significant grain losses. These losses align with previous research [17, 24, 52], and the losses account for a net reduction of about 22% of total farmer bean produce, which implies a reduction in household income, producer output, and consumer surplus, and negatively impacting on household food security. The cost of postharvest losses represented over 86% of the total cost of postharvest handling activities. In other words, reducing postharvest losses can significantly lower the cost per unit and increase margins for smallholder farmers. However, if losses are too high, smallholder farmers may become uncompetitive in the output market, which could discourage investment in production and adoption of appropriate postharvest handling technologies including storage facilities. Thus, postharvest losses, as reported in this study, have the potential to offset the gains from adopting productivity-enhancing technologies [24].

Postharvest handling incurs the highest costs during harvesting and threshing, which are also the stages where the most significant postharvest losses occur. These activities require substantial labour and must be executed quickly, increasing the probability of losses due to the involvement of multiple workers or significant time. On the other hand, the stages of bagging and dressing exhibit the lowest postharvest cost, corresponding to minimal postharvest losses. The findings of this study align with the typical physical/manual primary processing activities [24]. As an example, smallholder farmers usually perform manual threshing during primary processing, and reducing losses during harvest and threshing would save value that could be utilized for other farm expenditure such as harvesting and threshing. It is crucial to enhance the efficiency of harvesting and threshing to reduce postharvest losses. Román et al. [53], modifying local practices has the potential to significantly decrease associated farmer production losses. Therefore, supporting smallholder farmers with appropriate postharvest handling technologies is essentially key in enhancing the efficiency of manual operations, starting with the stages that experience high losses, namely harvesting, threshing, and sorting.

Grain moisture content and storage practice

Results of this study showed that only 26% of farmers had beans with the desired MC level of ≤ 13%. This implies that a considerable percentage of beans stored by farmers do not meet the quality standards required by discerning buyers (at least by MC parameter), and this has implications for food safety as well as overall food and nutrition security. Farmer practices have the potential to cause total loss and worsen the safety of produce secured after harvest and primary processing. Moreover, a small change in grain MC can have a significant impact on storage duration. In this study, the practice of delayed harvesting was observed to either increase MC of dry beans, especially under weather conditions with high relative humidity (≥ 70%), which increases the risk of mold infestation, or decrease MC in a situation of low relative humidity. According to FAO [54], if it takes more than 10 to 15 days to reduce MC of grain to below 18%, mold may develop, be it in the field or in a store. Therefore, since some farmers delayed harvesting for up to 14 days, this may be a reason for the high grain MC for most farmers. The regression results revealed that beans harvested after ≥ 7 days had a negative correlation with MC. Timely harvesting is critical in ensuring that bean grains have the correct MC, and potential losses are limited [10]. Thus, it is essential for farmers to always adhere to timely harvesting of mature dry beans to maintain good quality and reduce produce loss.

According to Ellis, Kwofie, and Ngadi [55], early harvesting of dry beans at physiological maturity is linked to mold development, while delayed harvesting is linked to high levels of postharvest losses. This observation has implications for farmers' prioritization of farm activities [24]. Despite this, farmers often view the timing of harvest as a minor aspect in grain losses [55], when in fact, prioritizing the harvest of bean grain at morphological maturity is crucial to reducing postharvest losses. The dry bean harvest period typically coincides with many other farm activities that must be performed simultaneously, and farmers also grow several seasonal crops that tend to mature at the same time. With ripe dry beans in the garden, farmers may prioritize other farm activities, leaving the morphologically mature beans in the garden for some time. It is also noteworthy that the harvesting periods for the first cropping season tend to coincide with the rainy season (Aug-Nov, Fig. 2), and at the morphological maturity stage, grain in pods is not protected from rainwater, putting it at risk of being harvested with high MC and presenting a risk of developing mold that reduce grain quality and later compromise food safety. Our study also found that when women were solely responsible and in full control for the beans, there was a higher chance of achieving the desired MC. This result supports our previous analysis which showed that a greater proportion of women (31%) compared to men (23%) had beans meeting the required MC level (≤ 13%). This is also consistent with findings from Shee et al. [37], who reported that postharvest losses tend to be lower among female farmers. This finding underscores the importance of women's involvement in postharvest handling. In many smallholder farming operations, women typically carry out labour-intensive tasks such as sorting, winnowing, postharvest storage, and grain drying [24, 56]. In a study on store hygiene, Makinya et al. [57] also found that female store owners had lower postharvest losses than male store owners. As a result, gender has implications on the outcomes of grain management, with women in charge, it is more likely possible to achieve better drying and have the desired levels of grain MC.

Grains with high MC are prone to pest infestations and can lead to economic losses due to grain rotting and mold development [6, 58]. Although storage practices had the potential to reduce grain MC, the reduction was not sufficient to meet the recommended level. Farmers who stored grain in bags raised above the floor surface had grain 1.3% above the recommended level after 38 days of storage. Whereas storage in bags placed on tarpaulins showed the lowest MC, it was still 0.4% above 13.0% at an average storage duration of 56 days. Bakhtavar et al. [60] showed that different storage bags lead to different MC levels after a period of storage. More airtight storage facilities usually result into lower MC as opposed to less airtight facilities. The inability of the storage facilities and practices (adopted by farmers) to maintain stable relative humidity as storage duration progressed contributed to the high grain MC. Majority of smallholder farmers did not have proper storage structures and often stored produce in rooms with inappropriate ventilation, which further exacerbated the problem. Grain MC depends on the ability of a storage facility/ practice to maintain stability of low humidity, within the grains, relative to the atmospheric humidity. Control of humidity in a non-storage-purpose structure was not tenable. Poor grain storage structures used by smallholder farmers coupled with high humidity in a tropical environment can potentially lead to high levels of postharvest losses [59]. It appears that factors such as storage duration and practice have a greater influence on grain MC than the storage facility itself. Proper drying and adoption of alternative postharvest handling practices that can maintain grain MC at the required level is key in minimizing potential postharvest losses and income losses.

While access to information is crucial in encouraging the adoption of appropriate technologies such as post-harvest and storage techniques [61], this study found that access to general bean production information did not necessarily result in lower grain MC among farmers. Only 20% of the farmers surveyed received information on bean production, and a mere 1% had ever received information on post-harvest handling. The provision of information has been shown to accelerate technology adoption [51], but this study's results contradict that notion and raise questions about the type, relevance, and sufficiency of information often supplied by various agents. The finding implies that the information farmers received was not useful for post-harvest handling aspects. Thus, providing relevant extension information becomes critical in helping farmers maintain grain quality during storage. According to Owach et al. [48], supplying farmers with beneficial post-harvest handling information is necessary, to ensure they meet the required grain standards.

Storage duration and moisture content

Farmers often store beans to ensure food security and take advantage of price premiums at a later time of selling. However, findings from the study reveal that a considerable percentage of farmers had beans with a MC above 13.0%. Similarly, many farmers did not sort or treat their dry grains, despite these activities being relevant in improving the quality of dry beans delivered to the market in addition to having an impact on price and crop income. As crop prices are usually highest at mid to near end of a cropping season and lowest at the peak of the crop harvest [24], storage of dry grain becomes crucial in ensuring farmers sell their produce when prices are competitive. As a result, many farmers store part or all their harvest for later sales to reap price premiums. In this case, over 78% of the surveyed farmers had dry bean grains in storage, with 48% of them having stored them for an average of 30 days. However, storing grain may present a risk in terms of qualitative and quantitative losses, depending on the post-harvest handling and storage practices. Deterioration in quality due to pest infestation and in-store rotting associated with high MC [6, 58], can potentially undermine anticipated price premiums. Maintaining the right grain MC (≤ 13%) during storage can avert the risk of qualitative loss due to moisture [60, 62]. Therefore, reducing storage losses, in addition to increasing the surplus available for sale, becomes essential to enhancing farm profits.

The duration of storage has significant implication on grain MC due to variations in weather conditions. This study highlights the relationship between different storage practices, storage duration, and grain MC under farmer conditions. Although farmers adopt different storage practices, the applicability and relevance of these practices to reduction or maintainance of MC to the required level are also influenced by the storage duration. Better storage practices enable farmers to store grains for an extended period [63]. This is crucial for sustained storage of dry beans in good condition. To achieve and maintain the desired MC level of ≤ 13% during storage, it is essential that the adopted storage practice is effective for the desired storage duration. However, the practices adopted by farmers often make it difficult to achieve and maintain the desired MC level. Traditional storage facilities and practices are associated with higher post-harvest losses due to the failure to maintain appropriate MC during storage [19]. Poor storage practices are also linked with shorter storage duration, making it hard to take advantage of price premiums later in the season. In this study, grain storage on a raised platform, usually in plastic gunny bags placed on pallets, showed the potential to store for over 60 days. On the other hand, storage on the floor was detrimental to grain quality if stored for more than 60 days. In general, farmer storage practices have a strong implication on storage duration, which determines whether a farmer receives the anticipated price premium and better bottom-line margins for deferred sales.

Conclusions

Dry bean grain losses and their value were assessed during harvest and postharvest handling. The results show that farmers face significant losses due to poor handling practices, with up to 22% of the grain lost and valued at US$ 103 per hectare or 17% of farmer output. The adoption of appropriate practices is low, and traditional methods are associated with high MC (15%) during storage. Only 26% of farmers had beans meeting the desired moisture level. Storing beans in bags above the ground increased storage duration and had a likelihood of reducing MC by additional 1.5%, with a potential of almost doubling the number of farmers meeting the desired moisture level. These findings highlight the need to improve postharvest practices to reduce losses, improve grain quality, enhance income, and contribute food safety. This can ultimately improve overall food and nutrition security. The evidence suggests that inappropriate harvest and postharvest practices lead to high losses and high MC of bean grains above the standard of ≤ 13.0%, rendering 74% of the bean grain of less desirable quality. This is a cost on farmer income and undermines efforts to combat poverty, food insecurity, and food safety. To minimize losses, farmers need to adopt appropriate and cost-effective postharvest handling technologies, especially for harvesting, primary processing, and grain storage. Interventions that focus on postharvest handling stages with the highest losses, including storage, need to be adopted to avoid income losses and contribute to reducing food losses and improving food safety. The findings highlight the need for interventions to build farmer capacity in postharvest handling practices and access to appropriate technologies.